summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-04-17 14:37:19 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2017-04-17 16:01:57 -0700
commit790826272861bd3eca2d149ac7b2b95fcbec6e09 (patch)
treee596f63c00dacadf6d5f3eb7f872fb552e0e354c
parenta72b7952abe7f3d8d8755f9e33175dd2ce961650 (diff)
Add more diagnostic output to the test-one.sh script
This commit makes the test-one.sh script log the input header as well as the emitted bindings to stdout.
-rwxr-xr-xtests/test-one.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-one.sh b/tests/test-one.sh
index 6475df7f..d1950eb9 100755
--- a/tests/test-one.sh
+++ b/tests/test-one.sh
@@ -31,6 +31,14 @@ TEST_BINDINGS_BINARY=$(mktemp -t bindings.XXXXX)
dot -Tpng ir.dot -o ir.png
+echo "=== Input header ========================================================"
+cat "$TEST"
+
+echo "=== Generated bindings =================================================="
+cat "$BINDINGS"
+
+echo "=== Building bindings ==================================================="
rustc --test -o "$TEST_BINDINGS_BINARY" "$BINDINGS"
+echo "=== Testing bindings ===================================================="
"$TEST_BINDINGS_BINARY"