From eb86160c37db09a0e201e25d90b0a9a1a6ef1cb6 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sun, 27 Aug 2017 10:04:05 +0200 Subject: test/compression: use unique temporary files for testing --- test/compression/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/compression') diff --git a/test/compression/Makefile b/test/compression/Makefile index 4c5207f6..2e14e646 100644 --- a/test/compression/Makefile +++ b/test/compression/Makefile @@ -27,13 +27,13 @@ lzss: $(LZSS_OBJS) $(CC) $(CFLAGS) -o $@ $(LZSS_OBJS) $(LIBS) TESTFILE:=$(firstword $(wildcard /usr/share/dict/words) ./lzss) -TESTCOMPR=/tmp/testcompr.out -TESTEXPND=/tmp/testexpnd.out +TESTCOMPR=/tmp/testcompr.$$$$ +TESTEXPND=/tmp/testexpnd.$$$$ test: - @rm -f $(TESTCOMPR) $(TESTEXPND) - @echo "Test data: $(TESTFILE)" - @for i in $(EXE); do \ + @rm -f $(TESTCOMPR) $(TESTEXPND); \ + echo "Test data: $(TESTFILE)"; \ + for i in $(EXE); do \ echo "$$i: compression..."; \ $(SIMU) ./$$i -c -i $(TESTFILE) -o $(TESTCOMPR); \ echo "$$i: decompression..."; \ @@ -42,8 +42,8 @@ test: then echo "$$i: passed"; \ else echo "$$i: FAILED"; exit 2; \ fi; \ - done - @rm -f $(TESTCOMPR) $(TESTEXPND) + done; \ + rm -f $(TESTCOMPR) $(TESTEXPND) bench: @rm -f $(TESTCOMPR) -- cgit