citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit d423033649b2117e8de17058e126390c2a70cd82
parent 43b9b7161b1f4d3a86b761d5fda26aab1d4488f1
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 19 Aug 2016 14:30:41 -0600

tt: add bash

Diffstat:
Att/bash.t | 42++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+), 0 deletions(-)

diff --git a/tt/bash.t b/tt/bash.t @@ -0,0 +1,42 @@ +#!/bin/sh -e +# +# Check that Bash can be instrumented and still works after. +# +echo 1..4 +. test/package.sh + +pkg_instrument "shells/bash" + +cat <<EOF > check.good +Summary: + 384 Calls to the rewrite tool + 347 Source files used as input + 96 Application link commands + 190 Rewrite parse warnings + 31 Rewrite parse errors + 318 Rewrite successes + 29 Rewrite failures + 295 Rewritten source compile successes + 23 Rewritten source compile failures + +Totals: + 165512 Lines of source code + 2698 Function definitions + 5519 If statements + 635 For loops + 309 While loops + 38 Do while loops + 138 Switch statements + 3057 Return statement values + 8254 Call expressions + 179490 Total statements + 18704 Binary operators + 549 Errors rewriting source +EOF +pkg_check 4 + +#$TEST_WRKDIST/bash & +#echo ok 5 - bash started +# +#sleep 1 +#$TEST_TOOLS/citrun-dump