diff options
author | drh <drh@noemail.net> | 2010-08-20 10:28:28 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-08-20 10:28:28 +0000 |
commit | a6c4196604ff86df004e8b7e37d5fc6273581c5a (patch) | |
tree | 28f9f455a4771cf49dcb417796051c84f5c4b992 /test/backcompat.test | |
parent | 96dd6a16af955f9739fc4c3e01653cb1e09ec3fe (diff) | |
download | sqlite-a6c4196604ff86df004e8b7e37d5fc6273581c5a.tar.gz sqlite-a6c4196604ff86df004e8b7e37d5fc6273581c5a.zip |
Do not attempt run backwards compatibility tests if no historical
"testfixture" binaries are available.
FossilOrigin-Name: 40e11aabc7668e1c9db43d9183edb445996254bd
Diffstat (limited to 'test/backcompat.test')
-rw-r--r-- | test/backcompat.test | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/backcompat.test b/test/backcompat.test index 40f25cdbd..bab83902f 100644 --- a/test/backcompat.test +++ b/test/backcompat.test @@ -34,15 +34,16 @@ db close # against. # set binaries [list] -set pattern "[file tail [info nameofexec]]*" +set pattern "[file tail [info nameofexec]]?*" if {$tcl_platform(platform)=="windows"} { set pattern [string map {\.exe {}} $pattern] } -foreach file [glob $pattern] { - if {[file executable $file]} {lappend binaries $file} +foreach file [glob -nocomplain $pattern] { + if {[file executable $file] && } {lappend binaries $file} } if {[llength $binaries]==0} { - puts "WARNING: No binaries to test against. No tests have been run." + puts "WARNING: No historical binaries to test against." + puts "WARNING: No backwards-compatibility tests have been run." finish_test return } @@ -53,7 +54,9 @@ proc get_version {binary} { set v } foreach bin $binaries { - puts "Testing against $bin - version [get_version $bin]" + puts -nonewline "Testing against $bin - " + flush stdout + puts "version [get_version $bin]" } proc do_backcompat_test {rv bin1 bin2 script} { |