Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
729 B

  1. #!/bin/sh
  2. #
  3. # Compare the results from running gpsfake on a logfile between this
  4. # machine and a remote one. Especially useful when remote and local
  5. # have different word lengths.
  6. #
  7. # This file is Copyright (c) 2010 by the GPSD project
  8. # BSD terms apply: see the file COPYING in the distribution root for details.
  9. #
  10. file=$1
  11. remote=$2
  12. directory=git/gpsd
  13. options="-D 4"
  14. ./gpsfake $options -s 38400 -1 -p $file >/tmp/fcmp-local-$$ 2>&1
  15. scp -q $file ${remote}:${directory}
  16. ssh $remote "cd ${directory}; PATH=$PATH:. ./gpsfake $options -s 38400 -1 -p $file" >/tmp/fcmp-remote-$$ 2>&1
  17. echo "*** Local:"
  18. cat /tmp/fcmp-local-$$
  19. echo "*** Diff:"
  20. diff -u /tmp/fcmp-local-$$ /tmp/fcmp-remote-$$
  21. rm /tmp/fcmp-local-$$ /tmp/fcmp-remote-$$