diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-03-22 13:42:40 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-03-23 18:06:46 +0100 |
commit | 2f809d29e85527acd75d4d2e46aaa14adc2f09dd (patch) | |
tree | ff042e0bb2ee9463b2a14f19f6fd423e56fdae5e /test/auxv | |
parent | coredump: split out parse_auxv() to src/shared/ (diff) | |
download | systemd-2f809d29e85527acd75d4d2e46aaa14adc2f09dd.tar.xz systemd-2f809d29e85527acd75d4d2e46aaa14adc2f09dd.zip |
test-coredump-util: add tests for parse_aux()
The test files are /proc//auxv files copies from various architecutres
signified by the file name suffix.
Those tests are fairly simple, but when we run them on n architectures, we do
~n² cross-arch tests.
Diffstat (limited to 'test/auxv')
-rw-r--r-- | test/auxv/.gitattributes | 3 | ||||
-rw-r--r-- | test/auxv/bash.riscv64 | bin | 0 -> 384 bytes | |||
-rw-r--r-- | test/auxv/cat.s390x | bin | 0 -> 304 bytes | |||
-rw-r--r-- | test/auxv/dbus-broker-launch.aarch64 | bin | 0 -> 336 bytes | |||
-rw-r--r-- | test/auxv/dbus-broker-launch.amd64 | bin | 0 -> 336 bytes | |||
-rw-r--r-- | test/auxv/polkitd.aarch64 | bin | 0 -> 336 bytes | |||
-rw-r--r-- | test/auxv/resolved.arm32 | bin | 0 -> 160 bytes | |||
-rw-r--r-- | test/auxv/sleep.i686 | bin | 0 -> 192 bytes | |||
-rw-r--r-- | test/auxv/sleep32.i686 | bin | 0 -> 192 bytes | |||
-rw-r--r-- | test/auxv/sleep64.amd64 | bin | 0 -> 336 bytes | |||
-rw-r--r-- | test/auxv/sudo.aarch64 | bin | 0 -> 336 bytes | |||
-rw-r--r-- | test/auxv/sudo.amd64 | bin | 0 -> 336 bytes |
12 files changed, 3 insertions, 0 deletions
diff --git a/test/auxv/.gitattributes b/test/auxv/.gitattributes new file mode 100644 index 0000000000..58e3ff4c98 --- /dev/null +++ b/test/auxv/.gitattributes @@ -0,0 +1,3 @@ +/*.* -whitespace +/*.* binary +/*.* generated diff --git a/test/auxv/bash.riscv64 b/test/auxv/bash.riscv64 Binary files differnew file mode 100644 index 0000000000..273a468b30 --- /dev/null +++ b/test/auxv/bash.riscv64 diff --git a/test/auxv/cat.s390x b/test/auxv/cat.s390x Binary files differnew file mode 100644 index 0000000000..aa76441fed --- /dev/null +++ b/test/auxv/cat.s390x diff --git a/test/auxv/dbus-broker-launch.aarch64 b/test/auxv/dbus-broker-launch.aarch64 Binary files differnew file mode 100644 index 0000000000..3a05e3cabb --- /dev/null +++ b/test/auxv/dbus-broker-launch.aarch64 diff --git a/test/auxv/dbus-broker-launch.amd64 b/test/auxv/dbus-broker-launch.amd64 Binary files differnew file mode 100644 index 0000000000..21965e85e3 --- /dev/null +++ b/test/auxv/dbus-broker-launch.amd64 diff --git a/test/auxv/polkitd.aarch64 b/test/auxv/polkitd.aarch64 Binary files differnew file mode 100644 index 0000000000..ff1ea9f140 --- /dev/null +++ b/test/auxv/polkitd.aarch64 diff --git a/test/auxv/resolved.arm32 b/test/auxv/resolved.arm32 Binary files differnew file mode 100644 index 0000000000..7d05f3b20b --- /dev/null +++ b/test/auxv/resolved.arm32 diff --git a/test/auxv/sleep.i686 b/test/auxv/sleep.i686 Binary files differnew file mode 100644 index 0000000000..d0b5f2c927 --- /dev/null +++ b/test/auxv/sleep.i686 diff --git a/test/auxv/sleep32.i686 b/test/auxv/sleep32.i686 Binary files differnew file mode 100644 index 0000000000..f52f512436 --- /dev/null +++ b/test/auxv/sleep32.i686 diff --git a/test/auxv/sleep64.amd64 b/test/auxv/sleep64.amd64 Binary files differnew file mode 100644 index 0000000000..c3c7ed472f --- /dev/null +++ b/test/auxv/sleep64.amd64 diff --git a/test/auxv/sudo.aarch64 b/test/auxv/sudo.aarch64 Binary files differnew file mode 100644 index 0000000000..e49ce6a9ac --- /dev/null +++ b/test/auxv/sudo.aarch64 diff --git a/test/auxv/sudo.amd64 b/test/auxv/sudo.amd64 Binary files differnew file mode 100644 index 0000000000..91e4646615 --- /dev/null +++ b/test/auxv/sudo.amd64 |