mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-06 01:18:05 -05:00
tests requirements
This commit is contained in:
parent
1af321be77
commit
5c0a181436
@ -43,13 +43,14 @@ if grep -o "no libgsf available" "results.log"
|
|||||||
printf "%s\n" "tests for MSI files skipped, please install msitools package"
|
printf "%s\n" "tests for MSI files skipped, please install msitools package"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$(command -v faketime)" ]
|
||||||
for plik in ${script_path}/recipes/*
|
then
|
||||||
|
for plik in ${script_path}/recipes/*
|
||||||
do
|
do
|
||||||
/bin/sh $plik 3>&1 2>> "results.log" 1>&2
|
/bin/sh $plik 3>&1 2>> "results.log" 1>&2
|
||||||
done
|
done
|
||||||
count=$(grep -c "Test succeeded" "results.log")
|
count=$(grep -c "Test succeeded" "results.log")
|
||||||
if [ $count -ne 0 ]
|
if [ $count -ne 0 ]
|
||||||
then
|
then
|
||||||
skip=$(grep -c "Test skipped" "results.log")
|
skip=$(grep -c "Test skipped" "results.log")
|
||||||
fail=$(grep -c "Test failed" "results.log")
|
fail=$(grep -c "Test failed" "results.log")
|
||||||
@ -58,6 +59,10 @@ if [ $count -ne 0 ]
|
|||||||
else # no test was done
|
else # no test was done
|
||||||
result=1
|
result=1
|
||||||
fi
|
fi
|
||||||
rm -f "test.exe" "test.ex_" "sample.msi" "sample.wxs" "FoobarAppl10.exe"
|
rm -f "test.exe" "test.ex_" "sample.msi" "sample.wxs" "FoobarAppl10.exe"
|
||||||
rm -f "sign_pe.pem" "sign_msi.pem" "verify.log"
|
rm -f "sign_pe.pem" "sign_msi.pem" "verify.log"
|
||||||
|
else
|
||||||
|
printf "%s\n" "faketime not found in \$PATH"
|
||||||
|
printf "%s\n" "tests for PE files skipped, please install faketime package"
|
||||||
|
fi
|
||||||
exit $result
|
exit $result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user