]> granicus.if.org Git - zziplib/commitdiff
#102 adding find_program UNZIP and adding the exe-path to zziptests.py
authorGuido Draheim <guidod@gmx.de>
Sun, 3 Jan 2021 12:53:18 +0000 (13:53 +0100)
committerGuido Draheim <guidod@gmx.de>
Sun, 3 Jan 2021 12:53:18 +0000 (13:53 +0100)
test/CMakeLists.txt

index 6d3e80b25262a29bbdcfd24f5e584f8e56a42bf5..534837293a5465721c0139a9d3d57b69c45e7c2c 100644 (file)
@@ -21,6 +21,7 @@ find_package ( ZLIB REQUIRED )
 find_package ( PythonInterp 3.5 REQUIRED )
 find_package ( UnixCommands REQUIRED ) # bash cp mv rm gzip tar
 find_program ( MKZIP zip)
+find_program ( UNZIP unzip)
 
 set(EXEEXT ${CMAKE_EXECUTABLE_SUFFIX})
 set(README ${CMAKE_SOURCE_DIR}/README)
@@ -64,7 +65,7 @@ add_custom_target(sfx ALL DEPENDS zzipshowme${EXEEXT})
 endif()
 
 add_custom_target(tests
-   COMMAND ${PY} ${srcdir}/zziptests.py --exeext=${EXEEXT} --topsrcdir=${topdir} -v ${TESTFLAGS} --downloads=${ZZIP_TESTCVE}
+   COMMAND ${PY} ${srcdir}/zziptests.py --exeext=${EXEEXT} --topsrcdir=${topdir} -v ${TESTFLAGS} --downloads=${ZZIP_TESTCVE} -Z ${MKZIP} -U ${UNZIP}
    DEPENDS ../bins/zzcat ../bins/zzdir ../bins/zziptest ../bins/zzxorcat ../bins/zzxorcopy)
 add_custom_command(OUTPUT ../bins/zzcat COMMMAND cd ../bins && $(MAKE) zzcat)
 add_custom_command(OUTPUT ../bins/zzdir COMMMAND cd ../bins && $(MAKE) zzdir)