]> git.proxmox.com Git - ovs.git/blame - tests/ovsdb.at
datapath: Set datapath device MTU to minimum of MTU of ports.
[ovs.git] / tests / ovsdb.at
CommitLineData
21ff1aee
BP
1# OVSDB_CHECK_POSITIVE(TITLE, TEST-OVSDB-ARGS, OUTPUT, [KEYWORDS], [PREREQ])
2#
3# Runs "test-ovsdb TEST-OVSDB-ARGS" and checks that it exits with
4# status 0 and prints OUTPUT on stdout.
5#
6# TITLE is provided to AT_SETUP and KEYWORDS to AT_KEYWORDS. If
7# PREREQ is specified then the test is skipped if the Autoconf version
8# is less than PREREQ.
f85f8ebb
BP
9m4_define([OVSDB_CHECK_POSITIVE],
10 [AT_SETUP([$1])
11 m4_if([$5], [], [],
12 [AT_XFAIL_IF([m4_version_prereq([$5], [false], [true])])])
13 AT_KEYWORDS([ovsdb positive $4])
14 OVS_CHECK_LCOV([test-ovsdb $2], [0], [$3
15], [])
16 AT_CLEANUP])
17
21ff1aee
BP
18# OVSDB_CHECK_NEGATIVE(TITLE, TEST-OVSDB-ARGS, OUTPUT, [KEYWORDS], [PREREQ])
19#
20# Runs "test-ovsdb TEST-OVSDB-ARGS" and checks that it exits with
21# status 1 and that its output on stdout contains substring OUTPUT.
22# TITLE is provided to AT_SETUP and KEYWORDS to AT_KEYWORDS.
f85f8ebb
BP
23m4_define([OVSDB_CHECK_NEGATIVE],
24 [AT_SETUP([$1])
25 AT_KEYWORDS([ovsdb negative $4])
26 OVS_CHECK_LCOV([test-ovsdb $2], [1], [], [stderr])
27 m4_assert(m4_len([$3]))
28 AT_CHECK(
29 [if grep -F -e "AS_ESCAPE([$3])" stderr
30 then
31 :
32 else
33 exit 99
34 fi],
35 [0], [ignore], [ignore])
36 AT_CLEANUP])
37
41709ccc 38m4_include([tests/ovsdb-log.at])
f85f8ebb
BP
39m4_include([tests/ovsdb-types.at])
40m4_include([tests/ovsdb-data.at])
41m4_include([tests/ovsdb-column.at])
42m4_include([tests/ovsdb-table.at])
43m4_include([tests/ovsdb-row.at])
44m4_include([tests/ovsdb-condition.at])
e9f8f936 45m4_include([tests/ovsdb-mutation.at])
f85f8ebb
BP
46m4_include([tests/ovsdb-query.at])
47m4_include([tests/ovsdb-transaction.at])
48m4_include([tests/ovsdb-execution.at])
49m4_include([tests/ovsdb-trigger.at])
21ff1aee
BP
50m4_include([tests/ovsdb-file.at])
51m4_include([tests/ovsdb-server.at])
a8425c53 52m4_include([tests/ovsdb-monitor.at])
c3bb4bd7 53m4_include([tests/ovsdb-idl.at])