summaryrefslogtreecommitdiffstats
path: root/test/units/test-control.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: Rename testsuite-XX units to match test nameDaan De Meyer2024-05-141-1/+1
| | | | | | | Having these named differently than the test itself mostly creates unecessary confusion and makes writing logic against the tests harder so let's rename the testsuite-xx units and scripts to just use the test name itself.
* test: support TEST_MATCH_* stuff in TEST-23-UNIT-FILE as wellFrantisek Sumsal2024-02-201-0/+5
| | | | | | | TEST-23 uses run_subtests_with_signals() which I forgot about when introducing the change. Follow-up for 0efa27bd4b.
* test: measure subtest runtimeFrantisek Sumsal2023-07-041-2/+4
|
* test: show the subtest name together with the failing codeFrantisek Sumsal2023-06-241-2/+12
| | | | To make debugging slightly easier.
* test: exit on first failing subtestFrantisek Sumsal2023-06-141-14/+3
| | | | | | | Let's take a step back and revert back to the original behavior where we exit on a first failing subtest. The current behavior makes fishing out the failing test details quite unpleasant, and in certain situations the journal may even be rotated away so we end up with no actionable logs.
* test: allow running only specified subtests/testcasesFrantisek Sumsal2023-06-051-0/+10
| | | | | | | | Useful when debugging, e.g.: make -C test/TEST-74-AUX-UTILS clean setup run TEST_MATCH_SUBTEST=run Resolves: #27914
* test: prefix "internal" stuff with an underscoreFrantisek Sumsal2023-05-221-41/+41
| | | | | | Since bash has no namespaces, let's do the second best thing and prefix all "internal" stuff with an underscore, to minimize the chance of a name conflict in the future.
* test: abstract the test case logic into a shared functionFrantisek Sumsal2023-05-221-0/+24
|
* test: abstract the common test parts into a utility scriptFrantisek Sumsal2023-05-101-0/+126
Also, instead of bailing out on the first failed subtest, always run all subtests and print a summary at the end (with an appropriate exit code).