Fixed "add" tests

The "add" command was never supposed to copy a signature.
See afd5c5177d for details.
This commit is contained in:
Michał Trojnara
2019-07-20 14:17:41 +02:00
parent 1121713d48
commit f39ac9caee
4 changed files with 9 additions and 59 deletions

View File

@ -1,14 +1,13 @@
#!/bin/sh
# Moving the authenticode signing with addUnauthenticatedBlob to the PE/MSI file.
# Adding an unauthenticated blob to the PE/MSI file.
. $(dirname $0)/../test_library
# PE file
test_name="361. Moving the authenticode signing with addUnauthenticatedBlob to the PE file"
test_name="361. Adding an unauthenticated blob to the PE file"
printf "\n%s\n" "$test_name"
if [ -s "test.exe" ]
then
cat "test.exe" > "test_361.exe"
faketime -f '@2019-01-01 00:00:00' /bin/bash -c '
script_path=$(pwd)
../../osslsigncode sign -h sha256 \
@ -27,7 +26,7 @@ if [ -s "test.exe" ]
# Command is not supported for non-PE
# MSI file
test_name="362. Moving the authenticode signing with addUnauthenticatedBlob to the MSI file"
test_name="362. Adding an unauthenticated blob to the MSI file"
printf "\n%s\n" "$test_name"
if [ -s "sample.msi" ]
then