]>
Commit | Line | Data |
---|---|---|
11fdf7f2 | 1 | # ################################################################ |
f67539c2 | 2 | # Copyright (c) 2017-2020, Facebook, Inc. |
11fdf7f2 TL |
3 | # All rights reserved. |
4 | # | |
5 | # This source code is licensed under both the BSD-style license (found in the | |
6 | # LICENSE file in the root directory of this source tree) and the GPLv2 (found | |
7 | # in the COPYING file in the root directory of this source tree). | |
f67539c2 | 8 | # You may select, at your option, one of the above-listed licenses. |
11fdf7f2 TL |
9 | # ################################################################ |
10 | ||
11 | PRGDIR = ../../programs | |
12 | VOID = /dev/null | |
13 | export PATH := .:$(PATH) | |
14 | ||
15 | .PHONY: all | |
16 | #all: test-gzip-env | |
17 | all: test-helin-segv test-hufts test-keep test-list test-memcpy-abuse test-mixed | |
18 | all: test-null-suffix-clobber test-stdin test-trailing-nul test-unpack-invalid | |
19 | all: test-zdiff test-zgrep-context test-zgrep-f test-zgrep-signal test-znew-k test-z-suffix | |
20 | @echo Testing completed | |
21 | ||
22 | .PHONY: zstd | |
23 | zstd: | |
24 | $(MAKE) -C $(PRGDIR) zstd | |
25 | ln -sf $(PRGDIR)/zstd gzip | |
26 | @echo PATH=$(PATH) | |
27 | gzip --version | |
28 | ||
29 | .PHONY: clean | |
30 | clean: | |
31 | @$(MAKE) -C $(PRGDIR) $@ > $(VOID) | |
32 | @$(RM) *.trs *.log | |
33 | @echo Cleaning completed | |
34 | ||
35 | ||
36 | #------------------------------------------------------------------------------ | |
9f95a23c | 37 | # validated only for Linux, macOS, Hurd and some BSD targets |
11fdf7f2 TL |
38 | #------------------------------------------------------------------------------ |
39 | ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD)) | |
40 | ||
41 | test-%: zstd | |
42 | @./test-driver.sh --test-name $* --log-file $*.log --trs-file $*.trs --expect-failure "no" --color-tests "yes" --enable-hard-errors "yes" ./$*.sh | |
43 | # || echo ignoring error | |
44 | ||
45 | endif |