commit e5429ffb1badee2547c685c62bef3685b7798c0b Author: Zack Weinberg zackw@cmu.edu Date: Sat Jul 14 18:42:40 2012 +0200
Delete traces in 'make clean' if we generated them. --- Makefile.am | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am index 5416842..ee1d46d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -186,10 +186,15 @@ if INTEGRATION_TESTS elif [ -e $(srcdir)/traces ]; then \ ln -s $(srcdir)/traces traces; \ else \ - mkdir traces && ./pgen_fake; \ + mkdir traces && touch traces/.faked && ./pgen_fake; \ fi; \ fi $(AM_V_at) $(PYTHON) -m unittest discover -s $(srcdir)/src/test -p 'test_*.py' -v else @echo !!! Integration tests skipped !!! endif + +if INTEGRATION_TESTS +clean-local: + [ ! -f traces/.faked ] || rm -r traces +endif
tor-commits@lists.torproject.org