Changeset d9162ec for doc/proposals


Ignore:
Timestamp:
Dec 20, 2024, 1:56:12 PM (4 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
584612d
Parents:
b05d79d
Message:

Fix test-classification commands to detect more strict-capable tests. Remove such tests from the lax list.

Nothing about how to use the document is different, just what to paste.

Also, add back tests that give warnings only on release mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/proposals/nowarn.md

    rb05d79d rd9162ec  
    5252   2. autogen, configure, make (as before)
    53533. Rerun all the tests, expecting many failures.  Each failure represents a test that cannot handle strict wflags.
    54    1. `./tests/test.py --all -j12 2>&1 | tee test-status.txt`
    55    2. `grep 'PASSED  ' test-status.txt | sed -E 's/\s+(\.\.\.)?([^ ]+).*$/\2/g' > test-passes.txt`
    56    3. `grep 'FAILED with' test-status.txt | sed -E 's/\s+(\.\.\.)?([^ ]+).*$/\2/g' > test-fails.txt`
     54   1. `./tests/test.py --all ... 2>&1 | tee test-status.txt`
     55   2. `grep 'PASSED  ' test-status.txt | sed -E 's/\s+([^ ]+).*$/\1/g' > test-passes.txt`
     56   3. `grep 'FAILED with' test-status.txt | sed -E 's/\s+([^ ]+).*$/\1/g' > test-fails.txt`
    57574. Trim the WFLGAS_OPT_LAX list, reconciling with the pass/fail status just obtained.
    58    1. Copy-paste just the WFLAGS list items into `wflags-lax.txt`.  Keeping leading pounds and trailing backslashes is optional.
     58   1. Copy-paste just the WFLGAS_OPT_LAX items into `wflags-lax.txt`.  Keeping leading pounds and trailing backslashes is optional.
    5959   2. Print a list of tests found in `wflags-lax.txt` and also in `test-passes.txt`.  These tests were originally on WFLGAS_OPT_LAX, but can now pass without being on it.
    60       - `sed -E 's/#|( *\\)//g' wflags-lax.txt | xargs -n 1 -I _ bash -c 'a=_;echo ${a:${#a}<32?0:-32}' | xargs -n 1 -I _ echo "grep -E '^_$' test-passes.txt" | sh`
     60      - `sed -E 's/^([a-zA-Z])/(^|\\\\s|#)\1/g;s/\.\.\.//g;s/$/($|\\\\s|\\\\\\\\)/g' test-passes.txt | xargs -n 1 -I % echo "grep -E '%' wflags-lax.txt" | sh | sort`
    6161   3. Note that in the running array-basic example, the resulting list was:
     62      - array-collections/array-sbscr-types (*)
    6263      - ctrl-flow/loopctrl
    6364      - userLiterals
     
    7071   5. autogen, configure, make (as before)
    71725. Ensure that all tests pass, now under the reduced WFLGAS_OPT_LAX list.  Be deliberate about release mode and alternate architectures; i.e. that you aren't claiming to have fixed a test that always worked in x64-debug, but failed on a different configuration.  (Note that the overnight build will still catch that.)
     73
     74(*) This test was found later, upon fixing a problem in these instructions, so the original commit does not show it as fixed, like it does for the others.
Note: See TracChangeset for help on using the changeset viewer.