The current /dev/input/* check isn't reliable enough. So rather than adding
extra heuristics prone to fail add an environment variable that says "do not
run the test suite runner". All other tests are run since they do not
require/modify any specific system setup.
Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/62
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
int tty_mode = -1;
int failed_tests;
+ if (getenv("SKIP_LIBINPUT_TEST_SUITE_RUNNER"))
+ return 77;
+
if (getuid() != 0) {
fprintf(stderr,
"%s must be run as root.\n",