summaryrefslogtreecommitdiff
path: root/gdb/testsuite/carlton_runtest
blob: 4ad75321a4c54d2a1272765a9b585f1c325408b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash

# This is intended to run some of the tests that might be relevant to
# work on carlton_dictionary-branch.  I'm intending to run this
# frequently after compiling, so I want to pick out relevant tests and
# sort them by speed.  That way, it's perhaps less of a deal if I get
# bored in the middle of running tests and interrupt this.

# 5 seconds or so each.
FASTTESTS="gdb.base/assign.exp \
  gdb.base/constvars.exp \
  gdb.base/cvexpr.exp \
  gdb.base/dump.exp \
  gdb.base/opaque.exp \
  gdb.base/ptype.exp \
  gdb.base/reread.exp \
  gdb.base/return.exp \
  gdb.base/return2.exp \
  gdb.base/sizeof.exp \
  gdb.base/structs.exp \
  gdb.base/varargs.exp \
  gdb.c++/ambiguous.exp \
  gdb.c++/derivation.exp \
  gdb.c++/local.exp \
  gdb.c++/m-data.exp \
  gdb.c++/m-static.exp \
  gdb.c++/method.exp \
  gdb.c++/breakpoint.exp \
  gdb.c++/pr-1210.exp \
  gdb.c++/rtti.exp"

# 6 seconds or more (usually around 10).
MEDTESTS="gdb.base/exprs.exp \
  gdb.base/funcargs.exp \
  gdb.base/scope.exp \
  gdb.base/setvar.exp \
  gdb.c++/classes.exp \
  gdb.c++/namespace.exp \
  gdb.c++/overload.exp \
  gdb.c++/templates.exp \
  gdb.c++/userdef.exp \
  gdb.c++/virtfunc.exp"

# 15 seconds or more.
SLOWTESTS="gdb.base/callfuncs.exp \
  gdb.base/completion.exp \
  gdb.base/printcmds.exp \
  gdb.c++/cplusfuncs.exp \
  gdb.c++/demangle.exp"

echo "Running fast tests."
runtest ${FASTTESTS} > /dev/null 2>&1
grep -v "^Test Run By" gdb.sum > /tmp/fastout
diff -u {carlton_,/tmp/}fastout
echo "Running medium tests."
runtest ${MEDTESTS} > /dev/null 2>&1
grep -v "^Test Run By" gdb.sum > /tmp/medout
diff -u {carlton_,/tmp/}medout
echo "Running slow tests."
runtest ${SLOWTESTS} > /dev/null 2>&1
grep -v "^Test Run By" gdb.sum > /tmp/slowout
diff -u {carlton_,/tmp/}slowout

echo "Done."