]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added `make list` capability to `tests/Makefile`
authorYann Collet <cyan@fb.com>
Sun, 14 Jan 2018 05:54:21 +0000 (21:54 -0800)
committerYann Collet <cyan@fb.com>
Sun, 14 Jan 2018 05:54:21 +0000 (21:54 -0800)
tests/Makefile

index 48ae17538de1b5380f6f8d3dc5c0e3ed8e03fc33..852ea73794f294e39d08c3bf4967343493e6b8cb 100644 (file)
@@ -292,15 +292,23 @@ ifneq (,$(filter $(shell uname),SunOS))
 DIFF:=gdiff
 endif
 
+.PHONY: list
+list:
+       @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+
+.PHONY: zstd-playTests
 zstd-playTests: datagen
        file $(ZSTD)
        ZSTD="$(QEMU_SYS) $(ZSTD)" ./playTests.sh $(ZSTDRTTEST)
 
+.PHONY: shortest
 shortest: ZSTDRTTEST=
 shortest: test-zstd
 
+.PHONY: fuzztest
 fuzztest: test-fuzzer test-zstream test-decodecorpus
 
+.PHONY: test
 test: test-zstd test-fullbench test-fuzzer test-zstream test-invalidDictionaries test-legacy test-decodecorpus
 ifeq ($(QEMU_SYS),)
 test: test-pool