2014-10-17 21:15:59 +02:00
|
|
|
|
TESTING "Test support and helpers" ./test-suite --group=common
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEST "Test support functions" TestHelper_test <<END
|
|
|
|
|
|
out: [a-z0-9]{80}$
|
2016-01-10 12:25:45 +01:00
|
|
|
|
out-lit: Displaying types and sizes....
|
|
|
|
|
|
out-lit: sizeof( just a char ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Murpf ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<test::Murpf> ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<char [2]> ) = 2
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<char [3]> ) = 3
|
|
|
|
|
|
out-lit: sizeof( Universe ) = 42
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<test::Murpf> ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<test::Murpf> ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<test::Murpf> ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<test::Murpf> ) = 1
|
|
|
|
|
|
out-lit: sizeof( test::Wrmrmpft<test::Murpf> ) = 1
|
2016-01-28 22:30:24 +01:00
|
|
|
|
return: 0
|
2014-10-17 21:15:59 +02:00
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-11 17:44:19 +01:00
|
|
|
|
PLANNED "Temporary working directory" TempDir_test <<END
|
|
|
|
|
|
return: 0
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-14 19:22:18 +02:00
|
|
|
|
TEST "Helper for event registration and verification" EventLog_test <<END
|
2015-12-13 05:03:36 +01:00
|
|
|
|
err-lit: __Log_condition_violated__
|
|
|
|
|
|
err-lit: FAILED to match("γ")
|
2023-08-14 19:22:18 +02:00
|
|
|
|
err: ..after HEAD EventLog_test.+
|
2015-12-13 05:03:36 +01:00
|
|
|
|
err-lit: __Log_condition_violated__
|
|
|
|
|
|
err-lit: FAILED to match("α")
|
|
|
|
|
|
err-lit: ..after match("β") @ Rec(event|{β})
|
2023-08-14 19:22:18 +02:00
|
|
|
|
err: ..after HEAD EventLog_test.+
|
2015-12-13 05:03:36 +01:00
|
|
|
|
err-lit: __Log_condition_violated__
|
|
|
|
|
|
err-lit: FAILED to match("ham")
|
2015-12-15 23:44:34 +01:00
|
|
|
|
err-lit: ..before match("beans") @ Rec(EventLogHeader| this = baked beans )
|
2015-12-13 05:03:36 +01:00
|
|
|
|
err-lit: ..before match("spam") @ Rec(event|{spam})
|
|
|
|
|
|
err-lit: ..after HEAD baked beans
|
|
|
|
|
|
err-lit: __Log_condition_violated__
|
2018-09-19 02:29:02 +02:00
|
|
|
|
err-lit: FAILED to match("spam")
|
|
|
|
|
|
err-lit: ..before match("spam") @ Rec(event|{spam})
|
|
|
|
|
|
err-lit: ..before match("ham") @ Rec(event|{ham})
|
|
|
|
|
|
err-lit: ..before match("beans") @ Rec(EventLogHeader| this = baked beans )
|
|
|
|
|
|
err-lit: ..after HEAD baked beans
|
|
|
|
|
|
err-lit: __Log_condition_violated__
|
2015-12-13 05:03:36 +01:00
|
|
|
|
err-lit: FOUND at least match("ham") @ Rec(event|{ham})
|
2015-12-15 23:44:34 +01:00
|
|
|
|
err-lit: ..after match("eggs") @ Rec(EventLogHeader| this = eggs )
|
2015-12-13 05:03:36 +01:00
|
|
|
|
err-lit: ..before match("spam") @ Rec(event|{spam})
|
|
|
|
|
|
err-lit: ..after match("spam") @ Rec(event|{spam})
|
|
|
|
|
|
err-lit: ..after HEAD eggs
|
|
|
|
|
|
err-lit: __Log_condition_violated__
|
|
|
|
|
|
err-lit: FAILED to match("some")
|
|
|
|
|
|
err-lit: ..before match-event("fun") @ Rec(event| ID = no |{fun})
|
|
|
|
|
|
err-lit: ..after HEAD event trace
|
|
|
|
|
|
err-lit: __Log_condition_violated__
|
|
|
|
|
|
err-lit: FAILED to match-event("stuff")
|
|
|
|
|
|
err-lit: ..after HEAD theHog
|
|
|
|
|
|
err-lit: __Log_condition_violated__
|
|
|
|
|
|
err-lit: FAILED to match-event("danger")
|
|
|
|
|
|
err-lit: ..after HEAD theHog
|
2015-11-27 19:24:00 +01:00
|
|
|
|
return: 0
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-22 03:31:59 +01:00
|
|
|
|
TEST "Testsuite option handling" TestOption_test <<END
|
2014-10-17 21:15:59 +02:00
|
|
|
|
out: Testing invocation with cmdline: ...
|
|
|
|
|
|
out: --> Testgroup=ALL
|
|
|
|
|
|
out: --> Test-ID =--missing--
|
|
|
|
|
|
out: --> remaining=
|
|
|
|
|
|
out: Testing invocation with cmdline: --help...
|
|
|
|
|
|
out: --> Testgroup=ALL
|
|
|
|
|
|
out: --> Test-ID =--missing--
|
|
|
|
|
|
out: --> remaining=
|
|
|
|
|
|
out: Testing invocation with cmdline: --group TestGroupID...
|
|
|
|
|
|
out: --> Testgroup=TestGroupID
|
|
|
|
|
|
out: --> Test-ID =--missing--
|
|
|
|
|
|
out: --> remaining=
|
|
|
|
|
|
out: Testing invocation with cmdline: SingleTestID...
|
|
|
|
|
|
out: --> Testgroup=ALL
|
|
|
|
|
|
out: --> Test-ID =SingleTestID
|
|
|
|
|
|
out: --> remaining=SingleTestID
|
|
|
|
|
|
out: Testing invocation with cmdline: SingleTestID --group TestGroupID...
|
|
|
|
|
|
out: --> Testgroup=TestGroupID
|
|
|
|
|
|
out: --> Test-ID =SingleTestID
|
|
|
|
|
|
out: --> remaining=SingleTestID
|
|
|
|
|
|
out: Testing invocation with cmdline: --group TestGroupID SingleTestID ...
|
|
|
|
|
|
out: --> Testgroup=TestGroupID
|
|
|
|
|
|
out: --> Test-ID =SingleTestID
|
|
|
|
|
|
out: --> remaining=SingleTestID
|
|
|
|
|
|
out: Testing invocation with cmdline: --group TestGroupID SingleTestID spam eggs...
|
|
|
|
|
|
out: --> Testgroup=TestGroupID
|
|
|
|
|
|
out: --> Test-ID =SingleTestID
|
|
|
|
|
|
out: --> remaining=SingleTestID spam eggs
|
|
|
|
|
|
out: Testing invocation with cmdline: SingleTestID spam --group TestGroupID --eggs...
|
|
|
|
|
|
out: --> Testgroup=TestGroupID
|
|
|
|
|
|
out: --> Test-ID =SingleTestID
|
|
|
|
|
|
out: --> remaining=SingleTestID spam --eggs
|
2016-01-28 22:30:24 +01:00
|
|
|
|
return: 0
|
2014-10-17 21:15:59 +02:00
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
|
|
|