Fossil SCM

Skip test 'th1-tcl2' if the SQLite package for Tcl is not available.

mistachkin 2016-01-11 21:08 UTC trunk
Commit 2fbbd4f61d5c8bfe7ff8fbd804ac7f81496dfe7e
1 file changed +7 -3
--- test/th1-tcl.test
+++ test/th1-tcl.test
@@ -62,14 +62,18 @@
6262
one_word
6363
three words now$} [normalize_result]]}
6464
6565
###############################################################################
6666
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]]
6970
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
+}
7175
7276
###############################################################################
7377
7478
fossil test-th-render --open-config \
7579
[file nativename [file join $dir th1-tcl3.txt]]
7680
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button