13 Commits

Author SHA1 Message Date
Guodong Zhu
18a824ca2f
testbench: fix the wrong message injection object of instance 1
In some client-server test cases, messages are supposed to be injected into
the instance 2(client), but they are actually injected into instance 1(server),
which may lead to false negative results. This patch fixed it by replacing
'injectmsg' with 'injectmsg2', and dealt with some minor issues.
2022-11-23 12:28:15 +01:00
Rainer Gerhards
58dfe006a8
testbench: improve tests
modernize them, reduce robustness against slow machines, provide some
test framework functional enhancements and optimizie some tests
2020-01-19 16:09:44 +01:00
Rainer Gerhards
19334aa910
testbench: modernize "wait-file-lines" functionality
also some small other enhancements
2018-11-05 14:12:02 +01:00
Rainer Gerhards
3aca04df78 testbench: make test more reliable
replace fixed-time sleep with better method
2018-10-24 12:18:02 +02:00
Rainer Gerhards
69ef6e329b fix bad bash coding style and disable shellcheck false positives
Also now permit interactivly running tests without explicitly setting
$srcdir. This now works if we are inside ./tests and fails, as before,
when we are in a different directory.

Detected by shellcheck via CodeFactor.io
2018-10-23 13:27:37 +02:00
Rainer Gerhards
566788ecac * remove unnecessary calls to "wait_startup"
This is automatically called by "startup" and "startup_vg". Tests
  looked like a left-over from old testbench plumbing.
2018-09-04 10:50:57 +02:00
Rainer Gerhards
20696a754b
testbench: streamline plumbing
no functional changes, but modernization and cleanup
2018-09-01 13:18:50 +02:00
friedl
493ed7af8f Test Refactor part 9 - DONOTMERGE (#2928)
* Testbench refactoring part 9
2018-08-15 17:20:11 +02:00
df3d4a3922 test-suite: Added !#/bin/bash into all test scripts.
Most of the tests will not work in other default shells like
on Freebsd or Solaris. So we make /bin/bash default now.
2015-07-30 15:38:17 +00:00
be940cf970 testbench: made work on FreeBSD
bash "source" extension is not supported in FreeBSD default shell"
2015-07-15 09:33:31 +00:00
Rainer Gerhards
d95826fae9 testbench: slow down udp sending to prevent races 2015-07-07 12:08:00 +02:00
Rainer Gerhards
9bda7c84ec testbench: add UDP send/receive test with RainerScript config format 2014-11-05 17:36:11 +01:00
Rainer Gerhards
20f1c9c502 improved testbench: added tests for UDP forwarding and omudpspoof 2009-11-12 11:24:52 +01:00