Fossil SCM
Make test suite assurance levels generic (ie not just utf), document the new flags, and add to release checklist
Commit
e78c89e28f4ae8bb2f1c23b87a70dcf810bb8d4ae33a8cc5e26825d9ef8da300
Parent
7bda23362a63c21…
6 files changed
+1
+1
-1
+14
-14
+4
-4
+2
-2
+1
+1
| --- src/main.mk | ||
| +++ src/main.mk | ||
| @@ -638,10 +638,11 @@ | ||
| 638 | 638 | # -keep Keep the temporary workspace for debugging |
| 639 | 639 | # -prot Write a detailed log of the tests to the file ./prot |
| 640 | 640 | # -verbose Include even more details in the output |
| 641 | 641 | # -quiet Hide most output from the terminal |
| 642 | 642 | # -strict Treat known bugs as failures |
| 643 | +# -assurance smoke|ci|stress How thorough a run is | |
| 643 | 644 | # |
| 644 | 645 | # TESTFLAGS can also include names of specific test files to limit |
| 645 | 646 | # the run to just those test cases. |
| 646 | 647 | # |
| 647 | 648 | test: $(APPNAME) |
| 648 | 649 |
| --- src/main.mk | |
| +++ src/main.mk | |
| @@ -638,10 +638,11 @@ | |
| 638 | # -keep Keep the temporary workspace for debugging |
| 639 | # -prot Write a detailed log of the tests to the file ./prot |
| 640 | # -verbose Include even more details in the output |
| 641 | # -quiet Hide most output from the terminal |
| 642 | # -strict Treat known bugs as failures |
| 643 | # |
| 644 | # TESTFLAGS can also include names of specific test files to limit |
| 645 | # the run to just those test cases. |
| 646 | # |
| 647 | test: $(APPNAME) |
| 648 |
| --- src/main.mk | |
| +++ src/main.mk | |
| @@ -638,10 +638,11 @@ | |
| 638 | # -keep Keep the temporary workspace for debugging |
| 639 | # -prot Write a detailed log of the tests to the file ./prot |
| 640 | # -verbose Include even more details in the output |
| 641 | # -quiet Hide most output from the terminal |
| 642 | # -strict Treat known bugs as failures |
| 643 | # -assurance smoke|ci|stress How thorough a run is |
| 644 | # |
| 645 | # TESTFLAGS can also include names of specific test files to limit |
| 646 | # the run to just those test cases. |
| 647 | # |
| 648 | test: $(APPNAME) |
| 649 |
+1
-1
| --- test/release-checklist.wiki | ||
| +++ test/release-checklist.wiki | ||
| @@ -9,11 +9,11 @@ | ||
| 9 | 9 | the command "<b>fossil ui --page doc/ckout/test/release-checklist.wiki</b>". |
| 10 | 10 | That is the only way the links below will work. |
| 11 | 11 | |
| 12 | 12 | <li><p> |
| 13 | 13 | From a private directory (not the source tree) run |
| 14 | -"<b>tclsh $SRC/test/tester.tcl $FOSSIL</b>" where $FOSSIL is the | |
| 14 | +"<b>tclsh $SRC/test/tester.tcl $FOSSIL -assurance ci</b>" where $FOSSIL is the | |
| 15 | 15 | name of the executable under test and $SRC is the source tree. |
| 16 | 16 | Verify that there are no errors. |
| 17 | 17 | |
| 18 | 18 | <li><p> |
| 19 | 19 | Click on each of the links in in the |
| 20 | 20 |
| --- test/release-checklist.wiki | |
| +++ test/release-checklist.wiki | |
| @@ -9,11 +9,11 @@ | |
| 9 | the command "<b>fossil ui --page doc/ckout/test/release-checklist.wiki</b>". |
| 10 | That is the only way the links below will work. |
| 11 | |
| 12 | <li><p> |
| 13 | From a private directory (not the source tree) run |
| 14 | "<b>tclsh $SRC/test/tester.tcl $FOSSIL</b>" where $FOSSIL is the |
| 15 | name of the executable under test and $SRC is the source tree. |
| 16 | Verify that there are no errors. |
| 17 | |
| 18 | <li><p> |
| 19 | Click on each of the links in in the |
| 20 |
| --- test/release-checklist.wiki | |
| +++ test/release-checklist.wiki | |
| @@ -9,11 +9,11 @@ | |
| 9 | the command "<b>fossil ui --page doc/ckout/test/release-checklist.wiki</b>". |
| 10 | That is the only way the links below will work. |
| 11 | |
| 12 | <li><p> |
| 13 | From a private directory (not the source tree) run |
| 14 | "<b>tclsh $SRC/test/tester.tcl $FOSSIL -assurance ci</b>" where $FOSSIL is the |
| 15 | name of the executable under test and $SRC is the source tree. |
| 16 | Verify that there are no errors. |
| 17 | |
| 18 | <li><p> |
| 19 | Click on each of the links in in the |
| 20 |
+14
-14
| --- test/tester.tcl | ||
| +++ test/tester.tcl | ||
| @@ -22,11 +22,11 @@ | ||
| 22 | 22 | # tclsh ../test/tester.tcl ./fossil -quiet merge1 update |
| 23 | 23 | # |
| 24 | 24 | # The first argument is the fossil executable to test, followed by |
| 25 | 25 | # the test files, so "update" runs test/update.test. See test/README.md |
| 26 | 26 | # for details of options such as -strict, -halt, -prot, -trials, |
| 27 | -# -utf-assurance etc. | |
| 27 | +# -assurance etc. | |
| 28 | 28 | # |
| 29 | 29 | |
| 30 | 30 | # Minimum Tcl is 8.6. auto.def should have found us a suitable Tcl |
| 31 | 31 | # installation. Care is needed to keep compatible with both 8.6 and 9.0. |
| 32 | 32 | package require Tcl 8.6- |
| @@ -90,22 +90,22 @@ | ||
| 90 | 90 | } |
| 91 | 91 | set TRIALS_EXPLICIT 1 |
| 92 | 92 | set argv [lreplace $argv $i [expr {$i + 1}]] |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | -# Unicode case-folding assurance level for unicode-pathnames.test. | |
| 95 | +# Assurance level from -assurance. | |
| 96 | 96 | # Unrelated to -trials. smoke ⊂ ci ⊂ stress; default is smoke. |
| 97 | -set UTF_ASSURANCE smoke | |
| 98 | -set i [lsearch -exact $argv -utf-assurance] | |
| 97 | +set ASSURANCE smoke | |
| 98 | +set i [lsearch -exact $argv -assurance] | |
| 99 | 99 | if {$i >= 0} { |
| 100 | 100 | if {$i + 1 >= [llength $argv]} { |
| 101 | - puts stderr "missing value for -utf-assurance" | |
| 101 | + puts stderr "missing value for -assurance" | |
| 102 | 102 | exit 1 |
| 103 | 103 | } |
| 104 | - set UTF_ASSURANCE [lindex $argv [expr {$i + 1}]] | |
| 105 | - if {$UTF_ASSURANCE ni {smoke ci stress}} { | |
| 106 | - puts stderr "-utf-assurance requires smoke, ci, or stress" | |
| 104 | + set ASSURANCE [lindex $argv [expr {$i + 1}]] | |
| 105 | + if {$ASSURANCE ni {smoke ci stress}} { | |
| 106 | + puts stderr "-assurance requires smoke, ci, or stress" | |
| 107 | 107 | exit 1 |
| 108 | 108 | } |
| 109 | 109 | set argv [lreplace $argv $i [expr {$i + 1}]] |
| 110 | 110 | } |
| 111 | 111 | |
| @@ -606,13 +606,13 @@ | ||
| 606 | 606 | return [expr {min(5, $::TRIALS)}] |
| 607 | 607 | } |
| 608 | 608 | return $::TRIALS |
| 609 | 609 | } |
| 610 | 610 | |
| 611 | -# Return the -utf-assurance level: smoke, ci, or stress. | |
| 612 | -proc test_utf_assurance {} { | |
| 613 | - return $::UTF_ASSURANCE | |
| 611 | +# Return the -assurance level: smoke, ci, or stress. | |
| 612 | +proc test_assurance {} { | |
| 613 | + return $::ASSURANCE | |
| 614 | 614 | } |
| 615 | 615 | |
| 616 | 616 | # After writing PATH A under DIR, return 1 if PATH B names the same |
| 617 | 617 | # directory entry on this volume. |
| 618 | 618 | proc fs_paths_collide {dir a b} { |
| @@ -628,11 +628,11 @@ | ||
| 628 | 628 | |
| 629 | 629 | # Classify the temporary volume once: whether ASCII case, NFC vs NFD, |
| 630 | 630 | # and sharp-s vs "ss" collapse to one directory entry. Stores a dict |
| 631 | 631 | # on ::fs_type with keys ascii_case, normalization, and sharp_s, each |
| 632 | 632 | # 1 when the two spellings are one entry. Called at harness startup |
| 633 | -# for every run, independent of -utf-assurance. | |
| 633 | +# for every run, independent of -assurance. | |
| 634 | 634 | proc fs_classify {} { |
| 635 | 635 | set dir [file join $::tempPath fs_classify_[pid]] |
| 636 | 636 | file mkdir $dir |
| 637 | 637 | set savedEncoding [encoding system] |
| 638 | 638 | encoding system utf-8 |
| @@ -1228,14 +1228,14 @@ | ||
| 1228 | 1228 | } |
| 1229 | 1229 | |
| 1230 | 1230 | |
| 1231 | 1231 | protInit $fossilexe |
| 1232 | 1232 | protOut "***** Testing $fossilexe" |
| 1233 | -protOut "***** utf-assurance: $::UTF_ASSURANCE" 1 | |
| 1233 | +protOut "***** assurance: $::ASSURANCE" 1 | |
| 1234 | 1234 | |
| 1235 | 1235 | # Classify the temp volume before any .test file runs. Always, for |
| 1236 | -# every -utf-assurance level and even when unicode-pathnames is not | |
| 1236 | +# every -assurance level and even when unicode-pathnames is not | |
| 1237 | 1237 | # among the files under test. |
| 1238 | 1238 | fs_classify |
| 1239 | 1239 | |
| 1240 | 1240 | set ::tempKeepHome 1 |
| 1241 | 1241 | |
| 1242 | 1242 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -22,11 +22,11 @@ | |
| 22 | # tclsh ../test/tester.tcl ./fossil -quiet merge1 update |
| 23 | # |
| 24 | # The first argument is the fossil executable to test, followed by |
| 25 | # the test files, so "update" runs test/update.test. See test/README.md |
| 26 | # for details of options such as -strict, -halt, -prot, -trials, |
| 27 | # -utf-assurance etc. |
| 28 | # |
| 29 | |
| 30 | # Minimum Tcl is 8.6. auto.def should have found us a suitable Tcl |
| 31 | # installation. Care is needed to keep compatible with both 8.6 and 9.0. |
| 32 | package require Tcl 8.6- |
| @@ -90,22 +90,22 @@ | |
| 90 | } |
| 91 | set TRIALS_EXPLICIT 1 |
| 92 | set argv [lreplace $argv $i [expr {$i + 1}]] |
| 93 | } |
| 94 | |
| 95 | # Unicode case-folding assurance level for unicode-pathnames.test. |
| 96 | # Unrelated to -trials. smoke ⊂ ci ⊂ stress; default is smoke. |
| 97 | set UTF_ASSURANCE smoke |
| 98 | set i [lsearch -exact $argv -utf-assurance] |
| 99 | if {$i >= 0} { |
| 100 | if {$i + 1 >= [llength $argv]} { |
| 101 | puts stderr "missing value for -utf-assurance" |
| 102 | exit 1 |
| 103 | } |
| 104 | set UTF_ASSURANCE [lindex $argv [expr {$i + 1}]] |
| 105 | if {$UTF_ASSURANCE ni {smoke ci stress}} { |
| 106 | puts stderr "-utf-assurance requires smoke, ci, or stress" |
| 107 | exit 1 |
| 108 | } |
| 109 | set argv [lreplace $argv $i [expr {$i + 1}]] |
| 110 | } |
| 111 | |
| @@ -606,13 +606,13 @@ | |
| 606 | return [expr {min(5, $::TRIALS)}] |
| 607 | } |
| 608 | return $::TRIALS |
| 609 | } |
| 610 | |
| 611 | # Return the -utf-assurance level: smoke, ci, or stress. |
| 612 | proc test_utf_assurance {} { |
| 613 | return $::UTF_ASSURANCE |
| 614 | } |
| 615 | |
| 616 | # After writing PATH A under DIR, return 1 if PATH B names the same |
| 617 | # directory entry on this volume. |
| 618 | proc fs_paths_collide {dir a b} { |
| @@ -628,11 +628,11 @@ | |
| 628 | |
| 629 | # Classify the temporary volume once: whether ASCII case, NFC vs NFD, |
| 630 | # and sharp-s vs "ss" collapse to one directory entry. Stores a dict |
| 631 | # on ::fs_type with keys ascii_case, normalization, and sharp_s, each |
| 632 | # 1 when the two spellings are one entry. Called at harness startup |
| 633 | # for every run, independent of -utf-assurance. |
| 634 | proc fs_classify {} { |
| 635 | set dir [file join $::tempPath fs_classify_[pid]] |
| 636 | file mkdir $dir |
| 637 | set savedEncoding [encoding system] |
| 638 | encoding system utf-8 |
| @@ -1228,14 +1228,14 @@ | |
| 1228 | } |
| 1229 | |
| 1230 | |
| 1231 | protInit $fossilexe |
| 1232 | protOut "***** Testing $fossilexe" |
| 1233 | protOut "***** utf-assurance: $::UTF_ASSURANCE" 1 |
| 1234 | |
| 1235 | # Classify the temp volume before any .test file runs. Always, for |
| 1236 | # every -utf-assurance level and even when unicode-pathnames is not |
| 1237 | # among the files under test. |
| 1238 | fs_classify |
| 1239 | |
| 1240 | set ::tempKeepHome 1 |
| 1241 | |
| 1242 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -22,11 +22,11 @@ | |
| 22 | # tclsh ../test/tester.tcl ./fossil -quiet merge1 update |
| 23 | # |
| 24 | # The first argument is the fossil executable to test, followed by |
| 25 | # the test files, so "update" runs test/update.test. See test/README.md |
| 26 | # for details of options such as -strict, -halt, -prot, -trials, |
| 27 | # -assurance etc. |
| 28 | # |
| 29 | |
| 30 | # Minimum Tcl is 8.6. auto.def should have found us a suitable Tcl |
| 31 | # installation. Care is needed to keep compatible with both 8.6 and 9.0. |
| 32 | package require Tcl 8.6- |
| @@ -90,22 +90,22 @@ | |
| 90 | } |
| 91 | set TRIALS_EXPLICIT 1 |
| 92 | set argv [lreplace $argv $i [expr {$i + 1}]] |
| 93 | } |
| 94 | |
| 95 | # Assurance level from -assurance. |
| 96 | # Unrelated to -trials. smoke ⊂ ci ⊂ stress; default is smoke. |
| 97 | set ASSURANCE smoke |
| 98 | set i [lsearch -exact $argv -assurance] |
| 99 | if {$i >= 0} { |
| 100 | if {$i + 1 >= [llength $argv]} { |
| 101 | puts stderr "missing value for -assurance" |
| 102 | exit 1 |
| 103 | } |
| 104 | set ASSURANCE [lindex $argv [expr {$i + 1}]] |
| 105 | if {$ASSURANCE ni {smoke ci stress}} { |
| 106 | puts stderr "-assurance requires smoke, ci, or stress" |
| 107 | exit 1 |
| 108 | } |
| 109 | set argv [lreplace $argv $i [expr {$i + 1}]] |
| 110 | } |
| 111 | |
| @@ -606,13 +606,13 @@ | |
| 606 | return [expr {min(5, $::TRIALS)}] |
| 607 | } |
| 608 | return $::TRIALS |
| 609 | } |
| 610 | |
| 611 | # Return the -assurance level: smoke, ci, or stress. |
| 612 | proc test_assurance {} { |
| 613 | return $::ASSURANCE |
| 614 | } |
| 615 | |
| 616 | # After writing PATH A under DIR, return 1 if PATH B names the same |
| 617 | # directory entry on this volume. |
| 618 | proc fs_paths_collide {dir a b} { |
| @@ -628,11 +628,11 @@ | |
| 628 | |
| 629 | # Classify the temporary volume once: whether ASCII case, NFC vs NFD, |
| 630 | # and sharp-s vs "ss" collapse to one directory entry. Stores a dict |
| 631 | # on ::fs_type with keys ascii_case, normalization, and sharp_s, each |
| 632 | # 1 when the two spellings are one entry. Called at harness startup |
| 633 | # for every run, independent of -assurance. |
| 634 | proc fs_classify {} { |
| 635 | set dir [file join $::tempPath fs_classify_[pid]] |
| 636 | file mkdir $dir |
| 637 | set savedEncoding [encoding system] |
| 638 | encoding system utf-8 |
| @@ -1228,14 +1228,14 @@ | |
| 1228 | } |
| 1229 | |
| 1230 | |
| 1231 | protInit $fossilexe |
| 1232 | protOut "***** Testing $fossilexe" |
| 1233 | protOut "***** assurance: $::ASSURANCE" 1 |
| 1234 | |
| 1235 | # Classify the temp volume before any .test file runs. Always, for |
| 1236 | # every -assurance level and even when unicode-pathnames is not |
| 1237 | # among the files under test. |
| 1238 | fs_classify |
| 1239 | |
| 1240 | set ::tempKeepHome 1 |
| 1241 | |
| 1242 |
+4
-4
| --- test/unicode-pathnames.test | ||
| +++ test/unicode-pathnames.test | ||
| @@ -28,11 +28,11 @@ | ||
| 28 | 28 | # that ignores case and normalization has one file for both names. |
| 29 | 29 | # |
| 30 | 30 | # The harness classifies the temporary volume once at startup |
| 31 | 31 | # (::fs_type). This file predicts match, miss, or untestable from |
| 32 | 32 | # that classification, Fossil argv rewriting, and the rules above. |
| 33 | -# -utf-assurance selects how many pairs to run: smoke (one per | |
| 33 | +# -assurance selects how many pairs to run: smoke (one per | |
| 34 | 34 | # behavior class), ci (the lists below), or stress (ci plus generated |
| 35 | 35 | # pairs). Unmet predictions fail the run. |
| 36 | 36 | # |
| 37 | 37 | # Case folding maps both the sharp s, U+00DF, and the capital sharp s, |
| 38 | 38 | # U+1E9E, to the two letters "ss", so by D145 a name with a sharp s and |
| @@ -201,14 +201,14 @@ | ||
| 201 | 201 | set upStressCollide [list \ |
| 202 | 202 | stress-latin "\u00f6ffentlich.txt" "\u00d6FFENTLICH.TXT" \ |
| 203 | 203 | stress-nfd "na\u00efve.txt" "nai\u0308ve.txt" \ |
| 204 | 204 | ] |
| 205 | 205 | |
| 206 | -# Build the pair lists for the current -utf-assurance level. | |
| 206 | +# Build the pair lists for the current -assurance level. | |
| 207 | 207 | # |
| 208 | 208 | proc up_select {all smokeLabels} { |
| 209 | - set level [test_utf_assurance] | |
| 209 | + set level [test_assurance] | |
| 210 | 210 | if {$level eq "smoke"} { |
| 211 | 211 | set out [list] |
| 212 | 212 | foreach {label a b} $all { |
| 213 | 213 | if {$label in $smokeLabels} { |
| 214 | 214 | lappend out $label $a $b |
| @@ -221,11 +221,11 @@ | ||
| 221 | 221 | |
| 222 | 222 | set upSame [up_select $upSameAll $upSmokeSame] |
| 223 | 223 | set upDifferent [up_select $upDifferentAll $upSmokeDifferent] |
| 224 | 224 | set upCollide [up_select $upCollideAll $upSmokeCollide] |
| 225 | 225 | |
| 226 | -if {[test_utf_assurance] eq "stress"} { | |
| 226 | +if {[test_assurance] eq "stress"} { | |
| 227 | 227 | foreach {label a b} $upStressSame { |
| 228 | 228 | lappend upSame $label $a $b |
| 229 | 229 | } |
| 230 | 230 | foreach {label a b} $upStressDifferent { |
| 231 | 231 | lappend upDifferent $label $a $b |
| 232 | 232 |
| --- test/unicode-pathnames.test | |
| +++ test/unicode-pathnames.test | |
| @@ -28,11 +28,11 @@ | |
| 28 | # that ignores case and normalization has one file for both names. |
| 29 | # |
| 30 | # The harness classifies the temporary volume once at startup |
| 31 | # (::fs_type). This file predicts match, miss, or untestable from |
| 32 | # that classification, Fossil argv rewriting, and the rules above. |
| 33 | # -utf-assurance selects how many pairs to run: smoke (one per |
| 34 | # behavior class), ci (the lists below), or stress (ci plus generated |
| 35 | # pairs). Unmet predictions fail the run. |
| 36 | # |
| 37 | # Case folding maps both the sharp s, U+00DF, and the capital sharp s, |
| 38 | # U+1E9E, to the two letters "ss", so by D145 a name with a sharp s and |
| @@ -201,14 +201,14 @@ | |
| 201 | set upStressCollide [list \ |
| 202 | stress-latin "\u00f6ffentlich.txt" "\u00d6FFENTLICH.TXT" \ |
| 203 | stress-nfd "na\u00efve.txt" "nai\u0308ve.txt" \ |
| 204 | ] |
| 205 | |
| 206 | # Build the pair lists for the current -utf-assurance level. |
| 207 | # |
| 208 | proc up_select {all smokeLabels} { |
| 209 | set level [test_utf_assurance] |
| 210 | if {$level eq "smoke"} { |
| 211 | set out [list] |
| 212 | foreach {label a b} $all { |
| 213 | if {$label in $smokeLabels} { |
| 214 | lappend out $label $a $b |
| @@ -221,11 +221,11 @@ | |
| 221 | |
| 222 | set upSame [up_select $upSameAll $upSmokeSame] |
| 223 | set upDifferent [up_select $upDifferentAll $upSmokeDifferent] |
| 224 | set upCollide [up_select $upCollideAll $upSmokeCollide] |
| 225 | |
| 226 | if {[test_utf_assurance] eq "stress"} { |
| 227 | foreach {label a b} $upStressSame { |
| 228 | lappend upSame $label $a $b |
| 229 | } |
| 230 | foreach {label a b} $upStressDifferent { |
| 231 | lappend upDifferent $label $a $b |
| 232 |
| --- test/unicode-pathnames.test | |
| +++ test/unicode-pathnames.test | |
| @@ -28,11 +28,11 @@ | |
| 28 | # that ignores case and normalization has one file for both names. |
| 29 | # |
| 30 | # The harness classifies the temporary volume once at startup |
| 31 | # (::fs_type). This file predicts match, miss, or untestable from |
| 32 | # that classification, Fossil argv rewriting, and the rules above. |
| 33 | # -assurance selects how many pairs to run: smoke (one per |
| 34 | # behavior class), ci (the lists below), or stress (ci plus generated |
| 35 | # pairs). Unmet predictions fail the run. |
| 36 | # |
| 37 | # Case folding maps both the sharp s, U+00DF, and the capital sharp s, |
| 38 | # U+1E9E, to the two letters "ss", so by D145 a name with a sharp s and |
| @@ -201,14 +201,14 @@ | |
| 201 | set upStressCollide [list \ |
| 202 | stress-latin "\u00f6ffentlich.txt" "\u00d6FFENTLICH.TXT" \ |
| 203 | stress-nfd "na\u00efve.txt" "nai\u0308ve.txt" \ |
| 204 | ] |
| 205 | |
| 206 | # Build the pair lists for the current -assurance level. |
| 207 | # |
| 208 | proc up_select {all smokeLabels} { |
| 209 | set level [test_assurance] |
| 210 | if {$level eq "smoke"} { |
| 211 | set out [list] |
| 212 | foreach {label a b} $all { |
| 213 | if {$label in $smokeLabels} { |
| 214 | lappend out $label $a $b |
| @@ -221,11 +221,11 @@ | |
| 221 | |
| 222 | set upSame [up_select $upSameAll $upSmokeSame] |
| 223 | set upDifferent [up_select $upDifferentAll $upSmokeDifferent] |
| 224 | set upCollide [up_select $upCollideAll $upSmokeCollide] |
| 225 | |
| 226 | if {[test_assurance] eq "stress"} { |
| 227 | foreach {label a b} $upStressSame { |
| 228 | lappend upSame $label $a $b |
| 229 | } |
| 230 | foreach {label a b} $upStressDifferent { |
| 231 | lappend upDifferent $label $a $b |
| 232 |
+2
-2
| --- test/utf.test | ||
| +++ test/utf.test | ||
| @@ -15,11 +15,11 @@ | ||
| 15 | 15 | # |
| 16 | 16 | ############################################################################ |
| 17 | 17 | # |
| 18 | 18 | # Test UTF-8/UTF-16 detection via fossil test-looks-like-utf. |
| 19 | 19 | # |
| 20 | -# -utf-assurance selects how many cells to run: smoke (stratified | |
| 20 | +# -assurance selects how many cells to run: smoke (stratified | |
| 21 | 21 | # edges), ci (full BOM x payload x extra product), or stress (ci plus |
| 22 | 22 | # generated payloads). Expectations come from a Tcl predictor over |
| 23 | 23 | # the bytes written, not from a fossil-echo dump. Each LOOK_*/BOM |
| 24 | 24 | # line is checked for both yes and no. |
| 25 | 25 | # |
| @@ -710,11 +710,11 @@ | ||
| 710 | 710 | lappend out utf16-abc $bom16$text16 |
| 711 | 711 | return $out |
| 712 | 712 | } |
| 713 | 713 | |
| 714 | 714 | # Select cells for the current assurance level. |
| 715 | -set level [test_utf_assurance] | |
| 715 | +set level [test_assurance] | |
| 716 | 716 | if {$level eq "smoke"} { |
| 717 | 717 | set utfCells [utf_smoke_cells] |
| 718 | 718 | } else { |
| 719 | 719 | set utfCells [utf_all_product_cells] |
| 720 | 720 | } |
| 721 | 721 |
| --- test/utf.test | |
| +++ test/utf.test | |
| @@ -15,11 +15,11 @@ | |
| 15 | # |
| 16 | ############################################################################ |
| 17 | # |
| 18 | # Test UTF-8/UTF-16 detection via fossil test-looks-like-utf. |
| 19 | # |
| 20 | # -utf-assurance selects how many cells to run: smoke (stratified |
| 21 | # edges), ci (full BOM x payload x extra product), or stress (ci plus |
| 22 | # generated payloads). Expectations come from a Tcl predictor over |
| 23 | # the bytes written, not from a fossil-echo dump. Each LOOK_*/BOM |
| 24 | # line is checked for both yes and no. |
| 25 | # |
| @@ -710,11 +710,11 @@ | |
| 710 | lappend out utf16-abc $bom16$text16 |
| 711 | return $out |
| 712 | } |
| 713 | |
| 714 | # Select cells for the current assurance level. |
| 715 | set level [test_utf_assurance] |
| 716 | if {$level eq "smoke"} { |
| 717 | set utfCells [utf_smoke_cells] |
| 718 | } else { |
| 719 | set utfCells [utf_all_product_cells] |
| 720 | } |
| 721 |
| --- test/utf.test | |
| +++ test/utf.test | |
| @@ -15,11 +15,11 @@ | |
| 15 | # |
| 16 | ############################################################################ |
| 17 | # |
| 18 | # Test UTF-8/UTF-16 detection via fossil test-looks-like-utf. |
| 19 | # |
| 20 | # -assurance selects how many cells to run: smoke (stratified |
| 21 | # edges), ci (full BOM x payload x extra product), or stress (ci plus |
| 22 | # generated payloads). Expectations come from a Tcl predictor over |
| 23 | # the bytes written, not from a fossil-echo dump. Each LOOK_*/BOM |
| 24 | # line is checked for both yes and no. |
| 25 | # |
| @@ -710,11 +710,11 @@ | |
| 710 | lappend out utf16-abc $bom16$text16 |
| 711 | return $out |
| 712 | } |
| 713 | |
| 714 | # Select cells for the current assurance level. |
| 715 | set level [test_assurance] |
| 716 | if {$level eq "smoke"} { |
| 717 | set utfCells [utf_smoke_cells] |
| 718 | } else { |
| 719 | set utfCells [utf_all_product_cells] |
| 720 | } |
| 721 |
+1
| --- tools/makemake.tcl | ||
| +++ tools/makemake.tcl | ||
| @@ -415,10 +415,11 @@ | ||
| 415 | 415 | # -keep Keep the temporary workspace for debugging |
| 416 | 416 | # -prot Write a detailed log of the tests to the file ./prot |
| 417 | 417 | # -verbose Include even more details in the output |
| 418 | 418 | # -quiet Hide most output from the terminal |
| 419 | 419 | # -strict Treat known bugs as failures |
| 420 | +# -assurance smoke|ci|stress How thorough a run is | |
| 420 | 421 | # |
| 421 | 422 | # TESTFLAGS can also include names of specific test files to limit |
| 422 | 423 | # the run to just those test cases. |
| 423 | 424 | # |
| 424 | 425 | test: $(APPNAME) |
| 425 | 426 |
| --- tools/makemake.tcl | |
| +++ tools/makemake.tcl | |
| @@ -415,10 +415,11 @@ | |
| 415 | # -keep Keep the temporary workspace for debugging |
| 416 | # -prot Write a detailed log of the tests to the file ./prot |
| 417 | # -verbose Include even more details in the output |
| 418 | # -quiet Hide most output from the terminal |
| 419 | # -strict Treat known bugs as failures |
| 420 | # |
| 421 | # TESTFLAGS can also include names of specific test files to limit |
| 422 | # the run to just those test cases. |
| 423 | # |
| 424 | test: $(APPNAME) |
| 425 |
| --- tools/makemake.tcl | |
| +++ tools/makemake.tcl | |
| @@ -415,10 +415,11 @@ | |
| 415 | # -keep Keep the temporary workspace for debugging |
| 416 | # -prot Write a detailed log of the tests to the file ./prot |
| 417 | # -verbose Include even more details in the output |
| 418 | # -quiet Hide most output from the terminal |
| 419 | # -strict Treat known bugs as failures |
| 420 | # -assurance smoke|ci|stress How thorough a run is |
| 421 | # |
| 422 | # TESTFLAGS can also include names of specific test files to limit |
| 423 | # the run to just those test cases. |
| 424 | # |
| 425 | test: $(APPNAME) |
| 426 |