Skip to content

Commit

Permalink
selftests: document how to run subtests from Windows' cmd.exe
Browse files Browse the repository at this point in the history
It deoesn't like single quotes, which must be replaced with doubled-up
double quotes.

Pick-to: 6.2 6.5 6.6
Change-Id: I8e5f8047e72e4433926a9f4f2044407a4d823682
Reviewed-by: Edward Welbourne <[email protected]>
Reviewed-by: Mårten Nordheim <[email protected]>
  • Loading branch information
mitchcurtis committed Oct 17, 2023
1 parent 53a36f6 commit ec5383e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/auto/testlib/selftests/README
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ You can choose a specific subtest by passing the -c option:
-c "Given: The QTestLog::Plain logger" \
-c 'And given: The "skip" subtest'

Note that on Windows, when using cmd.exe, you cannot use single
quotes, so the command above becomes:

❯ ./tst_selftests "Scenario: Test output of the loggers is as expected" \
-c "Given: The QTestLog::Plain logger" \
-c "And given: The ""skip"" subtest"

It's possible to pass only the first -c options, to e.g. run all
tests with the Plain logger, but it's unfortunately not possible
to pass only the last -c option, to run the 'skip' subtest with
Expand Down

0 comments on commit ec5383e

Please sign in to comment.