Commit graph

3 commits

Author SHA1 Message Date
Ashod Nakashian
6de46d746e wsd: test: better run_unit.sh
Unfotunately, if our custom test driver run_unit.sh
fails, the report isn't generated at all.

So, instead, we have to go back to parsing the trs
file to detect success and failure.

We now make fast-fail an option instead.

Also fixes a typo in run_unit_standalone.sh.

Change-Id: I337c2a3edceda01df5f9c13c83eb176930b07e34
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 09:20:32 +02:00
Ashod Nakashian
4407ac9136 wsd: test: improved single-test runner
The test now runs as many times as requested
and doesn't stop on first failure. Instead,
it reports the number of passing vs failing
runs.

Also simplifies the detection of the test
result by using the exit code instead
of grepping the output file.

Change-Id: Ie458b2963411632d566cd87d2dfb9137044d2b4b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 08:58:39 +02:00
Miklos Vajna
fb5aab4693 scripts: add a simple script to invoke a single unit test
And also allow automatic re-trying to decide if this is a reproducible
failure or an unstable test.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I254d83cc1acc6b80ec3978e26e5fd64e676ff2a9
2023-09-22 16:01:52 +02:00