mirror of https://github.com/upx/upx.git
CI updates
This commit is contained in:
parent
52dde5789e
commit
24b4ec42e7
|
@ -114,8 +114,14 @@ endif()
|
|||
if(NOT UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS)
|
||||
foreach(method IN ITEMS nrv2b nrv2d nrv2e lzma)
|
||||
foreach(level IN ITEMS 1 2 3 4 5 6 7)
|
||||
foreach(small IN ITEMS normal small)
|
||||
set(s "${method}-${level}")
|
||||
upx_add_test(upx-self-pack-${s} upx --${method} -${level} --all-filters --debug-use-random-filter "${upx_self_exe}" ${fo} -o upx-packed-${s}${exe})
|
||||
set(ss "")
|
||||
if(small MATCHES "small")
|
||||
set(s "${method}-${level}-${small}")
|
||||
set(ss "--small")
|
||||
endif()
|
||||
upx_add_test(upx-self-pack-${s} upx --${method} -${level} ${ss} --all-filters --debug-use-random-filter "${upx_self_exe}" ${fo} -o upx-packed-${s}${exe})
|
||||
upx_add_test(upx-list-${s} upx -l upx-packed-${s}${exe})
|
||||
upx_add_test(upx-fileinfo-${s} upx --fileinfo upx-packed-${s}${exe})
|
||||
upx_add_test(upx-test-${s} upx -t upx-packed-${s}${exe})
|
||||
|
@ -137,6 +143,7 @@ if(NOT UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS)
|
|||
endif()
|
||||
endforeach()
|
||||
endforeach()
|
||||
endforeach()
|
||||
endif() # UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS
|
||||
|
||||
# clean up
|
||||
|
|
|
@ -148,9 +148,15 @@ if [[ $UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS != ON ]]; then
|
|||
set +x
|
||||
for method in nrv2b nrv2d nrv2e lzma; do
|
||||
for level in 1 2 3 4 5 6 7; do
|
||||
for small in normal small; do
|
||||
s="${method}-${level}"
|
||||
ss=
|
||||
if [[ $small == "small" ]]; then
|
||||
s="${method}-${level}-${small}"
|
||||
ss="--small"
|
||||
fi
|
||||
echo "========== $s =========="
|
||||
"${run_upx[@]}" -qq --${method} -${level} --all-filters --debug-use-random-filter "${upx_self_exe}" ${fo} -o upx-packed-${s}${exe}
|
||||
"${run_upx[@]}" -qq --${method} -${level} ${ss} --all-filters --debug-use-random-filter "${upx_self_exe}" ${fo} -o upx-packed-${s}${exe}
|
||||
"${run_upx[@]}" -qq -l upx-packed-${s}${exe}
|
||||
"${run_upx[@]}" -qq --fileinfo upx-packed-${s}${exe}
|
||||
"${run_upx[@]}" -qq -t upx-packed-${s}${exe}
|
||||
|
@ -161,6 +167,7 @@ if [[ $UPX_CONFIG_DISABLE_EXHAUSTIVE_TESTS != ON ]]; then
|
|||
fi
|
||||
done
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
echo "run_upx='${run_upx[*]}'"
|
||||
|
|
Loading…
Reference in New Issue