Created
February 9, 2017 20:17
-
-
Save blakehurlburt/b30bf53b9bc4de017df713d2fb087d83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXX=g++ | |
CXXFLAGS=-std=c++11 -Werror -O0 -g3 | |
all: A0 | |
runtests: test0 test1 test2 test3 test4 test5 test6 test7 test8 | |
test0: A0 | |
./A0 input0.txt output0.txt 1234 && diff output0.txt output0-soln.txt | |
test1: A0 | |
./A0 input1.txt output1.txt 1234 && diff output1.txt output1-soln.txt | |
test2: A0 | |
./A0 input2.txt output2.txt 5 && diff output2.txt output2-soln.txt | |
test3: A0 | |
./A0 input3.txt output3.txt 1234 && diff output3.txt output3-soln.txt | |
test4: A0 | |
./A0 input.txt output.txt 2>output4.txt >&2; diff output4.txt output4-soln.txt | |
test5: A0 | |
./A0 input0.txt output0-soln.txt 1234 abcd 2>output5.txt >&2; diff output5.txt output5-soln.txt | |
test6: A0 | |
./A0 abcdefg output0.txt 1234 2>output6.txt >&2; diff output6.txt output6-soln.txt | |
test7: A0 | |
./A0 input0.txt invalid.txt 1234 2>output7.txt >&2; diff output7.txt output7-soln.txt | |
test8: A0 | |
./A0 input0.txt output0.txt abcd 2>output8.txt >&2; diff output8.txt output8-soln.txt | |
clean: | |
rm A0; rm *.o; rm *.gch; rm a.out; find . -type f -name 'output[0-8].txt' -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment