aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-24 16:14:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-02-24 16:15:27 +0000
commit21911c0cc9b32eae6f1d28261f64de168dbdfceb (patch)
tree9a43ea5491a463688d01e6440febc930ebbba435
parent5f9df2543d5f3d31f934d864490e0e28938c806b (diff)
build-all-archs: Test risugen
Test that a simple risugen invocation for all *.risu files works. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rwxr-xr-xbuild-all-archs15
1 files changed, 14 insertions, 1 deletions
diff --git a/build-all-archs b/build-all-archs
index 35859e9..80b2208 100755
--- a/build-all-archs
+++ b/build-all-archs
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
#
# Simple script to build risu for all architectures
#
@@ -11,6 +11,8 @@
# Contributors:
# Peter Maydell (Linaro) - initial implementation
+# So we notice risugen failing even though it's in a pipeline
+set -o pipefail
# Debian stretch and Ubuntu Xenial have cross compiler packages for
# all of these:
@@ -38,3 +40,14 @@ for triplet in aarch64-linux-gnu arm-linux-gnueabihf m68k-linux-gnu \
make -C build/${triplet}
done
+
+# Now run risugen for all architectures
+mkdir -p build/risuout
+
+for f in *.risu; do
+ echo "Running risugen on $f..."
+ # The grep is a quick hack to avoid flooding the terminal with an
+ # enormous list of patterns. Ideally we should make risugen
+ # have a --quiet option or similar.
+ ./risugen --numinsns 10000 $f build/risuout/$f.out | grep -v '^Generating code using patterns'
+done