diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2023-10-16 17:17:17 +0800 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2023-10-17 12:26:07 +0800 |
commit | ec5383efc37e993f5dfa8e729ad9b6e38c3cfe5f (patch) | |
tree | 2c8e0638a6e17b8db20081abaae9d12289fa10e3 /tests/auto/testlib/selftests/README | |
parent | 53a36f6ce2bbe907c1f0d610820d37b830b135e5 (diff) |
selftests: document how to run subtests from Windows' cmd.exe
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 <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/README')
-rw-r--r-- | tests/auto/testlib/selftests/README | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/README b/tests/auto/testlib/selftests/README index 821bed45df..da6637d872 100644 --- a/tests/auto/testlib/selftests/README +++ b/tests/auto/testlib/selftests/README @@ -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 |