17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
-
-
-
-
-
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
#tcltest::configure -match eskil-1.*
package require Tk
wm withdraw .
set ::eskil_testsuite 1
set instrument 1
if {$instrument} {
puts "Instrumenting"
exec ./instrument.tcl compareBlocks ParseCtRevs compareFiles
source eskili.tcl
source src/eskil.tcl
} else {
source eskil.tcl
}
Init
puts "Running Tests"
foreach test [glob -nocomplain $testDir/*.test] {
source $test
}
if {$instrument} {
puts "Checking instrumenting result"
set ch [open _instrument_result w]
puts $ch [join [lsort -integer [array names ::_instrument]] \n]
close $ch
set ch [open {|diff _instrument_lines _instrument_result}]
while {[gets $ch line] >= 0} {
if {[regexp {<|>} $line]} {
puts $line
}
}
catch {close $ch}
file delete -force _instrument_lines _instrument_result
file delete -force eskili.tcl
}
exit
|