diff options
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/Makefile b/tests/Makefile index 82f12887bf9b..3be79c159057 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -73,13 +73,13 @@ DECODECORPUS_TESTTIME ?= -T30 default: fullbench -all: fullbench fuzzer zstreamtest paramgrill datagen zbufftest decodecorpus +all: fullbench fuzzer zstreamtest paramgrill datagen decodecorpus -all32: fullbench32 fuzzer32 zstreamtest32 zbufftest32 +all32: fullbench32 fuzzer32 zstreamtest32 -allnothread: fullbench fuzzer paramgrill datagen zbufftest decodecorpus +allnothread: fullbench fuzzer paramgrill datagen decodecorpus -dll: fuzzer-dll zstreamtest-dll zbufftest-dll +dll: fuzzer-dll zstreamtest-dll zstd: $(MAKE) -C $(PRGDIR) $@ @@ -108,11 +108,11 @@ fullbench-dll: $(PRGDIR)/datagen.c fullbench.c $(MAKE) -C $(ZSTDDIR) libzstd $(CC) $(FLAGS) $^ -o $@$(EXT) -DZSTD_DLL_IMPORT=1 $(ZSTDDIR)/dll/libzstd.dll -fuzzer : $(ZSTD_FILES) $(ZDICT_FILES) $(PRGDIR)/datagen.c fuzzer.c - $(CC) $(FLAGS) $^ -o $@$(EXT) - -fuzzer32 : $(ZSTD_FILES) $(ZDICT_FILES) $(PRGDIR)/datagen.c fuzzer.c - $(CC) -m32 $(FLAGS) $^ -o $@$(EXT) +fuzzer : CPPFLAGS += $(MULTITHREAD_CPP) +fuzzer : LDFLAGS += $(MULTITHREAD_LD) +fuzzer32: CFLAGS += -m32 +fuzzer fuzzer32 : $(ZSTD_FILES) $(ZDICT_FILES) $(PRGDIR)/datagen.c fuzzer.c + $(CC) $(FLAGS) $^ -o $@$(EXT) fuzzer-dll : LDFLAGS+= -L$(ZSTDDIR) -lzstd fuzzer-dll : $(ZSTDDIR)/common/xxhash.c $(PRGDIR)/datagen.c fuzzer.c @@ -192,7 +192,7 @@ else $(CC) $(FLAGS) $^ -o $@$(EXT) -Wl,-rpath=$(ZSTDDIR) $(ZSTDDIR)/libzstd.so endif -pool : pool.c $(ZSTDDIR)/common/pool.c $(ZSTDDIR)/common/threading.c +poolTests : poolTests.c $(ZSTDDIR)/common/pool.c $(ZSTDDIR)/common/threading.c $(CC) $(FLAGS) $(MULTITHREAD) $^ -o $@$(EXT) namespaceTest: @@ -213,7 +213,7 @@ clean: fuzzer-dll$(EXT) zstreamtest-dll$(EXT) zbufftest-dll$(EXT)\ zstreamtest$(EXT) zstreamtest32$(EXT) \ datagen$(EXT) paramgrill$(EXT) roundTripCrash$(EXT) longmatch$(EXT) \ - symbols$(EXT) invalidDictionaries$(EXT) legacy$(EXT) pool$(EXT) \ + symbols$(EXT) invalidDictionaries$(EXT) legacy$(EXT) poolTests$(EXT) \ decodecorpus$(EXT) @echo Cleaning completed @@ -280,7 +280,7 @@ test-zstd: zstd zstd-playTests test-zstd32: ZSTD = $(PRGDIR)/zstd32 test-zstd32: zstd32 zstd-playTests -test-zstd-nolegacy: ZSTD = $(PRGDIR)/zstd +test-zstd-nolegacy: ZSTD = $(PRGDIR)/zstd-nolegacy test-zstd-nolegacy: zstd-nolegacy zstd-playTests test-gzstd: gzstd @@ -375,7 +375,7 @@ test-decodecorpus-cli: decodecorpus cd .. @rm -rf testdir -test-pool: pool - $(QEMU_SYS) ./pool +test-pool: poolTests + $(QEMU_SYS) ./poolTests endif |