# # # add_dir "tests/serve-automate" # # add_file "tests/serve-automate/__driver__.lua" # content [22b275f3775911eab4c3a184779543931a24ff29] # ============================================================ --- tests/serve-automate/__driver__.lua 22b275f3775911eab4c3a184779543931a24ff29 +++ tests/serve-automate/__driver__.lua 22b275f3775911eab4c3a184779543931a24ff29 @@ -0,0 +1,19 @@ +-- this test uses netcat +skip_if(not existsonpath("nc")) + +include("common/netsync.lua") + +mtn_setup() +netsync.setup() + +automate_port = math.random(1024, 65535) +server = netsync.start({"--bind-automate", "localhost:" .. automate_port}) + +check({"nc", "-q", "10", "localhost", automate_port}, 0, true, false, + "l17:interface_versione") + +rename("stdout", "version") + +check(qgrep("^0:0:l:", "version")) + +server:stop() \ No newline at end of file