X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fuuid.at;h=da64dd4d68899567246547411c9f63dce30fcc33;hb=a4fdb0f3bdbfff1924afefd19239260ed429c193;hp=04b652a8d001f18c60bad24f2b31b909e0cc71c0;hpb=58fda1dab104041fc693032475ec4662c1a52849;p=sliver-openvswitch.git diff --git a/tests/uuid.at b/tests/uuid.at index 04b652a8d..da64dd4d6 100644 --- a/tests/uuid.at +++ b/tests/uuid.at @@ -12,32 +12,13 @@ m4_define([CHECK_UUID], exit 1 fi]) -# This test is a strict subset of the larger test down below, but it -# allows us to get test coverage data via OVS_CHECK_LCOV. -AT_SETUP([UUID generation]) -AT_KEYWORDS([UUID]) -OVS_CHECK_LCOV([test-uuid > uuid]) -AT_CHECK([ - uuid=`cat uuid` - CHECK_UUID]) -AT_CLEANUP - -# This test is a strict subset of the larger test down below, but it -# allows us to get test coverage data via OVS_CHECK_LCOV. -AT_SETUP([UUID parsing and serialization]) -AT_KEYWORDS([UUID]) -OVS_CHECK_LCOV([test-uuid f47ac10b-58cc-4372-a567-0e02b2c3d479], [0], - [f47ac10b-58cc-4372-a567-0e02b2c3d479 -]) -AT_CLEANUP - AT_SETUP([UUID generation, parsing, serialization]) AT_KEYWORDS([UUID]) AT_CHECK([ uuids= for i in m4_for([count], [1], [100], [1], [count ]); do # Generate random UUID and check that it is in the expected format. - uuid=`test-uuid` + uuid=`ovstest test-uuid` CHECK_UUID # Verify that $uuid does not duplicate any UUID generated so far. @@ -49,7 +30,7 @@ AT_CHECK([ uuids="$uuids $uuid" # Verify that test-uuid parses and re-serializes this UUID correctly. - serialized=`test-uuid $uuid` + serialized=`ovstest test-uuid $uuid` if test "$uuid" != "$serialized"; then echo "$uuid: test-uuid serialized this as $serialized" exit 1