OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [testsuite/] [itcl.tests/] [itcl-test.exp] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Copyright 1997 Cygnus Solutions
2
 
3
if {$tracelevel} then {
4
  strace $tracelevel
5
}
6
 
7
if {[itcl_start] == -1} then {
8
  perror "Couldn't start the itcl test shell" 0
9
  return -1
10
}
11
 
12
if {! [file exists ${srcdir}/../tests/all]} then {
13
  perror "File \"all\" is missing" 0
14
  return -1
15
}
16
 
17
# This is safe because the itcl tests don't create any temporary
18
# files.  If they did, we'd have to edit the test suite so that it
19
# could be run from a non-srcdir, like we did for the Tcl test suite.
20
expect "% "
21
send "cd ${srcdir}/../tests; source all; exit\n"
22
 
23
expect {
24
  -re ">>>> PASSED TEST (\[^\r\n\]*)\[\r\n\]+" {
25
    pass $expect_out(1,string)
26
    exp_continue
27
  }
28
 
29
  -re ">>>> FAILED TEST (\[^\r\n\]*)\[\r\n\]+" {
30
    fail $expect_out(1,string)
31
    exp_continue
32
  }
33
 
34
  "== ALL TESTS SUCCESSFUL ==" {
35
    # Done.
36
  }
37
}
38
 
39
catch close

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.