diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-05-07 13:59:10 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-05-07 13:59:10 +0400 |
commit | f1096076fd6ce8f998317d9bb531e39a76ed0d4f (patch) | |
tree | 95b6f41565240da201cb9bd64e361e101ed4c9b2 | |
parent | d1252f1f0729850ceb15fca5274caca349b60bf5 (diff) | |
download | trackermap-server-f1096076fd6ce8f998317d9bb531e39a76ed0d4f.tar.gz trackermap-server-f1096076fd6ce8f998317d9bb531e39a76ed0d4f.tar.bz2 trackermap-server-f1096076fd6ce8f998317d9bb531e39a76ed0d4f.zip |
Added test script
-rwxr-xr-x | test.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test.sh b/test.sh new file mode 100755 index 000000000..f05fa9514 --- /dev/null +++ b/test.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# testing data: +# imei - 123456789012345 +# time - 12:0X (where X is different for each tracker) +# server - localhost +# ports - default + +# to verify test check database entries + +echo "0. xexun" +(echo -n -e "111111120009,+436763737552,GPRMC,120000.000,A,6000.0000,N,13000.0000,E,0.0,0.0,010112,,,A*76,F,imei:123456789012345,04,481.2,F:4.15V,0,139,2689,232,03,2725,0576";) | nc -v localhost 5000 + +echo "1. gps103" +(echo -n -e "imei:123456789012345,help me,1201011201,,F,120100.000,A,6000.0000,N,13000.0000,E,0.00,;";) | nc -v localhost 5001 + +echo "2. tk103" +(echo -n -e "(000000000000BP05123456789012345120101A6000.0000N13000.0000E000.0120200000.0000000000L000946BB)";) | nc -v localhost 5002 + +echo "3. gl100" +(echo -n -e "+RESP:GTSOS,123456789012345,0,0,0,1,0.0,0,0.0,1,130.000000,60.000000,20120101120300,0460,0000,18d8,6141,00,11F0,0102120204\0";) | nc -v localhost 5003 + +echo "4. gl200" +(echo -n -e "+RESP:GTFRI,020102,123456789012345,,0,0,1,1,0.0,0,0.0,130.000000,60.000000,20120101120400,0460,0000,18d8,6141,00,,20120101120400,11F0\$";) | nc -v localhost 5004 + +echo "5. t55" +(echo -n -e "\$PGID,123456789012345*0F\r\n\$GPRMC,120500.000,A,6000.0000,N,13000.0000,E,0.00,0.00,010112,,*33\r\n";) | nc -v localhost 5005 + +echo "6. xexun2" +(echo -n -e "111111120009,+436763737552,GPRMC,120600.000,A,6000.0000,N,13000.0000,E,0.00,0.00,010112,,,A*68,F,, imei:123456789012345,04,481.2,F:4.15V,0,139,2689,232,03,2725,0576\n";) | nc -v localhost 5006 + +echo "7. avl08" +(echo -n -e "\$\$B3123456789012345|AA\$GPRMC,120700.000,A,6000.0000,N,13000.0000,E,0.00,,010112,,,A*74|01.8|01.0|01.5|000000000000|20120403234603|14251914|00000000|0012D888|0000|0.0000|3674|940B\r\n";) | nc -v localhost 5007 + |