]> git.proxmox.com Git - mirror_ovs.git/blame - tests/testsuite.at
Introduce ofpacts, an abstraction of OpenFlow actions.
[mirror_ovs.git] / tests / testsuite.at
CommitLineData
1b233b95
BP
1AT_INIT
2
e0edde6f 3AT_COPYRIGHT([Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc.
1b233b95
BP
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at:
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.])
16
17AT_TESTED([ovs-vswitchd])
3b135da3 18AT_TESTED([ovs-vsctl])
f85f8ebb 19AT_TESTED([perl])
1b233b95 20
f17e0c25
BP
21m4_divert_push([PREPARE_TESTS])
22[
23ovs_wait () {
24 # First try a quick sleep, so that the test completes very quickly
25 # in the normal case. POSIX doesn't require fractional times to
26 # work, so this might not work.
27 sleep 0.1
28 ovs_wait_cond && exit 0
29 # Then wait up to 10 seconds.
30 for d in 0 1 2 3 4 5 6 7 8 9; do
31 sleep 1
32 ovs_wait_cond && exit 0
33 done
34 exit 1
35}
36]
37m4_divert_pop([PREPARE_TESTS])
38
f5961335 39m4_define([OVS_WAIT],
b12e3c41 40 [AT_CHECK(
f17e0c25
BP
41 [ovs_wait_cond () { $1
42}
43ovs_wait], [0], [ignore], [ignore], [$2])])
44m4_define([OVS_WAIT_UNTIL], [OVS_WAIT([$1], [$2])])
45m4_define([OVS_WAIT_WHILE],
46 [OVS_WAIT([if $1; then return 1; else return 0; fi], [$2])])
b12e3c41 47
24c8ae53 48m4_include([tests/ovsdb-macros.at])
0fbc9f11 49m4_include([tests/ofproto-macros.at])
24c8ae53 50
742468d9 51m4_include([tests/lacp.at])
1b233b95 52m4_include([tests/library.at])
95974447 53m4_include([tests/heap.at])
daff3353 54m4_include([tests/bundle.at])
3223e977 55m4_include([tests/classifier.at])
05b3c97b 56m4_include([tests/check-structs.at])
ff8decf1 57m4_include([tests/daemon.at])
99155935 58m4_include([tests/daemon-py.at])
f25d0cf3 59m4_include([tests/ofp-actions.at])
fec00620 60m4_include([tests/ofp-print.at])
2e0525bc 61m4_include([tests/ofp-errors.at])
0e581146 62m4_include([tests/ovs-ofctl.at])
3bffc610 63m4_include([tests/odp.at])
53ddd40a 64m4_include([tests/multipath.at])
f8064ac9 65m4_include([tests/autopath.at])
75a75043 66m4_include([tests/learn.at])
d27ce529 67m4_include([tests/vconn.at])
e1aff6f9 68m4_include([tests/file_name.at])
d918d9d1 69m4_include([tests/aes128.at])
0a68ffd2 70m4_include([tests/unixctl-py.at])
d918d9d1 71m4_include([tests/uuid.at])
f38b84ea 72m4_include([tests/json.at])
f2129093 73m4_include([tests/jsonrpc.at])
99155935 74m4_include([tests/jsonrpc-py.at])
e7cfedd6 75m4_include([tests/timeval.at])
ac718c9d 76m4_include([tests/lockfile.at])
3ed497fc 77m4_include([tests/reconnect.at])
a2cb9dfd 78m4_include([tests/ofproto.at])
29901626 79m4_include([tests/ofproto-dpif.at])
f85f8ebb 80m4_include([tests/ovsdb.at])
3b135da3 81m4_include([tests/ovs-vsctl.at])
b54bdbe9 82m4_include([tests/ovs-monitor-ipsec.at])
1b0fdca5 83m4_include([tests/ovs-xapi-sync.at])
48d014bf 84m4_include([tests/interface-reconfigure.at])
829a7d02 85m4_include([tests/stp.at])
8ed182d8 86m4_include([tests/vlog.at])