1187df3459
Since we can sign i386 PE/COFF images, run the tests on both x86-64 and i386 binaries. We do this by moving test.pecoff to test-<arch>.pecoff, and using automake's parallel-test option to add a wrapper to each test execution. This wrapper calls each test once per arch (as defined in TEST_ARCHES), and checks for failures in any invocation. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
13 lines
208 B
Bash
Executable file
13 lines
208 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
invsig="test.invsig"
|
|
dd if=/dev/zero of="$invsig" bs=1 count=1k
|
|
tmp_image=test.pecoff
|
|
cp "$image" "$tmp_image"
|
|
|
|
set +e
|
|
"$sbattach" --attach "$invsig" "$tmp_image"
|
|
rc=$?
|
|
set -e
|
|
|
|
test $rc -eq 1
|