mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
A lot of tests need to initialize the OVS_RUNDIR, OVS_LOGDIR, etc. variables to point to the directory in which the tests run. Until now, each of them has had to do this individually, which is redundant. This commit starts to do this automatically. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
23 lines
683 B
Plaintext
23 lines
683 B
Plaintext
m4_define([TEST_VCONN_CLASS],
|
|
[AT_BANNER([vconn library -- $1 class])
|
|
m4_foreach(
|
|
[testname],
|
|
[[refuse-connection],
|
|
[accept-then-close],
|
|
[read-hello],
|
|
[send-plain-hello],
|
|
[send-long-hello],
|
|
[send-echo-hello],
|
|
[send-short-hello],
|
|
[send-invalid-version-hello]],
|
|
[AT_SETUP([$1 vconn - m4_bpatsubst(testname, [-], [ ])])
|
|
m4_if([$1], [ssl], [
|
|
AT_SKIP_IF([test "$HAVE_OPENSSL" = no])
|
|
AT_CHECK([cp $abs_top_builddir/tests/testpki*.pem .])])
|
|
AT_CHECK([ovstest test-vconn testname $1], [0], [], [ignore])
|
|
AT_CLEANUP])])
|
|
|
|
TEST_VCONN_CLASS([unix])
|
|
TEST_VCONN_CLASS([tcp])
|
|
TEST_VCONN_CLASS([ssl])
|