dnl
dnl Creates an empty database named $1.
m4_define([OVSDB_INIT],
- [OVS_CHECK_LCOV(
- [SCHEMA=$abs_top_builddir/vswitchd/vswitch-idl.ovsschema
- if test ! -e $SCHEMA; then
- SCHEMA=$abs_top_srcdir/vswitchd/vswitch-idl.ovsschema
- if test ! -e $SCHEMA; then
- echo 'Failed to find vswitch-idl.ovsschema'
- exit 1
- fi
- fi
- ovsdb-tool create $1 $SCHEMA],
+ [OVS_RUNDIR=`pwd`; export OVS_RUNDIR
+ AT_CHECK(
+ [ovsdb-tool create $1 $abs_top_srcdir/vswitchd/vswitch.ovsschema],
[0], [stdout], [ignore])
- OVS_CHECK_LCOV(
+ AT_CHECK(
[[ovsdb-tool transact $1 \
- '[{"op": "insert",
+ '["Open_vSwitch",
+ {"op": "insert",
"table": "Open_vSwitch",
"row": {}}]']],
[0], [ignore], [ignore])])