diff options
| author | Mika Lindqvist <postmaster@raasu.org> | 2017-02-17 14:11:22 +0200 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2017-02-23 09:07:07 +0100 |
| commit | a099b220bb5726839b7db07562bef6e088d9ce6f (patch) | |
| tree | 11bffd6a0ff3eeaeadc35fb1c92754559873ae55 /test | |
| parent | 47c616ce343c47b406e20ce6ae7cf644c3e8f6cf (diff) | |
| download | Project-Tick-a099b220bb5726839b7db07562bef6e088d9ce6f.tar.gz Project-Tick-a099b220bb5726839b7db07562bef6e088d9ce6f.zip | |
Some tests were missing EXE suffix.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.in | 8 | ||||
| -rwxr-xr-x | test/testCVEinputs.sh | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 1fd8c00de6..9d6047dd0b 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -18,7 +18,7 @@ oldtests: #set by ../configure teststatic: @TMPST=tmpst_$$; \ - if echo hello world | ../minigzip | ../minigzip -d && ../example $$TMPST ; then \ + if echo hello world | ../minigzip$(EXE) | ../minigzip$(EXE) -d && ../example$(EXE) $$TMPST ; then \ echo ' *** zlib test OK ***'; \ else \ echo ' *** zlib test FAILED ***'; exit 1; \ @@ -31,7 +31,7 @@ testshared: DYLD_LIBRARY_PATH=`pwd`/..:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \ SHLIB_PATH=`pwd`/..:$(SHLIB_PATH) ; export SHLIB_PATH; \ TMPSH=tmpsh_$$; \ - if echo hello world | ../minigzipsh | ../minigzipsh -d && ../examplesh $$TMPSH; then \ + if echo hello world | ../minigzipsh$(EXE) | ../minigzipsh$(EXE) -d && ../examplesh$(EXE) $$TMPSH; then \ echo ' *** zlib shared test OK ***'; \ else \ echo ' *** zlib shared test FAILED ***'; exit 1; \ @@ -40,7 +40,7 @@ testshared: test64: @TMP64=tmp64_$$; \ - if echo hello world | ../minigzip64 | ../minigzip64 -d && ../example64 $$TMP64; then \ + if echo hello world | ../minigzip64$(EXE) | ../minigzip64$(EXE) -d && ../example64$(EXE) $$TMP64; then \ echo ' *** zlib 64-bit test OK ***'; \ else \ echo ' *** zlib 64-bit test FAILED ***'; exit 1; \ @@ -53,7 +53,7 @@ cvetests: testCVEinputs compattests: testCVE-2003-0107 testCVEinputs: - @$(SRCDIR)/testCVEinputs.sh + @EXE=$(EXE) $(SRCDIR)/testCVEinputs.sh testCVE-2003-0107: CVE-2003-0107$(EXE) @if ./CVE-2003-0107$(EXE); then \ diff --git a/test/testCVEinputs.sh b/test/testCVEinputs.sh index de197d52fc..f253d264d3 100755 --- a/test/testCVEinputs.sh +++ b/test/testCVEinputs.sh @@ -6,7 +6,7 @@ CVEs="CVE-2002-0059 CVE-2004-0797 CVE-2005-1849 CVE-2005-2096" for CVE in $CVEs; do fail=0 for testcase in ${TESTDIR}/${CVE}/*.gz; do - ../minigzip -d < "$testcase" + ../minigzip${EXE} -d < "$testcase" # we expect that a 1 error code is OK # for a vulnerable failure we'd expect 134 or similar if [ $? -ne 1 ] && [ $? -ne 0 ]; then |
