X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovsdb-file.at;h=579fcb609faf958e99c4c1d31484fc19296101a7;hb=5562d6f55e762ea6783a9f6032e85ccb2824773f;hp=c1f0bfb1e47ad5adb0ed5da2992b6360425d8845;hpb=21ff1aee1b186405c2471bf83a3e8a016a1d2256;p=openvswitch diff --git a/tests/ovsdb-file.at b/tests/ovsdb-file.at index c1f0bfb1..579fcb60 100644 --- a/tests/ovsdb-file.at +++ b/tests/ovsdb-file.at @@ -28,3 +28,21 @@ cat stdout >> output AT_CLEANUP]) EXECUTION_EXAMPLES + +AT_SETUP([transaction comments]) +AT_KEYWORDS([ovsdb file positive]) +AT_DATA([schema], [ORDINAL_SCHEMA +]) +touch .db.~lock~ +OVS_CHECK_LCOV([ovsdb-tool create db schema], [0], [], [ignore]) +OVS_CHECK_LCOV([[ovsdb-tool transact db ' + [{"op": "insert", + "table": "ordinals", + "row": {"name": "five", "number": 5}}, + {"op": "comment", + "comment": "add row for 5"}]']], [0], [stdout], [ignore]) +AT_CHECK([perl $srcdir/uuidfilt.pl stdout], [0], + [[[{"uuid":["uuid","<0>"]},{}] +]]) +AT_CHECK([grep -q "add row for 5" db]) +AT_CLEANUP