tests: Improve vconn tests.
[openvswitch] / tests / vconn.at
1 m4_define([TEST_VCONN_CLASS],
2   [AT_BANNER([vconn library -- $1 class])
3    m4_foreach(
4      [testname], 
5      [[refuse-connection], 
6       [accept-then-close],
7       [read-hello],
8       [send-plain-hello],
9       [send-long-hello],
10       [send-echo-hello],
11       [send-short-hello],
12       [send-invalid-version-hello]],
13      [AT_SETUP([$1 vconn - m4_bpatsubst(testname, [-], [ ])])
14       m4_if([$1], [ssl], [
15         AT_SKIP_IF([test "$HAVE_OPENSSL" = no])
16         AT_CHECK([cp $abs_top_srcdir/tests/testpki*.pem .])])
17       OVS_CHECK_LCOV([test-vconn testname $1], [0], [], [ignore])
18       AT_CLEANUP])])
19
20 TEST_VCONN_CLASS([unix])
21 TEST_VCONN_CLASS([tcp])
22 TEST_VCONN_CLASS([ssl])