diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2019-06-13 15:20:20 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2019-06-27 11:48:17 +0100 |
commit | 88e1d03d46ab18651a87633181d46f92887b70ee (patch) | |
tree | 1e4dec9bc62df7da506019ef84c0c91690ddbbb7 /test/aarch64 | |
parent | 4ba4913f064fc5a1182f74b5e8bbd455403fbbaf (diff) | |
download | vixl-88e1d03d46ab18651a87633181d46f92887b70ee.tar.gz |
Report skipped tests in the results.
- Keep track of the tests which are skipped because they're known to fail.
- Moved multithreading code in a separate module so it can be re-used.
- Keep track of the tests which are skipped because the CPU is missing features.
- Added --verbose mode
Change-Id: I8832a1ac10738461eb5f4740e8bf060f13866132
Diffstat (limited to 'test/aarch64')
-rw-r--r-- | test/aarch64/test-assembler-aarch64.h | 10 | ||||
-rw-r--r-- | test/aarch64/test-simulator-aarch64.cc | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/test/aarch64/test-assembler-aarch64.h b/test/aarch64/test-assembler-aarch64.h index b45c7ae8..cc4160b4 100644 --- a/test/aarch64/test-assembler-aarch64.h +++ b/test/aarch64/test-assembler-aarch64.h @@ -302,10 +302,12 @@ inline bool CanRun(const CPUFeatures& required, bool* queried_can_run) { if (!*queried_can_run) { *queried_can_run = true; CPUFeatures missing = required.Without(cpu); - std::cout << "Warning: This test cannot execute its generated code on this " - "CPU.\n"; - std::cout << " Required: { " << required << " }\n"; - std::cout << " Missing: { " << missing << " }\n"; + // Note: This message needs to match REGEXP_MISSING_FEATURES from + // tools/threaded_test.py. + std::cout << "SKIPPED: Missing features: { " << missing << " }\n"; + std::cout << "This test requires the following features to run its " + "generated code on this CPU: " + << required << "\n"; } return false; } diff --git a/test/aarch64/test-simulator-aarch64.cc b/test/aarch64/test-simulator-aarch64.cc index b145bb9a..257326f1 100644 --- a/test/aarch64/test-simulator-aarch64.cc +++ b/test/aarch64/test-simulator-aarch64.cc @@ -142,8 +142,10 @@ namespace aarch64 { *skipped = false; \ } else { \ std::stringstream os; \ - os << "Warning: skipping test due to missing CPU features.\n"; \ - os << " Missing: {" << requirements.Without(this_machine) << "}\n"; \ + /* Note: This message needs to match REGEXP_MISSING_FEATURES from */ \ + /* tools/threaded_test.py. */ \ + os << "SKIPPED: Missing features: { "; \ + os << requirements.Without(this_machine) << " }\n"; \ printf("%s", os.str().c_str()); \ *skipped = true; \ } \ |