summaryrefslogtreecommitdiff
path: root/devtools/fakecompare
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-06 13:23:05 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-06 13:23:05 +0000
commitf139ce9ddf5d7d238828c106a91aaf7892e460b2 (patch)
treeb2b2bb2c8056bff5eeed4680f235b3b958e67aa6 /devtools/fakecompare
parent2d64384a3880db2a8d7cc598ef2088cccd96d5ab (diff)
downloadgpsd-f139ce9ddf5d7d238828c106a91aaf7892e460b2.tar.gz
Register some developer convenience scripts (not stuff to be shipped).
Diffstat (limited to 'devtools/fakecompare')
-rwxr-xr-xdevtools/fakecompare20
1 files changed, 20 insertions, 0 deletions
diff --git a/devtools/fakecompare b/devtools/fakecompare
new file mode 100755
index 00000000..08086302
--- /dev/null
+++ b/devtools/fakecompare
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Compare the results from running gpsfake on a logfile between this
+# machine and a remote one. Especially useful when remote and local
+# have different word lengths.
+#
+file=$1
+remote=$2
+
+directory=svn/gpsd/trunk
+options="-D 4"
+
+./gpsfake $options -s 38400 -1 -p $file >/tmp/fcmp-local-$$ 2>&1
+scp -q $file ${remote}:${directory}
+ssh $remote "cd ${directory}; PATH=$PATH:. ./gpsfake $options -s 38400 -1 -p $file" >/tmp/fcmp-remote-$$ 2>&1
+echo "*** Local:"
+cat /tmp/fcmp-local-$$
+echo "*** Diff:"
+diff -u /tmp/fcmp-local-$$ /tmp/fcmp-remote-$$
+rm /tmp/fcmp-local-$$ /tmp/fcmp-remote-$$