1
0
forked from drath/libratbag
Files
libratbag-plus/tools/ratbagctl.test.wrapper
Peter Hutterer ca69365a86 meson: run ratbagctl.test as part of ninja test
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>
2017-07-24 10:32:41 +02:00

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