diff --git a/samples/tests/outputs/tap_test.sh.err.expected b/samples/tests/outputs/tap_test.sh.err.expected new file mode 100644 index 0000000..56f3268 --- /dev/null +++ b/samples/tests/outputs/tap_test.sh.err.expected @@ -0,0 +1,61 @@ +TAP version 13 +1..2 +# Criterion v2.1.0 + +# Running 2 tests from misc +ok - misc::passing (0.00s) +not ok - misc::failing (0.00s) + simple.c:4: Assertion failed: The expression 0 is false. +TAP version 13 +1..3 +# Criterion v2.1.0 + +# Running 3 tests from simple +not ok - simple::wrong_signal (0.00s) +not ok - simple::uncaught unexpected signal after signal.c:16 +ok - simple::caught (0.00s) +TAP version 13 +1..6 +# Criterion v2.1.0 + +# Running 6 tests from asserts +ok - asserts::string (0.00s) +not ok - asserts::old_school (0.00s) + asserts.c:18: Assertion failed: The conditions for this assertion were not met. + asserts.c:17: Assertion failed: You can fail an assertion with a message from anywhere +ok - asserts::native (0.00s) +ok - asserts::float (0.00s) +not ok - asserts::base (0.00s) + asserts.c:12: Assertion failed: This assert runs + asserts.c:11: Assertion failed: assert is fatal, expect isn't +ok - asserts::array (0.00s) +TAP version 13 +1..3 +# Criterion v2.1.0 + +# Running 1 tests from suite2 +ok - suite2::test (0.00s) + +# Running 1 tests from suite1 +ok - suite1::test (0.00s) + +# Running 1 tests from disabled +ok - disabled::test # SKIP suite is disabled +TAP version 13 +1..1 +# Criterion v2.1.0 + +# Running 1 tests from sample +not ok - sample::long_msg (0.00s) + long-messages.c:4: Assertion failed: This is + A long message + Spawning multiple lines. + Formatting is respected. +TAP version 13 +1..2 +# Criterion v2.1.0 + +# Running 2 tests from misc +ok - misc::skipped This one is skipped # SKIP test is disabled +not ok - misc::failing Just a failing test (0.00s) + description.c:4: Assertion failed: The expression 0 is false. diff --git a/samples/tests/outputs/tap_test.sh.out.expected b/samples/tests/outputs/tap_test.sh.out.expected new file mode 100644 index 0000000..e69de29 diff --git a/samples/tests/tap_test.sh b/samples/tests/tap_test.sh index 5e81fbf..9faca2d 100755 --- a/samples/tests/tap_test.sh +++ b/samples/tests/tap_test.sh @@ -3,5 +3,5 @@ ./signal.c.bin --tap --always-succeed ./asserts.c.bin --tap --always-succeed ./more-suites.c.bin --tap --always-succeed -./long-messages.c.bin --tap --always-succeed +./tests/long-messages.c.bin --tap --always-succeed ./description.c.bin --tap --always-succeed