13 rm -f $name/funcdb.yaml
14 script=$
(cat $name/script)
16 # First we just need to figure out what functions call which, that's
17 # exactly what script_callgraph does.
18 .
/apply_xform.py
$ARCH --script script_callgraph
--format none
$name
19 .
/apply_xform.py
$ARCH --script script_callgraph_func_refs
--format none
$name
20 .
/funcdb_util.py
$name/funcdb.yaml called_by
22 .
/apply_xform.py
$ARCH --script script_preserveds
$name
24 .
/apply_xform.py
$ARCH --script $script --iter $name
26 # Now actually check the expected results
27 diff -u $name/funcdb.yaml.exp
$name/funcdb.yaml
28 if [ -f $name/callgraph.dot.exp
]; then
29 .
/funcdb_dot.py
$name/funcdb.yaml
-o $name/callgraph.dot
30 diff -u $name/callgraph.dot.exp
$name/callgraph.dot
39 for test in $
(find -type d
-path './tests/interproc-*' |
sort); do