From: Mathieu Desnoyers Date: Mon, 8 Apr 2013 12:36:44 +0000 (-0400) Subject: Add smalltrace succeed/fail test cases X-Git-Tag: v1.1.1~44 X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=b620ec4a9bee4f2df11d5108e73077804cfa3c85 Add smalltrace succeed/fail test cases Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/ctf-traces/fail/smalltrace/dummystream-fail b/tests/ctf-traces/fail/smalltrace/dummystream-fail new file mode 100644 index 00000000..fc7e07cb --- /dev/null +++ b/tests/ctf-traces/fail/smalltrace/dummystream-fail @@ -0,0 +1 @@ +ÁüÁ*d \ No newline at end of file diff --git a/tests/ctf-traces/fail/smalltrace/metadata b/tests/ctf-traces/fail/smalltrace/metadata new file mode 100644 index 00000000..86f8e0a3 --- /dev/null +++ b/tests/ctf-traces/fail/smalltrace/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 0; + minor = 1; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/ctf-traces/succeed/smalltrace/dummystream b/tests/ctf-traces/succeed/smalltrace/dummystream new file mode 100644 index 00000000..469cb9a3 Binary files /dev/null and b/tests/ctf-traces/succeed/smalltrace/dummystream differ diff --git a/tests/ctf-traces/succeed/smalltrace/metadata b/tests/ctf-traces/succeed/smalltrace/metadata new file mode 100644 index 00000000..86f8e0a3 --- /dev/null +++ b/tests/ctf-traces/succeed/smalltrace/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 0; + minor = 1; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +event { + name = string; + fields := struct { string str; }; +};