summaryrefslogtreecommitdiffstats
path: root/test/TEST-02-UNITTESTS (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: re-enable TEST-02 on ppc64leFrantisek Sumsal2023-06-131-0/+0
|
* test: merge TEST-61-UNITTESTS-QEMU with TEST-02-UNITTESTSFrantisek Sumsal2023-06-131-4/+11
| | | | | | | | | | The test was originally introduced for Ubuntu CI, as it uses PREFER_NSPAWN=1, but it was subsequently disabled two years ago [0], so it was pretty much useless. Let's merge it into TEST-02 and tweak it a bit to run only certain tests under QEMU when $TEST_PREFER_NSPAWN is set. [0] b152adbfa9b708dade8559b9962241902bf2eb7c
* proc-cmdline: parse the whole /proc/cmdlineFrantisek Sumsal2023-06-131-0/+3
| | | | | | The kernel command line may contain newlines which kernel happily accepts, but we'd ignore everything past the first newline. Let's fix that by replacing read_one_line_file() with read_full_file().
* test: on openSUSE install the collection of unit test binaries in the target ↵Franck Bui2023-03-241-0/+7
| | | | only for TEST-02-UNITTESTS
* test: ignore missing coverage in TEST-02Frantisek Sumsal2022-04-071-0/+4
| | | | | | | Since c6552ad we now try to collect coverage even in situations where it's basically impossible (like in test-mount-util where the whole / is mounted as read-only). As dealing with this is not worth the trouble, let's ignore the missing coverage errors thrown by gcov in such cases.
* tests: add spdx headers to scripts and MakefilesZbigniew Jędrzejewski-Szmek2021-10-181-0/+1
|
* test: move custom result checks from TEST-02-UNITTESTS to test-functionsLuca Boccassi2021-06-211-54/+2
|
* test: do not fail TEST-02-UNITTESTS if they are all skippedLuca Boccassi2021-06-211-0/+4
| | | | | The return code is initialized to fail if /testok is not found, but that also covers the case where all tests are skipped.
* test: "detect" the test number automagicallyFrantisek Sumsal2021-04-261-1/+1
| | | | | | Specifying the test number manually is tedious and prone to errors (as recently proven). Since we have all the necessary data to work out the test number, let's do it automagically.
* test: move the logic to support /skipped into shared logicZbigniew Jędrzejewski-Szmek2021-04-231-2/+2
| | | | | | The logic to query test state was rather complex. I don't quite grok the point of ret=$((ret+1))… But afaics, the precise result was always ignored by the caller anyway.
* test: make the test entrypoint scripts shellcheck-compliantFrantisek Sumsal2021-04-201-27/+38
|
* test: switch TEST-02-CRYPTSETUP and TEST-24-UNITTESTSZbigniew Jędrzejewski-Szmek2020-09-243-0/+64
When tests are executed serially (the default), it seems better to launch the fairly generic test that runs the unittests early in the sequence. Right now the tests are ordered based on when they were written, but this doesn't make much sense.