blob: 9c116e3578233800db1eb73c5f20c8096b8ac129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
source ${CURDIR}/tests/functions
#
# Test orphanskill feature (std)
#
header "Test orphanskill feature (std)"
if pgrep daemontest; then
echo "Exiting because there is already a daemontest running."
exit 1
fi
runcmd "$MOCKCMD --offline --init"
runcmd "$MOCKCMD --offline --copyin tests/daemontest.c /tmp"
runcmd "$MOCKCMD --offline --chroot -- gcc -Wall -o /tmp/daemontest /tmp/daemontest.c"
runcmd "$MOCKCMD --offline --chroot -- /tmp/daemontest"
if pgrep daemontest; then
echo "Daemontest FAILED. found a daemontest process running after exit."
exit 1
fi
|