mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Or at least do so when we're root. Test is skipped on CircleCI because we don't have DBus. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
22 lines
467 B
Bash
Executable File
22 lines
467 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Wrapper to execute ratbagctl.test. Required because meson does not allow
|
|
# a configure_file() output to be used as test. And besides, we need to run
|
|
# this as root anyway.
|
|
#
|
|
if [ `whoami` != "root" ]; then
|
|
echo "This test must be run as root"
|
|
# Skippedy skip skip
|
|
exit 77
|
|
fi
|
|
|
|
if ! [ -z "$CIRCLECI" ]; then
|
|
echo "CircleCI does not have DBus. Skipping test"
|
|
# Skippedy skip skip
|
|
exit 77
|
|
fi
|
|
|
|
MESON_BUILD_ROOT="$1"
|
|
|
|
"$MESON_BUILD_ROOT"/ratbagctl.test
|