From: Guido Draheim Date: Sun, 3 Jan 2021 12:53:18 +0000 (+0100) Subject: #102 adding find_program UNZIP and adding the exe-path to zziptests.py X-Git-Tag: v0.13.72~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e67bd7a4464a977dae81a449dc914bbd132c2fb8;p=zziplib #102 adding find_program UNZIP and adding the exe-path to zziptests.py --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6d3e80b..5348372 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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)