소스 검색

simple testing for servers

clementinecomputing 6 년 전
부모
커밋
2b3e25a6a1
3개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      server/testing/test-vectors/testvector-avls
  2. 8 0
      server/testing/test-vectors/testvector-billing
  3. 6 0
      server/testing/test-vectors/testvector-buspass

+ 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