X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftestsuite.at;h=ceded7e1607e8f29bd927ef29ffe804f2be27c5f;hb=db12f2fc076e2d5bb5ae364e217ca2d84c8b0154;hp=9b47b8fbfc343cb2477c94e6d691d92dfcb6a902;hpb=f85f8ebbfac946c19b3c6eb0f4170f579d0a4d25;p=openvswitch diff --git a/tests/testsuite.at b/tests/testsuite.at index 9b47b8fb..ceded7e1 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -18,6 +18,20 @@ AT_TESTED([ovs-vswitchd]) AT_TESTED([ovs-vsctl]) AT_TESTED([perl]) +m4_define([OVS_WAIT_UNTIL], + [AT_CHECK( + [# First try a quick sleep, so that the test completes very quickly + # in the normal case. POSIX doesn't require fractional times to + # work, so this might not work. + sleep 0.1 + $1 + # Then wait up to 10 seconds. + for d in 0 1 2 3 4 5 6 7 8 9; do + sleep 1 + $1 + done + exit 1], [0], [ignore], [ignore])]) + m4_include([tests/lcov-pre.at]) m4_include([tests/library.at]) m4_include([tests/dir_name.at]) @@ -27,6 +41,7 @@ m4_include([tests/json.at]) m4_include([tests/jsonrpc.at]) m4_include([tests/timeval.at]) m4_include([tests/lockfile.at]) +m4_include([tests/reconnect.at]) m4_include([tests/ovsdb.at]) m4_include([tests/stp.at]) m4_include([tests/ovs-vsctl.at])