Skip to content

Commit

Permalink
Add missing cleanup
Browse files Browse the repository at this point in the history
make clean did not actually remove all files.
  • Loading branch information
tautschnig committed Jul 17, 2023
1 parent a3e5102 commit e75f995
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 7 deletions.
6 changes: 2 additions & 4 deletions regression/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ test-parallel:

.PHONY: clean
clean:
@for dir in *; do \
if [ -d "$$dir" ]; then \
$(MAKE) -C "$$dir" clean; \
fi; \
@for dir in $(DIRS); do \
$(MAKE) -C "$$dir" clean; \
done;
$(RM) tests.log
2 changes: 1 addition & 1 deletion regression/ansi-c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ build_goto_binaries:
clean:
find . -name '*.out' -execdir $(RM) '{}' \;
find . -name '*.gb' -execdir $(RM) '{}' \;
$(RM) tests.log tests-c++-front-end.log
$(RM) tests*.log
1 change: 1 addition & 0 deletions regression/catch-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ test:
tests.log: ../test.pl test

clean:
find . -name '*.out' -execdir $(RM) '{}' \;
$(RM) tests*.log
2 changes: 1 addition & 1 deletion regression/cbmc-primitives/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ tests.log: ../test.pl

clean:
find . -name '*.out' -execdir $(RM) '{}' \;
$(RM) tests.log
$(RM) tests*.log
2 changes: 1 addition & 1 deletion regression/contracts-dfcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ tests.log: ../test.pl test

clean:
@for dir in *; do \
$(RM) tests.log; \
if [ -d "$$dir" ]; then \
cd "$$dir"; \
$(RM) *.out *.gb *.smt2; \
cd ..; \
fi \
done
$(RM) tests*.log
1 change: 1 addition & 0 deletions regression/cprover/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ test-no-p:
@../test.pl -e -c '../../../src/cprover/cprover'

clean:
find . -name '*.out' -execdir $(RM) '{}' \;
$(RM) tests.log
1 change: 1 addition & 0 deletions regression/goto-harness/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ tests.log: ../test.pl
clean:
find . -name '*.out' -execdir $(RM) '{}' \;
find . -name '*.gb' -execdir $(RM) {} \;
find . -name '*-harness.c' -execdir $(RM) {} \;
$(RM) tests.log
1 change: 1 addition & 0 deletions regression/goto-instrument/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ clean:
cd ..; \
fi \
done
$(RM) ../cbmc/Recursion6/*.gb
1 change: 1 addition & 0 deletions regression/solver-hardness/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ tests.log: ../test.pl test

clean:
find . -name '*.out' -execdir $(RM) '{}' \;
find . -name '*.json' -execdir $(RM) '{}' \;
$(RM) tests.log

0 comments on commit e75f995

Please sign in to comment.