summaryrefslogtreecommitdiff
path: root/tests/vconn.at
blob: 4e91ed8505d5a16374702538f3aeec84fba0053f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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, [-], [ ])])
     OVS_RUNDIR=`pwd`; export OVS_RUNDIR
      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])