kos/scripts/test/root.sh
Ari Archer a2ec84af8e
better tests
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-03-25 20:47:01 +02:00

15 lines
221 B
Bash
Executable file

#!/usr/bin/env bash
. scripts/test/root.lib.sh
. scripts/test/config.sh
main() {
[ "$UID" != 0 ] && log 'Needs root access' && exit 1
log 'SUID tests'
suid
suid "$TEST_CMD && ls -a /root"
}
main "$@"