mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
test: fix test-execute personality tests on ppc64 and aarch64 (#3825)
This commit is contained in:
parent
cce9c80af3
commit
1259186355
@ -1629,6 +1629,9 @@ EXTRA_DIST += \
|
||||
test/test-execute/exec-personality-x86-64.service \
|
||||
test/test-execute/exec-personality-x86.service \
|
||||
test/test-execute/exec-personality-s390.service \
|
||||
test/test-execute/exec-personality-ppc64.service \
|
||||
test/test-execute/exec-personality-ppc64le.service \
|
||||
test/test-execute/exec-personality-aarch64.service \
|
||||
test/test-execute/exec-privatedevices-no.service \
|
||||
test/test-execute/exec-privatedevices-yes.service \
|
||||
test/test-execute/exec-privatetmp-no.service \
|
||||
|
@ -92,6 +92,16 @@ static void test_exec_personality(Manager *m) {
|
||||
#elif defined(__s390__)
|
||||
test(m, "exec-personality-s390.service", 0, CLD_EXITED);
|
||||
|
||||
#elif defined(__powerpc64__)
|
||||
# if __BYTE_ORDER == __BIG_ENDIAN
|
||||
test(m, "exec-personality-ppc64.service", 0, CLD_EXITED);
|
||||
# else
|
||||
test(m, "exec-personality-ppc64le.service", 0, CLD_EXITED);
|
||||
# endif
|
||||
|
||||
#elif defined(__aarch64__)
|
||||
test(m, "exec-personality-aarch64.service", 0, CLD_EXITED);
|
||||
|
||||
#elif defined(__i386__)
|
||||
test(m, "exec-personality-x86.service", 0, CLD_EXITED);
|
||||
#endif
|
||||
|
7
test/test-execute/exec-personality-aarch64.service
Normal file
7
test/test-execute/exec-personality-aarch64.service
Normal file
@ -0,0 +1,7 @@
|
||||
Unit]
|
||||
Description=Test for Personality=aarch64
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'echo $(uname -m); exit $(test $(uname -m) = "aarch64")'
|
||||
Type=oneshot
|
||||
Personality=aarch64
|
7
test/test-execute/exec-personality-ppc64.service
Normal file
7
test/test-execute/exec-personality-ppc64.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Test for Personality=ppc64
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'echo $(uname -m); exit $(test $(uname -m) = "ppc64")'
|
||||
Type=oneshot
|
||||
Personality=ppc64
|
7
test/test-execute/exec-personality-ppc64le.service
Normal file
7
test/test-execute/exec-personality-ppc64le.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Test for Personality=ppc64le
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'echo $(uname -m); exit $(test $(uname -m) = "ppc64le")'
|
||||
Type=oneshot
|
||||
Personality=ppc64le
|
Loading…
x
Reference in New Issue
Block a user