3
set srcdir [lindex $argv 0]
4
set subdir [lindex $argv 1]
5
set objdir [lindex $argv 2]
7
if [ file exists $objdir/setval.tmp ] {
8
source $objdir/setval.tmp
10
puts "ERROR: $objdir/setval.tmp doesn't exist"
12
if [ file exists $srcdir/$subdir/default_procs.tcl ] {
13
source "$srcdir/$subdir/default_procs.tcl"
15
puts "ERROR: $srcdir/$subdir/default_procs.tcl doesn't exist"
17
if [ file exists $srcdir/../lib/framework.exp] {
18
source $srcdir/../lib/framework.exp
20
puts "ERROR: $srcdir/../lib/framework.exp doesn't exist"
27
# stuff that shouldn't print anything without all_flag set
30
{ "lib_pat_test" "clone_output" "PASS: Foo" "" "clone_output(pass) without all_flag set" }
31
{ "lib_pat_test" "clone_output" "UNRESOLVED: Foo" "" "clone_output(unresolved) without all_flag set" }
32
{ "lib_pat_test" "clone_output" "UNSUPPORTED: Foo" "" "clone_output(unsupported) without all_flag set" }
33
{ "lib_pat_test" "clone_output" "UNTESTED: Foo" "" "clone_output(untested) without all_flag set" }
34
{ "lib_pat_test" "clone_output" "ERROR: Bar" "ERROR: Bar" "clone_output(error) without all_flag set" }
35
{ "lib_pat_test" "clone_output" "WARNING: Bar" "WARNING: Bar" "clone_output(warning) without all_flag set" }
36
{ "lib_pat_test" "clone_output" "NOTE: Bar" "NOTE: Bar" "clone_output(note) without all_flag set" }
41
# tests for all_flag set to 1
44
{ "lib_pat_test" "clone_output" "PASS: Foo" "PASS: Foo" "clone_output(pass) with all_flag set" }
45
{ "lib_pat_test" "clone_output" "XFAIL: Foo" "XFAIL: Foo" "clone_output(xfail) with all_flag set" }
46
{ "lib_pat_test" "clone_output" "UNRESOLVED: Foo" "UNRESOLVED: Foo" "clone_output(unresolved) with all_flag set" }
47
{ "lib_pat_test" "clone_output" "UNSUPPORTED: Foo" "UNSUPPORTED: Foo" "clone_output(unsupported) with all_flag set" }
48
{ "lib_pat_test" "clone_output" "UNTESTED: Foo" "UNTESTED: Foo" "clone_output(untested) with all_flag set" }
49
{ "lib_pat_test" "clone_output" "ERROR: Foo" "ERROR: Foo" "clone_output(error) with all_flag set" }
50
{ "lib_pat_test" "clone_output" "WARNING: Foo" "WARNING: Foo" "clone_output(warning) with all_flag set" }
51
{ "lib_pat_test" "clone_output" "NOTE: Foo" "NOTE: Foo" "clone_output(note) with all_flag set" }