aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-11-13 11:55:18 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-11-13 11:55:18 +0100
commit962c8f9935b257c1df6bddfc88ec41d4822f65c3 (patch)
tree765bc195e03a53b48d113e24cb631485d08d4b71 /test/monniaux
parentedf0180351f7fbdb129f1f5f1debf3a66a478cda (diff)
downloadcompcert-kvx-962c8f9935b257c1df6bddfc88ec41d4822f65c3.tar.gz
compcert-kvx-962c8f9935b257c1df6bddfc88ec41d4822f65c3.zip
Removing clutter from building + running benches
Diffstat (limited to 'test/monniaux')
-rw-r--r--test/monniaux/Makefile10
-rwxr-xr-xtest/monniaux/build_benches.sh7
-rwxr-xr-xtest/monniaux/clean_benches.sh6
-rwxr-xr-xtest/monniaux/run_benches.sh5
4 files changed, 21 insertions, 7 deletions
diff --git a/test/monniaux/Makefile b/test/monniaux/Makefile
index a6b19891..d7437eea 100644
--- a/test/monniaux/Makefile
+++ b/test/monniaux/Makefile
@@ -20,9 +20,12 @@ oracle_times.txt: PostpassSchedulingOracle.patch
bash build_benches.sh $@
measures.csv:
- (cd ../../ && make -j20 && make install)
- bash build_benches.sh
- bash run_benches.sh $@
+ @echo "Building compcert.."
+ @(cd ../../ && make -s -j20 && make -s install)
+ @echo "Building benches..."
+ @bash build_benches.sh
+ @echo "Benches built. Running benches..."
+ @bash run_benches.sh $@
#compile_times.pdf: gencompile.py verifier_times.txt oracle_times.txt
# python3.5 $^ $@
@@ -32,4 +35,5 @@ measures.csv:
.PHONY:
clean:
+ @bash clean_benches.sh
rm -f verifier_times.txt oracle_times.txt compile_times.pdf measure_times.k1c.pdf measures.csv
diff --git a/test/monniaux/build_benches.sh b/test/monniaux/build_benches.sh
index 931cebac..a749779d 100755
--- a/test/monniaux/build_benches.sh
+++ b/test/monniaux/build_benches.sh
@@ -4,11 +4,16 @@ TMPFILE=/tmp/1513times.txt
source benches.sh
+default="\e[39m"
+magenta="\e[35m"
+red="\e[31m"
+
rm -f commands.txt
rm -f $TMPFILE
for bench in $benches; do
+ echo -e "${magenta}Building $bench..${default}"
if [ "$1" == "" ]; then
- (cd $bench && make -j20)
+ (cd $bench && make -s -j20 > /dev/null &> /dev/null) || { echo -e "${red}Build failed" && break; }
else
(cd $bench && make -j20) | grep -P "\d+: \d+\.\d+" >> $TMPFILE
fi
diff --git a/test/monniaux/clean_benches.sh b/test/monniaux/clean_benches.sh
index c0a87ff9..dff15fd4 100755
--- a/test/monniaux/clean_benches.sh
+++ b/test/monniaux/clean_benches.sh
@@ -1,8 +1,12 @@
source benches.sh
+blue="\e[34m"
+default="\e[39m"
+
rm -f commands.txt
for bench in $benches; do
- (cd $bench && make clean)
+ echo -e "${blue}Cleaning $bench..${default}"
+ (cd $bench && make -s clean)
done
rm -f *.o
diff --git a/test/monniaux/run_benches.sh b/test/monniaux/run_benches.sh
index 5f9f22cb..60eec865 100755
--- a/test/monniaux/run_benches.sh
+++ b/test/monniaux/run_benches.sh
@@ -3,10 +3,11 @@ source benches.sh
rm -f commands.txt
for bench in $benches; do
- echo "(cd $bench && make -j5 run)" >> commands.txt
+ echo "(cd $bench && echo \"Running $bench..\" &&\
+ make -j4 run > /dev/null && echo \"$bench DONE\")" >> commands.txt
done
-cat commands.txt | xargs -n1 -I{} -P4 bash -c '{}'
+cat commands.txt | xargs -n1 -I{} -P6 bash -c '{}'
##
# Gather all the CSV files