|
1 | | -// This test is intended to ensure that we have no trackers marked as |
2 | | -// UNSUPPORTED without a tracker information added to a test. |
| 1 | +// This test is intended to ensure that we have no tests marked as |
| 2 | +// UNSUPPORTED without an information added to a test. |
3 | 3 | // For more info see: sycl/test-e2e/README.md |
4 | 4 | // |
5 | 5 | // The format we check is: |
6 | 6 | // UNSUPPORTED: lit,features |
7 | | -// UNSUPPORTED-TRACKER: [GitHub issue URL|Internal tracker ID|INTENDED - reason] |
| 7 | +// UNSUPPORTED-TRACKER: [GitHub issue URL|Internal tracker ID] |
| 8 | +// *OR* |
| 9 | +// UNSUPPORTED: lit,features |
| 10 | +// UNSUPPORTED-INTENDED: explanation why the test isn't intended to be run with this feature |
8 | 11 | // |
9 | 12 | // GitHub issue URL format: |
10 | 13 | // https://github.com/owner/repo/issues/12345 |
11 | 14 | // |
12 | 15 | // Internal tracker ID format: |
13 | 16 | // PROJECT-123456 |
14 | 17 | // |
15 | | -// Reason format: |
16 | | -// Just a free form text |
17 | | -// |
18 | 18 | // REQUIRES: linux |
19 | 19 | // |
20 | 20 | // Explanation of the command: |
21 | 21 | // - search for all "UNSUPPORTED" occurrences, display line with match and the next one |
22 | 22 | // -I, --include to drop binary files and other unrelated files |
23 | 23 | // - in the result, search for "UNSUPPORTED" again, but invert the result - this |
24 | 24 | // allows us to get the line *after* UNSUPPORTED |
25 | | -// - in those lines, check that UNSUPPORTED-TRACKER is present and correct. Once |
26 | | -// again, invert the search to get all "bad" lines and save the test names in |
27 | | -// the temp file |
| 25 | +// - in those lines, check that UNSUPPORTED-TRACKER or UNSUPPORTED-INTENDED is |
| 26 | +// present and correct. Once again, invert the search to get all "bad" lines |
| 27 | +// and save the test names in the temp file |
28 | 28 | // - make a final count of how many ill-formatted directives there are and |
29 | 29 | // verify that against the reference |
30 | 30 | // - ...and check if the list of improperly UNSUPPORTED tests needs to be updated. |
31 | 31 | // |
32 | 32 | // RUN: grep -rI "UNSUPPORTED:" %S/../test-e2e \ |
33 | 33 | // RUN: -A 1 --include=*.c --include=*.cpp --no-group-separator | \ |
34 | 34 | // RUN: grep -v "UNSUPPORTED:" | \ |
35 | | -// RUN: grep -Pv "UNSUPPORTED-TRACKER:\s+(?:https://github.com/[\w\d-]+/[\w\d-]+/issues/[\d]+)|(?:[\w]+-[\d]+)|(?:INTENDED\s*-\s*.+)" > %t | \ |
36 | | -// RUN: cat %t | wc -l | FileCheck %s --check-prefix NUMBER-OF-UNSUPPORTED-WITHOUT-TRACKER |
| 35 | +// RUN: grep -Pv "UNSUPPORTED-TRACKER:\s+(?:https://github.com/[\w\d-]+/[\w\d-]+/issues/[\d]+)|(?:[\w]+-[\d]+)|(?:UNSUPPORTED-INTENDED:\s*.+)" > %t | \ |
| 36 | +// RUN: cat %t | wc -l | FileCheck %s --check-prefix NUMBER-OF-UNSUPPORTED-WITHOUT-INFO |
37 | 37 | // RUN: cat %t | sed 's/\.cpp.*/.cpp/' | sort | FileCheck %s |
38 | 38 | // |
39 | 39 | // The number below is a number of tests which are *improperly* UNSUPPORTED, i.e. |
|
54 | 54 | // tests to match the required format and in that case you should just update |
55 | 55 | // (i.e. reduce) the number and the list below. |
56 | 56 | // |
57 | | -// NUMBER-OF-UNSUPPORTED-WITHOUT-TRACKER: 484 |
| 57 | +// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 484 |
58 | 58 | // |
59 | 59 | // List of improperly UNSUPPORTED tests. |
60 | 60 | // Remove the CHECK once the test has been propely UNSUPPORTED. |
|
0 commit comments