diff --git a/Praktikum/Dockerfile b/Praktikum/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..e76f326f70a9dbe51cd161dcdf8ad67a033eb7fe --- /dev/null +++ b/Praktikum/Dockerfile @@ -0,0 +1,10 @@ +FROM debian:jessie + +RUN apt-get update &&\ + apt-get install -y \ + pkg-config \ + check \ + gcc \ + nasm \ + nano + diff --git a/Praktikum/working_station/.DS_Store b/Praktikum/working_station/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..90ee518affea0aaa9fbbc016a2f055ca9b5a1855 Binary files /dev/null and b/Praktikum/working_station/.DS_Store differ diff --git a/Praktikum/working_station/helpers/runTest.sh b/Praktikum/working_station/helpers/runTest.sh new file mode 100755 index 0000000000000000000000000000000000000000..d57b5441f876158b30b99b90e68bb111106a9674 --- /dev/null +++ b/Praktikum/working_station/helpers/runTest.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Edit: by Marc Feger +# activate bash script with chmod +x <name>.sh + +TEST=_tests +CHECK_FLAGS=$(pkg-config --cflags --libs check) #find correct flags for check +echo "Testfile and Input Data must have the same " +read -p "Input Data: " INPUT_NAME #read file to test +read -p "Output Data: " OUTPUT_NAME #read name of the output file + +echo "compiling tests..." +gcc $INPUT_NAME.c $INPUT_NAME$TEST.c -o $OUTPUT_NAME $CHECK_FLAGS -Wall -std=c99 -g +echo "compiling done" + +echo "##########RESULTS##########" +./$OUTPUT_NAME + +