1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00

test: add LoongArch 64bit testcase

This commit is contained in:
Xiaotian Wu 2021-11-06 16:29:45 +08:00
parent eebbd595f0
commit 646b01121a
2 changed files with 9 additions and 0 deletions

View File

@ -381,6 +381,8 @@ static void test_exec_personality(Manager *m) {
#elif defined(__i386__)
test(m, "exec-personality-x86.service", 0, CLD_EXITED);
#elif defined(__loongarch64)
test(m, "exec-personality-loongarch64.service", 0, CLD_EXITED);
#else
log_notice("Unknown personality, skipping %s", __func__);
#endif

View File

@ -0,0 +1,7 @@
[Unit]
Description=Test for Personality=loongarch64
[Service]
ExecStart=/bin/sh -c 'echo $(uname -m); exit $(test $(uname -m) = "loongarch64")'
Type=oneshot
Personality=loongarch64