summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Enforce "serial-tests" behaviour for tests/Makefile"Gert Doering2015-05-281-2/+0
| | | | | | This reverts commit fc03ca9d13e35c40bdf1c3c676db2adf48c60223, because it breaks "autoreconf -vif" on autoconf versions older than 1.12 - like, CentOS 6, Debian 7, ...
* Enforce "serial-tests" behaviour for tests/MakefileGert Doering2015-05-271-0/+2
| | | | | | | | | | | | | | | | | Our "make check" testsuite creates quite a bit of output which is intended to help pinpointing the exact reason for failure - hidden by default by automake 1.12 and up, which default to "parallel-tests" which has no benefit for us. So, just set the automake option to revert to the old behaviour. See also: https://www.gnu.org/software/automake/manual/html_node/Serial-Test-Harness.html Trac #427 Signed-off-by: Gert Doering <gert@greenie.muc.de> Message-ID: <20150524193011.GK382@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/9738 Acked-by: David Sommerseth <openvpn.list@topphemmelig.net>
* Really fix '--cipher none' regressionSteffan Karger2014-12-021-0/+3
| | | | | | | | | | | | | | | | | | | ... by not incorrectly hinting to the compiler the function argument of cipher_kt_mode_{cbc,ofb_cfb}() is nonnull, since that no longer is the case. Verified the fix on Debian Wheezy, one of the platforms the reporter in trac #473 mentions with a compiler that would optimize out the required checks. Also add a testcase for --cipher none to t_lpback, to prevent further regressions. Signed-off-by: Steffan Karger <steffan@karger.me> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1417552920-31770-1-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/9300 Signed-off-by: Gert Doering <gert@greenie.muc.de>
* Fix t_lpback.sh platform-dependent failuresGert Doering2014-07-081-2/+5
| | | | | | | | | | | commit e97aa06dc058 introduced "full openvpn cipher testing", but fails on OpenSSL 0.9.8 with DES-CFB1 (skip), on NetBSD for RC5-* (needs extra library, libcrypto_rc5.a) and on Solaris for POSIXly "tail" (rewrite). Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <1404830758-7927-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8861
* Extend t_lpback tests to test all ciphers reported by --show-ciphersSteffan Karger2014-07-071-4/+26
| | | | | | | | | | ... instead of just BF-CBC. Should catch more mistakes. Signed-off-by: Steffan Karger <steffan@karger.me> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1402244175-31462-5-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/8777 Signed-off-by: Gert Doering <gert@greenie.muc.de>
* Make t_client.sh work on AIX.Gert Doering2014-07-071-0/+6
| | | | | | | | | | Teach it how to run ifconfig/route on AIX to have meaningful results. Signed-off-by: Gert Doering <gd@medat.de> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1402409073-54067216-5-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8786 Signed-off-by: Gert Doering <gert@greenie.muc.de>
* Minor t_client.sh cleanupsGert Doering2014-04-211-1/+1
| | | | | | | | | | | - remove built tests/t_client.sh script on "make clean" - ignore Linux iproute2 "ssthresh <n>" output that sometimes shows up in "ip -6 route show" and breaks before/after comparison Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1398019261-30180-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8557
* t_client.sh: ignore fields from "ip -6 route show" output that distort results.Gert Doering2013-11-241-1/+1
| | | | | | | | | | | | | | | "ip -6 route show" prints stuff like "rtt 38ms rttvar 38ms cwnd 10", which sometimes changes while an OpenVPN test is running, resulting in spurious failures in the "ifconfig/route must be restored identically after OpenVPN ends" test in t_client.sh. Not all fields are there all the time, so use "sed" to get rid of whatever is printed this time. Only relevant for "make check" on linux builds with "--enable-iproute2". Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1385309584-23209-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8047
* Fix IPv6 examples in t_client.rc-sampleGert Doering2013-11-171-4/+4
| | | | | | | | | | IPv6 documentation prefix is 2001:db*8*:: (not :dba:), and the second test stanza variables need to end in _2, of course... Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Josh Cepek <josh.cepek@usa.net> Message-Id: <1384624401-27943-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/7992
* t_client.sh: Add prepare/cleanup possibilties for each test caseDavid Sommerseth2013-11-161-0/+13
| | | | | | | | | | | By adding PREPARE_$NUM and CLEANUP_$NUM variables containing command lines to execute before and after the test case is run. Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1384615074-22345-1-git-send-email-dazo@users.sourceforge.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/7990 Signed-off-by: Gert Doering <gert@greenie.muc.de>
* t_client.sh: Write errors to stderr and document requirementsDavid Sommerseth2013-11-161-2/+2
| | | | | | | | | Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Matthias Andree <matthias.andree@gmx.de> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1384597423-11136-1-git-send-email-dazo@users.sourceforge.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/7984 Signed-off-by: Gert Doering <gert@greenie.muc.de>
* t_client.sh: Check for fping/fping6 availabilityDavid Sommerseth2013-11-151-0/+12
| | | | | | | | | | | Check if fping and fping6 is available before running the real tests, to avoid misleading test failures. Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1384535524-6366-1-git-send-email-dazo@users.sourceforge.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/7981 Signed-off-by: Gert Doering <gert@greenie.muc.de>
* Put actual OpenVPN command line on top of corresponding log file.Gert Doering2012-09-021-1/+2
| | | | | | | | | | | | This is useful if a test fails, and the tester wants to run the very same OpenVPN call with the very same arguments interactively to pinpoint and fix the problem. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1345141883-9889-2-git-send-email-gert@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6984 Signed-off-by: David Sommerseth <davids@redhat.com>
* t_client.sh - fix for iproute2, print summary lineGert Doering2012-06-131-1/+11
| | | | | | | | | | | | | Yet another postprocess-output fix for iproute2 (sometimes there was no whitespace in the output, so substituting away expiry time failed). Print summary line of succeeded and failed test sets at the very end. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 20120607174255.GV1059@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6704 Signed-off-by: David Sommerseth <davids@redhat.com>
* t_client.sh iproute2 script fixesGert Doering2012-06-011-2/+2
| | | | | | | | | | | | | | Test for existance of "iproute2" with "-n" (Alon) Work around "ip -6 route show" behaviour on FC14 where some parts of the IPv6 route cache would be displayed, which has no relevance to OpenVPN but breaks before/after comparison. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 20120601151507.GE400@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6637 Signed-off-by: David Sommerseth <davids@redhat.com>
* repair t_client.sh test after build system revolutionGert Doering2012-06-012-8/+10
| | | | | | | | | | | | | | | - run t_client.sh at "make check" time - in t_client.sh, read t_client.rc from source *or* build dir (as before) - @IP@ evaluates to "" now (not "ip") if iproute2 not found - adapt script - introduce $SETUP_TIME_WAIT to delay "waiting for openvpn startup" longer than the default delay of 10 seconds - this is needed for test servers with a high network RTT Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 20120527202737.GV1161@greenie.muc.de URL: http://article.gmane.org/gmane.network.openvpn.devel/6616 Signed-off-by: David Sommerseth <davids@redhat.com>
* build: standard directory layoutAlon Bar-Lev2012-03-226-0/+544
Suitable for mature project. root - administrative stuff doc - documents src - sources tests - tests distro - distro specific files sample - samples SIDE EFFECT: many changes to rpm spec. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Adriaan de Jong <dejong@fox-it.com> Signed-off-by: David Sommerseth <davids@redhat.com>