aboutsummaryrefslogtreecommitdiffstats
path: root/testing/do-tests
Commit message (Collapse)AuthorAgeFilesLines
* testing: Support running multiple tests with * as wildcard (e.g. ikev2/ocsp-*)Tobias Brunner2017-07-071-6/+10
|
* testing: load-testconfig script loads config from source dirTobias Brunner2017-03-021-57/+0
| | | | | | It now does replace the IPs too. This way it's easier to play around with a config (otherwise a do-tests run was required to build the config files in the build dir).
* testing: Fix totals if post test checks failTobias Brunner2016-09-201-12/+12
|
* testing: Log leaks and fail tests if any are detectedTobias Brunner2016-09-201-1/+30
|
* testing: Add output of iptables-saveTobias Brunner2016-09-121-1/+11
| | | | | | | | | This might be helpful to get the complete picture of the installed rules. `-c` is currently not used as the counters that are added in front of every rule make the output quite hard to read and the counters are already provided in the accompanying `iptables -v -L` output. Fixes #2111.
* testing: List `nat` and `mangle` tables in addition to the `filter` tableTobias Brunner2016-09-121-3/+6
| | | | | | This is useful in scenarios that e.g. use NAT and/or marks. References #2111.
* testing: Ignore comments (lines starting with #) in pre-/eval-/posttest.datTobias Brunner2016-09-091-3/+3
|
* testing: Try to properly abort a test run after CTRL-CTobias Brunner2016-08-301-0/+15
| | | | | | | | | The run is aborted after the current scenario. Depending on which command was interrupted it might be necessary to press CTRL-C multiple times (e.g. if a later command depends on the interrupted one). This should fix HTML files and get us some proper console output after the run.
* testing: Report number of tests per subdirectory in main indexTobias Brunner2016-08-301-7/+22
|
* testing: Mount and serve testresults from the hostTobias Brunner2016-08-291-10/+0
| | | | | | | | This avoids having to copy testresults, makes results of cancelled runs browsable (runs may actually be followed live) and preserves old results when rebuilding guest images (e.g. when using the build-strongswan script). The number of consecutive test runs without any intermittent rebuild of the guest images is also not limited by the image size anymore.
* testing: Serve images in testresults via mod_rewrite and not a symlinkTobias Brunner2016-08-291-1/+0
|
* testing: Wait for packets to be processed by tcpdumpTobias Brunner2016-06-161-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes tcpdump fails to process all packets during the short running time of a scenario: 0 packets captured 18 packets received by filter 0 packets dropped by kernel So 18 packets were captured by libpcap but tcpdump did not yet process and print them. This tries to use --immediate-mode if supported by tcpdump (the one currently in jessie or wheezy does not, but the one in jessie-backports does), which disables the buffering in libpcap. However, even with immediate mode there are cases where it takes a while longer for all packets to get processed. And without it we also need a workaround (even though the version in wheezy actually works fine). That's why there now is a loop checking for differences in captured vs. received packets. There are actually cases where these numbers are not equal but we still captured all packets we're interested in, so we abort after 1s of retrying. But sometimes it could still happen that packets we expected got lost somewhere ("packets dropped by kernel" is not always 0 either).
* testing: Make sure tcpdump is actually terminated before ↵Tobias Brunner2016-06-161-11/+6
| | | | analyzing/collecting logs
* testing: Change sql scenarios to swanctlAndreas Steffen2016-01-031-5/+18
|
* testing: Added swanctl --list-algs outputAndreas Steffen2015-12-111-2/+5
|
* vici: Don't report memory usage via leak-detectiveTobias Brunner2015-12-111-1/+0
| | | | | This slowed down the `swanctl --stats` calls in the test scenarios significantly, with not much added value.
* testing: Add test config to create and remove a directory for DBs stored in ↵Tobias Brunner2015-11-091-1/+23
| | | | ramfs
* testing: Report the actual strongSwan and kernel versionsTobias Brunner2015-11-091-0/+6
|
* testing: Report time required for all scenarios on test overview pageTobias Brunner2015-11-091-4/+13
|
* testing: Don't log anything to the console if auth.log or daemon.log do not ↵Tobias Brunner2015-11-091-2/+2
| | | | exist
* testing: Simplify fetching of swanctl --list-* outputTobias Brunner2015-11-091-20/+8
|
* testing: Let test scenarios fail if IPsec SAs or policies are not removedTobias Brunner2015-08-211-0/+18
| | | | | The IKE daemon should delete all installed SAs and policies when everything works properly, so we fail the test if that's not the case.
* testing: Flush state and policies before every scenarioTobias Brunner2015-08-211-0/+8
| | | | Similar to conntrack we make sure we are working on a clean slate.
* testing: Don't run do-tests when hosts are not runningTobias Brunner2015-08-031-0/+1
| | | | | | running_any is satisfied if at least one host is running. We could easily add a running_all() helper to check if all hosts are running if it turns out that's not strong enough.
* testing: Added swanctl --list-authorities output to do-testsAndreas Steffen2015-07-221-1/+5
|
* tests: Introduced IPV6 flag in tests.confAndreas Steffen2015-07-211-1/+1
|
* tests: Introduced SWANCTL flag in test.confAndreas Steffen2015-07-211-23/+25
|
* Added swanctl --list-pols and swanctl --stats do scenario logAndreas Steffen2014-06-181-3/+12
|
* First swanctl scenario5.2.0dr5Andreas Steffen2014-06-011-14/+71
|
* Test SWID REST API ins tnc/tnccs-20-pdp scenariosAndreas Steffen2014-05-311-1/+1
|
* testing: Run 'conntrack -F' before all test scenariosTobias Brunner2014-04-021-0/+9
| | | | This prevents failures due to remaining conntrack entries.
* testing: Ignore errors when searching for imcv log entries in daemon.logTobias Brunner2013-06-101-1/+1
|
* Define SSHCONF from strongswan testing directory, not TESTDIRMartin Willi2013-03-261-0/+1
| | | | | This fixes the use of SSHCONF in the ssh wrapper script before ./do-tests had a chance to create the required symlinks.
* Store debug output from standalone IMC/IMVsAndreas Steffen2013-03-221-2/+2
|
* Renamed $UMLHOSTS to $VIRTHOSTSTobias Brunner2013-01-171-1/+1
|
* Append seconds to TESTDATEReto Buerki2013-01-171-1/+1
| | | | | This avoids 'file exists' warnings when running tests multiple times in one minute.
* Auto-create symlink to testing directory in workdirReto Buerki2013-01-171-0/+2
|
* Rename UML to KVM testsAndreas Steffen2013-01-171-7/+7
|
* List daemon.log on $RADIUSHOSTSAndreas Steffen2013-01-171-0/+4
|
* Make test scripts callable from any pathReto Buerki2013-01-171-8/+8
|
* Drop SELECTEDTESTSONLY supportReto Buerki2013-01-171-4/+0
|
* Use exit trap to kill open ssh sessionsReto Buerki2013-01-171-8/+1
|
* Rename UMLTESTDIR variable to TESTDIRReto Buerki2013-01-171-1/+1
|
* Use log_action function in do-tests scriptReto Buerki2013-01-171-38/+27
|
* Use key(and password-)less SSH authenticationTobias Brunner2013-01-171-1/+1
|
* Adjust strongSwan version handling in HTML outputReto Buerki2013-01-171-23/+23
|
* Copy and display host specific tcpdump.log filesTobias Brunner2013-01-171-0/+22
|
* Don't generate do-testsTobias Brunner2013-01-171-0/+785
|
* testing/do-tests is made from do-tests.in by inserting actual routing tableAndreas Steffen2007-08-281-663/+0
|
* use cgecho for green outputAndreas Steffen2007-08-031-3/+5
|