diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-07 10:51:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-07 10:51:02 -0400 |
commit | 283be00b0bf515ee80b4b1d809d99a2cd682c46b (patch) | |
tree | 2030831cb473293590f9b8745665bad7d11f983d /scripts | |
parent | 8421756da3fc3cc116d17fe96b50384c0d79af8b (diff) | |
download | tor-283be00b0bf515ee80b4b1d809d99a2cd682c46b.tar.gz tor-283be00b0bf515ee80b4b1d809d99a2cd682c46b.zip |
Add support for running "calltool" on Tor via "make callgraph".
Closes #19307.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maint/run_calltool.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/maint/run_calltool.sh b/scripts/maint/run_calltool.sh new file mode 100755 index 0000000000..f7fa0c3056 --- /dev/null +++ b/scripts/maint/run_calltool.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git + +set -e + +if test "x$CALLTOOL_PATH" != "x"; then + PYTHONPATH="${CALLTOOL_PATH}:${PYTHONPATH}" + export PYTHONPATH +fi + +mkdir -p callgraph + +SUBITEMS="fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks" + +for calculation in $SUBITEMS; do + echo "======== $calculation" + python -m calltool $calculation > callgraph/$calculation +done + +echo <<EOF > callgraph/README +This directory holds output from calltool, as run on Tor. For more +information about each of these files, see the NOTES and README files in +the calltool distribution. + +You can find calltool at + https://gitweb.torproject.org/user/nickm/calltool.git +EOF + |