From 3d592305afb5ddc61606586dd96bd7fa080e29da Mon Sep 17 00:00:00 2001 From: jakedcolbert Date: Wed, 4 May 2022 14:42:40 -0400 Subject: [PATCH] Made changes to Makefile to remove .out and .diff files after successful run --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index a7e51fb..e05576d 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ test-all: project5 test-nowhere test-one-road test-simple test-local test-combo test: project5 ./project5 < test-data/t0502-combo.in > test-data/project5.out diff test-data/project5.out test-data/shortest.out > test.diff + rm test.diff && rm project5.out # test the code against an expected output file test-nowhere: project5 @@ -35,6 +36,7 @@ test-nowhere: project5 @echo "" ./project5 < test-data/t01-nowhere.in > test-data/project5.out diff test-data/project5.out test-data/t01-nowhere.out > test.diff + rm test.diff && rm project5.out @echo "$(GREEN)Passed!$(RESET)" # test the code against an expected output file @@ -44,6 +46,7 @@ test-one-road: project5 @echo "" ./project5 < test-data/t02-one-road.in > test-data/project5.out diff test-data/project5.out test-data/t02-one-road.out > test.diff + rm test.diff && rm project5.out @echo "$(GREEN)Passed!$(RESET)" # test the code against an expected output file @@ -53,6 +56,7 @@ test-simple: project5 @echo "" ./project5 < test-data/t03-simple.in > test-data/project5.out diff test-data/project5.out test-data/t03-simple.out > test.diff + rm test.diff && rm project5.out @echo "$(GREEN)Passed!$(RESET)" # test the code against an expected output file @@ -62,6 +66,7 @@ test-local: project5 @echo "" ./project5 < test-data/t08-local.in > test-data/project5.out diff test-data/project5.out test-data/t08-local.out > test.diff + rm test.diff && rm project5.out @echo "$(GREEN)Passed!$(RESET)" # test the code against an expected output file @@ -71,4 +76,5 @@ test-combo: project5 @echo "" ./project5 < test-data/t0502-combo.in > test-data/project5.out diff test-data/project5.out test-data/t0502-combo.out > test.diff + rm test.diff && rm project5.out @echo "$(GREEN)Passed!$(RESET)" \ No newline at end of file