Bladeren bron

simple testing for servers

clementinecomputing 6 jaren geleden
bovenliggende
commit
2b3e25a6a1

+ 9 - 0
server/testing/test-vectors/testvector-avls

@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+# To be run on the server host
+#
+
+# equp_num,driver,paddle,route,trip,stop,chirp_time,lat,long,heading,vel
+#
+echo -e '9999\t00078\t6055\t2\t3\t5\t1567437420\t4226.69928\t-7630.41112\t1\t2' | \
+  nc localhost 2857

+ 8 - 0
server/testing/test-vectors/testvector-billing

@@ -0,0 +1,8 @@
+#!/bin/bash
+#
+# To be run on the server host
+#
+
+# equip,driver,padde,route,trip,stop,ride_time,lat,long,action,rule,ruleparam,reason,credential,logical_card_id,cash_value,stop_name,usec
+echo -e '9999\t00078\t6055\t2\t3\t5\t1567437420\t4226.69928\t-7630.41112\tACCEPT\tTEST-ORG-NRIDE\t5\t.\t2:7370000000007015\t1\t0\ttest route mid\t0' | \
+  nc localhost 2455

+ 6 - 0
server/testing/test-vectors/testvector-buspass

@@ -0,0 +1,6 @@
+#!/bin/bash
+#
+# To be run on the server
+#
+
+echo -e 'QUERY\t1' | nc localhost 7277