Skip to content

Commit 07a2a6a

Browse files
committed
add gcheck
1 parent 8107704 commit 07a2a6a

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "gcheck/gcheck"]
2+
path = gcheck/gcheck
3+
url = git@github.com:lainets/gcheck.git

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ RUN apt_install \
66
libc-dev \
77
make \
88
valgrind
9+
10+
COPY gcheck/gcheck /gcheck
11+
RUN rm -rf /gcheck/.git
12+
13+
RUN make -C /gcheck static
14+
15+
# Add the gcheck variables to /gcheck.env
16+
COPY gcheck/Makefile /Makefile
17+
RUN make -s -C / > /gcheck.env
18+
RUN rm /Makefile

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# grade-c
22

3-
A+ grading container with C compilers. It contains:
3+
[A+] grading container with C compilers. It contains:
44

55
* `make`
66
* `gcc`
77
* `g++`
88
* `valgrind`
9+
* [gcheck]
10+
11+
[gcheck]: https://github.com/lainets/gcheck
12+
[A+]: https://github.com/apluslms/a-plus
913

1014
## Tags
1115

gcheck/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
GCHECK_DIR = /gcheck
2+
include $(GCHECK_DIR)/vars.make
3+
GCHECK_LIB_DIR:=$(GCHECK_DIR)/$(GCHECK_LIB_DIR)
4+
GCHECK_INCLUDE_DIR:=$(GCHECK_DIR)/$(GCHECK_INCLUDE_DIR)
5+
6+
envs:
7+
echo "GCHECK_DIR=$(GCHECK_DIR)"
8+
echo "GCHECK_LIB_DIR=$(GCHECK_LIB_DIR)"
9+
echo "GCHECK_LIB=$(GCHECK_LIB)"
10+
echo "GCHECK_INCLUDE_DIR=$(GCHECK_INCLUDE_DIR)"

gcheck/gcheck

Submodule gcheck added at 886052b

0 commit comments

Comments
 (0)