This also reveals that minigzip without zlib-compat is vulnerable
to one or more of the tests.
mkdir -p test
TESTINCLUDES="-I$SRCDIR"
if [ "$SRCDIR" != "$BUILDDIR" ]; then TESTINCLUDES="${TESTINCLUDES} -I$BUILDDIR"; fi
+if test $compat -eq 1; then COMPATTESTS="compattests"; fi
sed < $SRCDIR/test/Makefile.in "
/^CC *=/s#=.*#=$CC#
/^CFLAGS *=/s#=.*#=$CFLAGS#
/^INCLUDES *=/s#=.*#=$TESTINCLUDES#
/^SRCDIR *=/s#=.*#=$SRCDIR/test#
/^SRCTOP *=/s#=.*#=$SRCDIR#
+/^COMPATTESTS *=/s#=.*#=$COMPATTESTS#
" > test/Makefile
# create zlib.pc with the configure results
INCLUDES=
TEST_LDFLAGS=-L.. ../libz.a
-all: oldtests cvetests
+COMPATTESTS =
+
+all: oldtests cvetests $(COMPATTESTS)
oldtests: #set by ../configure
fi; \
rm -f $$TMP64
-cvetests: testCVE-2003-0107 testCVEinputs
+cvetests: testCVEinputs
+
+# Tests requiring zlib-ng to be built with --zlib-compat
+compattests: testCVE-2003-0107
testCVEinputs:
@$(SRCDIR)/testCVEinputs.sh