diff options
author | Ben Pfaff <blp@nicira.com> | 2010-08-25 10:26:40 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-08-25 14:55:48 -0700 |
commit | 991559357f6a03c3a5b70c053c8c2554aa8d5ee4 (patch) | |
tree | 8731002433c65ea41dbe94648c0e39737f666469 /tests/reconnect.at | |
parent | d1b680c61626595b2777f4bf25997a9178acb60c (diff) | |
download | openvswitch-991559357f6a03c3a5b70c053c8c2554aa8d5ee4.tar.gz |
Implement initial Python bindings for Open vSwitch database.
These initial bindings pass a few hundred of the corresponding tests
for C implementations of various bits of the Open vSwitch library API.
The poorest part of them is actually the Python IDL interface in
ovs.db.idl, which has not received enough attention yet. It appears
to work, but it doesn't yet support writes (transactions) and it is
difficult to use. I hope to improve it as it becomes clear what
semantics Python applications actually want from an IDL.
Diffstat (limited to 'tests/reconnect.at')
-rw-r--r-- | tests/reconnect.at | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/reconnect.at b/tests/reconnect.at index d35e7bff1..559836420 100644 --- a/tests/reconnect.at +++ b/tests/reconnect.at @@ -2,13 +2,25 @@ AT_BANNER([reconnect library]) m4_define([__RECONNECT_CHECK], [AT_SETUP([$1]) + $2 AT_KEYWORDS([reconnect]) - AT_DATA([input], [$2]) - AT_CHECK([$3], [0], [$4]) + AT_DATA([input], [$3]) + AT_CHECK([$4], [0], [$5]) AT_CLEANUP]) m4_define([RECONNECT_CHECK], - [__RECONNECT_CHECK([$1], [$2], [test-reconnect < input], [$3])]) + [__RECONNECT_CHECK( + [$1 - C], + [], + [$2], + [test-reconnect < input], + [$3]) + __RECONNECT_CHECK( + [$1 - Python], + [AT_SKIP_IF([test $HAVE_PYTHON = no])], + [$2], + [$PYTHON $srcdir/test-reconnect.py < input], + [$3])]) ###################################################################### RECONNECT_CHECK([nothing happens if not enabled], |