summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-06-30 19:42:25 -0700
committerGary E. Miller <gem@rellim.com>2017-06-30 19:42:25 -0700
commit116f485195570d5094247cff850f69966df17845 (patch)
treeac8d3c3551ac7be301a9be2f5c514f1571db6726 /SConstruct
parente0af475dfe286531c0a208f2329bc38aea34ae35 (diff)
downloadgpsd-116f485195570d5094247cff850f69966df17845.tar.gz
SConstruct: more pep8 cleanup
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct74
1 files changed, 38 insertions, 36 deletions
diff --git a/SConstruct b/SConstruct
index bdbf74dc..f207bc22 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1803,26 +1803,26 @@ else:
rtcm_regress = Utility('rtcm-regress', [gpsdecode], [
'@echo "Testing RTCM decoding..."',
'@for f in $SRCDIR/test/*.rtcm2; do '
- 'echo "\tTesting $${f}..."; '
- 'TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
- '$SRCDIR/gpsdecode -u -j <$${f} >$${TMPFILE}; '
- 'diff -ub $${f}.chk $${TMPFILE} || echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; '
+ ' echo "\tTesting $${f}..."; '
+ ' TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
+ ' $SRCDIR/gpsdecode -u -j <$${f} >$${TMPFILE}; '
+ ' diff -ub $${f}.chk $${TMPFILE} || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; '
'done;',
'@echo "Testing idempotency of JSON dump/decode for RTCM2"',
'@TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
'$SRCDIR/gpsdecode -u -e -j <test/synthetic-rtcm2.json >$${TMPFILE}; '
- 'grep -v "^#" test/synthetic-rtcm2.json | diff -ub - $${TMPFILE} '
- '|| echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; ',
+ ' grep -v "^#" test/synthetic-rtcm2.json | diff -ub - $${TMPFILE} '
+ ' || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; ',
])
# Rebuild the RTCM regression tests.
Utility('rtcm-makeregress', [gpsdecode], [
'for f in $SRCDIR/test/*.rtcm2; do '
- '$SRCDIR/gpsdecode -j <$${f} >$${f}.chk; '
+ ' $SRCDIR/gpsdecode -j <$${f} >$${f}.chk; '
'done'
- ])
+ ])
# Regression-test the AIVDM decoder.
if not env["aivdm"]:
@@ -1832,50 +1832,52 @@ else:
aivdm_regress = Utility('aivdm-regress', [gpsdecode], [
'@echo "Testing AIVDM decoding w/ CSV format..."',
'@for f in $SRCDIR/test/*.aivdm; do '
- 'echo "\tTesting $${f}..."; '
- 'TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
- '$SRCDIR/gpsdecode -u -c <$${f} >$${TMPFILE}; '
- 'diff -ub $${f}.chk $${TMPFILE} || echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; '
+ ' echo "\tTesting $${f}..."; '
+ ' TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
+ ' $SRCDIR/gpsdecode -u -c <$${f} >$${TMPFILE}; '
+ ' diff -ub $${f}.chk $${TMPFILE} || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; '
'done;',
'@echo "Testing AIVDM decoding w/ JSON unscaled format..."',
'@for f in $SRCDIR/test/*.aivdm; do '
- 'echo "\tTesting $${f}..."; '
- 'TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
- '$SRCDIR/gpsdecode -u -j <$${f} >$${TMPFILE}; '
- 'diff -ub $${f}.ju.chk $${TMPFILE} || echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; '
+ ' echo "\tTesting $${f}..."; '
+ ' TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
+ ' $SRCDIR/gpsdecode -u -j <$${f} >$${TMPFILE}; '
+ ' diff -ub $${f}.ju.chk $${TMPFILE} || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; '
'done;',
'@echo "Testing AIVDM decoding w/ JSON scaled format..."',
'@for f in $SRCDIR/test/*.aivdm; do '
- 'echo "\tTesting $${f}..."; '
- 'TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
- '$SRCDIR/gpsdecode -j <$${f} >$${TMPFILE}; '
- 'diff -ub $${f}.js.chk $${TMPFILE} || echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; '
+ ' echo "\tTesting $${f}..."; '
+ ' TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
+ ' $SRCDIR/gpsdecode -j <$${f} >$${TMPFILE}; '
+ ' diff -ub $${f}.js.chk $${TMPFILE} || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; '
'done;',
'@echo "Testing idempotency of unscaled JSON dump/decode for AIS"',
'@TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
'$SRCDIR/gpsdecode -u -e -j <$SRCDIR/test/sample.aivdm.ju.chk >$${TMPFILE}; '
- 'grep -v "^#" $SRCDIR/test/sample.aivdm.ju.chk | diff -ub - $${TMPFILE} || echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; ',
+ ' grep -v "^#" $SRCDIR/test/sample.aivdm.ju.chk '
+ ' | diff -ub - $${TMPFILE} || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; ',
# Parse the unscaled json reference, dump it as scaled json,
# and finally compare it with the scaled json reference
'@echo "Testing idempotency of scaled JSON dump/decode for AIS"',
'@TMPFILE=`mktemp -t gpsd-test.chk-XXXXXXXXXXXXXX`; '
- '$SRCDIR/gpsdecode -e -j <$SRCDIR/test/sample.aivdm.ju.chk >$${TMPFILE}; '
- 'grep -v "^#" $SRCDIR/test/sample.aivdm.js.chk | diff -ub - $${TMPFILE} || echo "Test FAILED!"; '
- 'rm -f $${TMPFILE}; ',
+ '$SRCDIR/gpsdecode -e -j <$SRCDIR/test/sample.aivdm.ju.chk >$${TMPFILE};'
+ ' grep -v "^#" $SRCDIR/test/sample.aivdm.js.chk '
+ ' | diff -ub - $${TMPFILE} || echo "Test FAILED!"; '
+ ' rm -f $${TMPFILE}; ',
])
# Rebuild the AIVDM regression tests.
Utility('aivdm-makeregress', [gpsdecode], [
'for f in $SRCDIR/test/*.aivdm; do '
- '$SRCDIR/gpsdecode -u -c <$${f} > $${f}.chk; '
- '$SRCDIR/gpsdecode -u -j <$${f} > $${f}.ju.chk; '
- '$SRCDIR/gpsdecode -j <$${f} > $${f}.js.chk; '
+ ' $SRCDIR/gpsdecode -u -c <$${f} > $${f}.chk; '
+ ' $SRCDIR/gpsdecode -u -j <$${f} > $${f}.ju.chk; '
+ ' $SRCDIR/gpsdecode -j <$${f} > $${f}.js.chk; '
'done',
- ])
+ ])
# Regression-test the packet getter.
packet_regress = UtilityWithHerald(
@@ -1954,8 +1956,8 @@ method_regress = UtilityWithHerald(
])
# Run a valgrind audit on the daemon - not in normal tests
-valgrind_audit = Utility('valgrind-audit',
- ['$SRCDIR/valgrind-audit.py', python_built_extensions, gpsd],
+valgrind_audit = Utility('valgrind-audit', [
+ '$SRCDIR/valgrind-audit.py', python_built_extensions, gpsd],
'$PYTHON $SRCDIR/valgrind-audit.py'
)