| #!/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" |
| |
| # 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." |