Fossil SCM
Skip test 'th1-tcl2' if the SQLite package for Tcl is not available.
Commit
2fbbd4f61d5c8bfe7ff8fbd804ac7f81496dfe7e
Parent
39f53e086ccbeda…
1 file changed
+7
-3
+7
-3
| --- test/th1-tcl.test | ||
| +++ test/th1-tcl.test | ||
| @@ -62,14 +62,18 @@ | ||
| 62 | 62 | one_word |
| 63 | 63 | three words now$} [normalize_result]]} |
| 64 | 64 | |
| 65 | 65 | ############################################################################### |
| 66 | 66 | |
| 67 | -fossil test-th-render --open-config \ | |
| 68 | - [file nativename [file join $dir th1-tcl2.txt]] | |
| 67 | +if {[catch {package require sqlite3}] == 0} { | |
| 68 | + fossil test-th-render --open-config \ | |
| 69 | + [file nativename [file join $dir th1-tcl2.txt]] | |
| 69 | 70 | |
| 70 | -test th1-tcl-2 {[regexp -- {^\d+$} [normalize_result]]} | |
| 71 | + test th1-tcl-2 {[regexp -- {^\d+$} [normalize_result]]} | |
| 72 | +} else { | |
| 73 | + puts stderr "Skipping 'th1-tcl-2', SQLite package for Tcl not available" | |
| 74 | +} | |
| 71 | 75 | |
| 72 | 76 | ############################################################################### |
| 73 | 77 | |
| 74 | 78 | fossil test-th-render --open-config \ |
| 75 | 79 | [file nativename [file join $dir th1-tcl3.txt]] |
| 76 | 80 |
| --- test/th1-tcl.test | |
| +++ test/th1-tcl.test | |
| @@ -62,14 +62,18 @@ | |
| 62 | one_word |
| 63 | three words now$} [normalize_result]]} |
| 64 | |
| 65 | ############################################################################### |
| 66 | |
| 67 | fossil test-th-render --open-config \ |
| 68 | [file nativename [file join $dir th1-tcl2.txt]] |
| 69 | |
| 70 | test th1-tcl-2 {[regexp -- {^\d+$} [normalize_result]]} |
| 71 | |
| 72 | ############################################################################### |
| 73 | |
| 74 | fossil test-th-render --open-config \ |
| 75 | [file nativename [file join $dir th1-tcl3.txt]] |
| 76 |
| --- test/th1-tcl.test | |
| +++ test/th1-tcl.test | |
| @@ -62,14 +62,18 @@ | |
| 62 | one_word |
| 63 | three words now$} [normalize_result]]} |
| 64 | |
| 65 | ############################################################################### |
| 66 | |
| 67 | if {[catch {package require sqlite3}] == 0} { |
| 68 | fossil test-th-render --open-config \ |
| 69 | [file nativename [file join $dir th1-tcl2.txt]] |
| 70 | |
| 71 | test th1-tcl-2 {[regexp -- {^\d+$} [normalize_result]]} |
| 72 | } else { |
| 73 | puts stderr "Skipping 'th1-tcl-2', SQLite package for Tcl not available" |
| 74 | } |
| 75 | |
| 76 | ############################################################################### |
| 77 | |
| 78 | fossil test-th-render --open-config \ |
| 79 | [file nativename [file join $dir th1-tcl3.txt]] |
| 80 |