~ubuntu-branches/ubuntu/saucy/dejagnu/saucy

« back to all changes in this revision

Viewing changes to testsuite/config/default.exp

  • 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
# Copyright (C) 1992 - 2002, 2003 Free Software Foundation, Inc.
 
2
 
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; either version 2 of the License, or
 
6
# (at your option) any later version.
 
7
#
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
#
 
13
# You should have received a copy of the GNU General Public License
 
14
# along with this program; if not, write to the Free Software
 
15
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
16
 
 
17
# Please email any bugs, comments, and/or additions to this file to:
 
18
# bug-dejagnu@gnu.org
 
19
 
 
20
# This file was written by Rob Savoye. (rob@welcomehome.org)
 
21
 
 
22
global RUNTEST
 
23
if ![info exists RUNTEST] then {
 
24
    set RUNTEST [transform runtest]
 
25
}
 
26
 
 
27
if ![info exists EXPECT] {
 
28
    set EXPECT [findfile $base_dir/../../expect/expect "$base_dir/../../expect/expect" expect]
 
29
    verbose "EXPECT defaulting to $EXPECT" 2
 
30
}
 
31
 
 
32
global RUNTESTFLAGS
 
33
if ![info exists RUNTESTFLAGS] then {
 
34
    set RUNTESTFLAGS "-v -v -a"
 
35
}
 
36
 
 
37
#
 
38
# runtest_version -- extract and print the version number
 
39
#
 
40
proc runtest_version { } {
 
41
    global RUNTEST
 
42
 
 
43
    catch {exec $RUNTEST -V} tmp
 
44
    if [info exists tmp] then {
 
45
        clone_output "$tmp\n"
 
46
    }
 
47
}
 
48
 
 
49
#
 
50
# runtest_load -- loads the program. For runtest, this is just a stub
 
51
#
 
52
proc runtest_load { arg } {
 
53
}
 
54
 
 
55
#
 
56
# runtest_exit -- exit the test driver for expect
 
57
#
 
58
proc runtest_exit { } {
 
59
    close
 
60
}
 
61
 
 
62
#
 
63
# runtest_start -- start everything
 
64
#
 
65
proc runtest_start { } {
 
66
    global verbose
 
67
    global spawn_id
 
68
    global subdir
 
69
    global srcdir
 
70
    global objdir
 
71
    global RUNTEST
 
72
    global RUNTESTFLAGS
 
73
 
 
74
    if {[which $RUNTEST] != 0} then {
 
75
        perror "Can't find $RUNTEST"
 
76
    }
 
77
 
 
78
    #    return [open [concat "$RUNTEST $RUNTESTFLAGS"] r]
 
79
}