forked from jason790/opt-cpp-backend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (20 loc) · 957 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# build and install the latest Valgrind with my custom pgbovine code
all:
cd valgrind-3.11.0/ && make install
# Docker-specific targets
# build a docker container
docker:
docker build -t="pgbovine/opt-cpp-backend:v1" .
test:
docker run -t -i --rm --user=netuser --net=none --cap-drop all pgbovine/opt-cpp-backend:v1 python /tmp/opt-cpp-backend/run_cpp_backend.py "int main() {int x=12345;}" c
regtest:
docker run -t -i --rm --user=netuser --net=none --cap-drop all -w /tmp/opt-cpp-backend/tests pgbovine/opt-cpp-backend:v1 python golden_test.py --all
bash:
docker run -t -i --rm --user=netuser --net=none --cap-drop all pgbovine/opt-cpp-backend:v1 bash
# older targets
build:
./auto-everything.sh
rawtest:
python $(HOME)/opt-cpp-backend/run_cpp_backend.py "int main() {int x=12345;}" c
valgrindtest:
stdbuf -o0 valgrind-3.11.0/inst/bin/valgrind --tool=memcheck --source-filename=usercode.c --trace-filename=usercode.vgtrace ./usercode.exe