]> git.proxmox.com Git - mirror_ovs.git/blame - tests/ovsdb-macros.at
lib/ofpbuf: Compact
[mirror_ovs.git] / tests / ovsdb-macros.at
CommitLineData
24c8ae53
BP
1dnl OVSDB_INIT([$1])
2dnl
3dnl Creates an empty database named $1.
4m4_define([OVSDB_INIT],
2c487bc8
PR
5 [OVS_RUNDIR=`pwd`; export OVS_RUNDIR
6 AT_CHECK(
29381db0 7 [ovsdb-tool create $1 $abs_top_srcdir/vswitchd/vswitch.ovsschema],
24c8ae53 8 [0], [stdout], [ignore])
7c126fbb 9 AT_CHECK(
24c8ae53 10 [[ovsdb-tool transact $1 \
78876719
BP
11 '["Open_vSwitch",
12 {"op": "insert",
24c8ae53
BP
13 "table": "Open_vSwitch",
14 "row": {}}]']],
15 [0], [ignore], [ignore])])