~ubuntu-branches/ubuntu/oneiric/dejagnu/oneiric

« back to all changes in this revision

Viewing changes to testsuite/runtest.all/clone_output.test

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2004-02-09 15:07:58 UTC
  • Revision ID: james.westby@ubuntu.com-20040209150758-oaj7r5zrop60v8sb
Tags: upstream-1.4.4
ImportĀ upstreamĀ versionĀ 1.4.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# test clone_output
 
2
 
 
3
set srcdir [lindex $argv 0]
 
4
set subdir [lindex $argv 1]
 
5
set objdir [lindex $argv 2]
 
6
 
 
7
if [ file exists $objdir/setval.tmp ] {
 
8
    source $objdir/setval.tmp
 
9
} else {
 
10
    puts "ERROR: $objdir/setval.tmp doesn't exist"
 
11
}
 
12
if [ file exists $srcdir/$subdir/default_procs.tcl ] {
 
13
    source "$srcdir/$subdir/default_procs.tcl"
 
14
} else {
 
15
    puts "ERROR: $srcdir/$subdir/default_procs.tcl doesn't exist"
 
16
}
 
17
if [ file exists $srcdir/../lib/framework.exp] {
 
18
    source $srcdir/../lib/framework.exp
 
19
} else {
 
20
    puts "ERROR: $srcdir/../lib/framework.exp doesn't exist"
 
21
}
 
22
 
 
23
set all_flag 0
 
24
global all_flag
 
25
set errno ""
 
26
 
 
27
# stuff that shouldn't print anything without all_flag set
 
28
set all_flag 0
 
29
set tests {
 
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" }
 
37
}
 
38
 
 
39
run_tests $tests
 
40
 
 
41
# tests for all_flag set to 1
 
42
set all_flag 1
 
43
set tests {
 
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" }
 
52
}
 
53
 
 
54
run_tests $tests
 
55
 
 
56
 
 
57
 
 
58
 
 
59
 
 
60
 
 
61
 
 
62
 
 
63
 
 
64
 
 
65
 
 
66
 
 
67
 
 
68