From 661f9ab1f56c8c365018e06e48bb3126809e89c7 Mon Sep 17 00:00:00 2001 From: Fred Wright Date: Thu, 27 Sep 2018 15:55:45 -0700 Subject: Adds test for xgps dependencies. This adds a new test_xgps_deps.py, which duplicates the imports needed by xgps and xgpsspeed, as a quick way to verify that the proper prerequisites are in place. It avoids the imports that require (and connect to) an available X11 server. TESTED: Ran successfully with proper dependencies, and verified failure with either cairo or gobject3 removed. --- SConstruct | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index c606b86f..034f8957 100644 --- a/SConstruct +++ b/SConstruct @@ -2179,6 +2179,16 @@ method_regress = UtilityWithHerald( 'method-regress', [test_packet], [ '$SRCDIR/test_packet -c >/dev/null', ]) +# Test the xgps/xgpsspeed dependencies +if not env['python'] or not env['xgps']: + test_xgps_deps = None +else: + test_xgps_deps = UtilityWithHerald( + 'Testing xgps/xgpsspeed dependencies (since xgps=yes)...', + 'test-xgps-deps', [], [ + '$PYTHON $SRCDIR/test_xgps_deps.py', + ]) + # Run a valgrind audit on the daemon - not in normal tests valgrind_audit = Utility('valgrind-audit', [ '$SRCDIR/valgrind-audit.py', python_built_extensions, gpsd], -- cgit v1.2.1