19b7802db874133fdd5d8814f896da344fd20c11
[sliver-openvswitch.git] / tests / testsuite.at
1 AT_INIT
2
3 AT_COPYRIGHT([Copyright (c) 2009, 2010, 2011 Nicira Networks.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at:
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.])
16
17 AT_TESTED([ovs-vswitchd])
18 AT_TESTED([ovs-vsctl])
19 AT_TESTED([perl])
20
21 m4_define([OVS_WAIT],
22   [AT_CHECK(
23     [# First try a quick sleep, so that the test completes very quickly
24      # in the normal case.  POSIX doesn't require fractional times to
25      # work, so this might not work.
26      sleep 0.1
27      $1
28      # Then wait up to 10 seconds.
29      for d in 0 1 2 3 4 5 6 7 8 9; do
30        sleep 1
31        $1
32      done
33      exit 1], [0], [ignore], [ignore], [$2])])
34
35 m4_define([OVS_WAIT_UNTIL], [OVS_WAIT([if $1; then exit 0; fi], [$2])])
36 m4_define([OVS_WAIT_WHILE], [OVS_WAIT([if $1; then :; else exit 0; fi], [$2])])
37
38 m4_include([tests/ovsdb-macros.at])
39 m4_include([tests/ofproto-macros.at])
40
41 m4_include([tests/library.at])
42 m4_include([tests/bundle.at])
43 m4_include([tests/classifier.at])
44 m4_include([tests/check-structs.at])
45 m4_include([tests/daemon.at])
46 m4_include([tests/daemon-py.at])
47 m4_include([tests/ofp-print.at])
48 m4_include([tests/ovs-ofctl.at])
49 m4_include([tests/odp.at])
50 m4_include([tests/multipath.at])
51 m4_include([tests/autopath.at])
52 m4_include([tests/learn.at])
53 m4_include([tests/vconn.at])
54 m4_include([tests/file_name.at])
55 m4_include([tests/aes128.at])
56 m4_include([tests/uuid.at])
57 m4_include([tests/json.at])
58 m4_include([tests/jsonrpc.at])
59 m4_include([tests/jsonrpc-py.at])
60 m4_include([tests/timeval.at])
61 m4_include([tests/lockfile.at])
62 m4_include([tests/reconnect.at])
63 m4_include([tests/ofproto.at])
64 m4_include([tests/ofproto-dpif.at])
65 m4_include([tests/ovsdb.at])
66 m4_include([tests/ovs-vsctl.at])
67 m4_include([tests/ovs-monitor-ipsec.at])
68 m4_include([tests/interface-reconfigure.at])