Skip to content
Snippets Groups Projects
Commit 395cb44c authored by Andrew Morton's avatar Andrew Morton
Browse files

Changes to work with swen_tourney

parent 95ab6999
No related branches found
No related tags found
No related merge requests found
stages:
- check_elig
- validate_tests
- validate_progs
- submit
check_submitter_eligibility:
stage: check_elig
only:
- master
tags:
- "swen90006-tourney"
script:
- python3 ~/swen_tourney/frontend.py check_eligibility $(realpath $(pwd))
allow_failure: false
validate_tests:
stage: validate_tests
only:
- master
tags:
- "swen90006-tourney"
script:
- python3 ~/swen_tourney/frontend.py validate_tests $(realpath $(pwd))
allow_failure: false
validate_progs:
stage: validate_progs
only:
- master
tags:
- "swen90006-tourney"
script:
- python3 ~/swen_tourney/frontend.py validate_progs $(realpath $(pwd))
allow_failure: false
submit:
stage: submit
only:
- master
tags:
- "swen90006-tourney"
script:
- python3 ~/swen_tourney/frontend.py submit $(realpath $(pwd))
allow_failure: false
......@@ -4,7 +4,7 @@ SRC=src
BIN=bin
INCLUDE=$(SRC)/include
VERSIONS=original vuln-1 vuln-2 vuln-3 vuln-4 vuln-5
VERSIONS ?= original vuln-1 vuln-2 vuln-3 vuln-4 vuln-5
VBINARIES=$(VERSIONS:%=%/$(BINARY))
BIN_TARGETS=$(VBINARIES:%=%-san) $(VBINARIES:%=%-fuzz) $(VBINARIES:%=%-cov)
......@@ -54,5 +54,5 @@ $(BIN)/%-cov: $(SRC)/%.c $(HEADERS)
$(CLANG) $< $(CFLAGS) $(LDFLAGS) $(COV_FLAGS) $(NO_STRICT_OVERFLOW_CFLAGS) -o $@
clean:
rm -f $(TARGETS) *.profraw *.profdata
rm -rf bin/* *.profraw *.profdata
#!/bin/sh
PROGRAM=$1
USE_POC=$2
if [ "$USE_POC" = "--use-poc" ]; then
# test program with its proof of concept test
./bin/${PROGRAM}/passbook-san ./poc/${PROGRAM}.poc
exit $?
else
# fuzz program with all tests in the tests/ folder
./bin/${PROGRAM}/passbook-san ./tests/*
exit $?
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment