summaryrefslogtreecommitdiffstats
path: root/runtest.sh
diff options
context:
space:
mode:
authorfche <fche>2005-08-21 12:11:41 +0000
committerfche <fche>2005-08-21 12:11:41 +0000
commit5e309481a22d06f4565cb3cb751d0679db0595a7 (patch)
treee0715d1df3a3c0c6907927d84e938023c82b106d /runtest.sh
parentc03e045877248e394ec05921b672c066bdba5696 (diff)
downloadsystemtap-steved-5e309481a22d06f4565cb3cb751d0679db0595a7.tar.gz
systemtap-steved-5e309481a22d06f4565cb3cb751d0679db0595a7.tar.xz
systemtap-steved-5e309481a22d06f4565cb3cb751d0679db0595a7.zip
2005-08-21 Frank Ch. Eigler <fche@redhat.com>
PR systemtap/1195, systemtap/1193 * elaborate.cxx (alias_expansion_builder): Set new block token. * parse.cxx (parse_symbol): Set new target_symbol token. * runtest.sh: Store more pertinent failure data. * tapsets.cxx (emit_probe_entries): Rewrite error-handling path. * translate.cxx (emit_common_header): Goodbye errorcount, hello last_error & last_stmt. (c_unparser::visit_statement): New "header" for all other stmts. (c_assignop, visit_binary_expression): Adapt to last_error. * tapset/builtin_logging.stp: Adapt to last_error. 2005-08-21 Frank Ch. Eigler <fche@redhat.com> * arith.c (*): Adapt to last_error context variable.
Diffstat (limited to 'runtest.sh')
-rwxr-xr-xruntest.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtest.sh b/runtest.sh
index 1c548fa4..14bd87c6 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -18,16 +18,19 @@ export SYSTEMTAP_RUNTIME
dn=`dirname $1`
logfile=testsuite/`basename $dn`-`basename $1`
+env | grep SYSTEMTAP > $logfile.cmd
+echo "$@" >> $logfile.cmd
eval $@ >$logfile.out 2>$logfile.err
rc=$?
+echo "rc=$rc" > $logfile.rc
if expr $1 : '.*ok/.*' >/dev/null; then
if [ $rc -eq 0 ]; then
- rm -f $logfile.out $logfile.err
+ rm -f $logfile.*
fi
else
if [ $rc -eq 1 ]; then
- rm -f $logfile.out $logfile.err
+ rm -f $logfile.*
fi
fi