]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Some tests were missing EXE suffix.
authorMika Lindqvist <postmaster@raasu.org>
Fri, 17 Feb 2017 12:11:22 +0000 (14:11 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 23 Feb 2017 08:07:07 +0000 (09:07 +0100)
test/Makefile.in
test/testCVEinputs.sh

index 1fd8c00de63bd72099adaa389b14b716916b3a80..9d6047dd0bf84a7af0188d4ba0bfdeb2ce8e59ca 100644 (file)
@@ -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 \
index de197d52fcccef8949a8468115f11d2d92ba3292..f253d264d3c8152342677436293f220dd694e3cf 100755 (executable)
@@ -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