1 # Copyright (C) 1992-2016, 2018, 2020, 2023 Free Software Foundation, Inc.
3 # This file is part of DejaGnu.
5 # DejaGnu is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # DejaGnu is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with DejaGnu; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19 # This file was written by Rob Savoye <rob@welcomehome.org>.
21 load_lib util-defs.exp
23 runtest_setup_nested_testsuite
27 # 1st field is the command line option.
28 # 2nd field is the pattern to match.
29 # NOTE - No variable substitutions can be used.
30 # 3rd field is an optional message to print with PASS/FAIL.
34 { {--help} "USAGE:*" "Display help" }
35 { {-v -v -v} "Verbose level is 3" "Verbose set correctly" }
37 "Found.*nested-init\..*Loading.*utils\.exp"
38 "Loading library files" }
40 "Expect binary is.*Using.*main test driver"
41 "Loading basic packages" }
43 "Illegal Argument \"--F\""
46 "Couldn't find tool init file"
48 { {-v --target m68k-vxworks}
49 "Target is m68k-vxworks"
51 { {-v --target_board flash}
52 "target list is flash"
53 "--target_board option with single target" }
54 { {-v --target_board {flash/ilp32 flash/ilp48 flash/ilp64}}
55 "target list is flash/ilp32 flash/ilp48 flash/ilp64"
56 "--target_board option with multiple targets" }
57 { {-v --host sparc-sun-sunos4.1.9}
58 "Native configuration is sparc-sun-sunos4.1.9"
61 "Print all test output to screen"
62 "--all option (short form)" }
64 "Print all test output to screen"
66 { {-v --ignore foo.exp}
67 "Ignoring test foo.exp"
70 "Using test binaries in xXx.*Testsuite root is"
76 "Expect Debugging is ON"
79 "Will reboot the target"
82 "Source Trace level is now 1.* 1 if"
88 "DejaGnu version.*Expect version.*Tcl version.*"
91 "DejaGnu version.*Expect version.*Tcl version.*"
94 "XML logging turned on"
99 if [util_test $RUNTEST \
100 "[lindex $t 0] --local_init nested-init.exp --tool null" \
109 runtest_cleanup_nested_testsuite