diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:12:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:12:25 +0000 |
commit | b73a80cfe9b9ba5ce6ce59d895530cbf7c7da389 (patch) | |
tree | 6f8b302b168a31b3b4c4ea2a8bc59a7f6735148d /debian/tests | |
parent | Adding upstream version 21. (diff) | |
download | isa-support-b73a80cfe9b9ba5ce6ce59d895530cbf7c7da389.tar.xz isa-support-b73a80cfe9b9ba5ce6ce59d895530cbf7c7da389.zip |
Adding debian version 21.debian/21
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/tests/control | 32 | ||||
-rw-r--r-- | debian/tests/control.in | 3 | ||||
-rw-r--r-- | debian/tests/test-@NAME@.in | 28 | ||||
-rwxr-xr-x | debian/tests/test-SSE2 | 28 | ||||
-rwxr-xr-x | debian/tests/test-SSE3 | 28 | ||||
-rwxr-xr-x | debian/tests/test-SSE4.1 | 28 | ||||
-rwxr-xr-x | debian/tests/test-SSE4.2 | 28 | ||||
-rwxr-xr-x | debian/tests/test-amd64-baseline | 28 | ||||
-rwxr-xr-x | debian/tests/test-i386-baseline | 28 | ||||
-rwxr-xr-x | debian/tests/test-x86-64-v1 | 28 | ||||
-rwxr-xr-x | debian/tests/test-x86-64-v2 | 28 |
11 files changed, 287 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..81d8b99 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,32 @@ +Tests: test-i386-baseline +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 + +Tests: test-SSE2 +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 + +Tests: test-amd64-baseline +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 any-amd64 + +Tests: test-x86-64-v1 +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 + +Tests: test-x86-64-v2 +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 any-amd64 + +Tests: test-SSE3 +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 any-amd64 + +Tests: test-SSE4.1 +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 any-amd64 + +Tests: test-SSE4.2 +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: any-i386 any-amd64 + diff --git a/debian/tests/control.in b/debian/tests/control.in new file mode 100644 index 0000000..4b951d0 --- /dev/null +++ b/debian/tests/control.in @@ -0,0 +1,3 @@ +Tests: test-@NAME@ +Depends: isa-support, qemu-user-static (>>1:7.2~), build-essential +Architecture: @ARCHITECTURE@ diff --git a/debian/tests/test-@NAME@.in b/debian/tests/test-@NAME@.in new file mode 100644 index 0000000..a359f7d --- /dev/null +++ b/debian/tests/test-@NAME@.in @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-@NAME@" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-@NAME@" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-@NAME@" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-@NAME@" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-SSE2 b/debian/tests/test-SSE2 new file mode 100755 index 0000000..1c73ab0 --- /dev/null +++ b/debian/tests/test-SSE2 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-SSE2" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE2" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-SSE2" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE2" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-SSE3 b/debian/tests/test-SSE3 new file mode 100755 index 0000000..48f6079 --- /dev/null +++ b/debian/tests/test-SSE3 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-SSE3" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE3" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-SSE3" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE3" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-SSE4.1 b/debian/tests/test-SSE4.1 new file mode 100755 index 0000000..217e72e --- /dev/null +++ b/debian/tests/test-SSE4.1 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-SSE4.1" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE4.1" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-SSE4.1" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE4.1" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-SSE4.2 b/debian/tests/test-SSE4.2 new file mode 100755 index 0000000..ce0d0fb --- /dev/null +++ b/debian/tests/test-SSE4.2 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-SSE4.2" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE4.2" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-SSE4.2" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-SSE4.2" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-amd64-baseline b/debian/tests/test-amd64-baseline new file mode 100755 index 0000000..b54ca87 --- /dev/null +++ b/debian/tests/test-amd64-baseline @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-amd64-baseline" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-amd64-baseline" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-amd64-baseline" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-amd64-baseline" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-i386-baseline b/debian/tests/test-i386-baseline new file mode 100755 index 0000000..0c79ae1 --- /dev/null +++ b/debian/tests/test-i386-baseline @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-i386-baseline" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-i386-baseline" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-i386-baseline" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-i386-baseline" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-x86-64-v1 b/debian/tests/test-x86-64-v1 new file mode 100755 index 0000000..a9e9082 --- /dev/null +++ b/debian/tests/test-x86-64-v1 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-x86-64-v1" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-x86-64-v1" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-x86-64-v1" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-x86-64-v1" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" diff --git a/debian/tests/test-x86-64-v2 b/debian/tests/test-x86-64-v2 new file mode 100755 index 0000000..5c0495c --- /dev/null +++ b/debian/tests/test-x86-64-v2 @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) + + +"/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-good-x86-64-v2" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-x86-64-v2" +# trap signal to self +trap "exit 0" ILL +trap "exit 0" SEGV +trap "exit 0" BUS + + +sed_move_to_stderr() { + sed -e "/$1/w /dev/stderr" -e "/$1/d" +} + +qemu_bad() { + "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/qemu-static-bad-x86-64-v2" "/usr/libexec/$DEB_HOST_MULTIARCH/isa-support/test-x86-64-v2" || true +} + +exec 5>&1 +exec 3>&1 +error_qemu=$( ( ( (qemu_bad) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'uncaught target signal' 2>&1 >&3 3>&- ) 4>&1 >&5) +exec 3>&- +exec 5>&- +test "X$error_qemu" = "X0" |