Skip to content
Snippets Groups Projects
Commit ab9aa803 authored by Marc Feger's avatar Marc Feger
Browse files

ADD Dockerfile and working_station

parent d96282b5
No related branches found
No related tags found
Loading
FROM debian:jessie
RUN apt-get update &&\
apt-get install -y \
pkg-config \
check \
gcc \
nasm \
nano
File added
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment