From: Jean Privat Date: Thu, 25 Jul 2013 20:13:38 +0000 (-0400) Subject: bench: skip pep8analysis if not present X-Git-Tag: v0.6~4^2~9 X-Git-Url: http://nitlanguage.org bench: skip pep8analysis if not present --- diff --git a/benchmarks/bench_engines.sh b/benchmarks/bench_engines.sh index 40be4d2..ae8cc5b 100755 --- a/benchmarks/bench_engines.sh +++ b/benchmarks/bench_engines.sh @@ -130,8 +130,10 @@ function run_compiler() bench_command "shoot" "shoot_logic 30" "./shoot.$title.bin" 30 run_command "$@" ../tests/bench_bintree_gen.nit -o "bintrees.$title.bin" bench_command "bintrees" "bench_bintree_gen 18" "./bintrees.$title.bin" 18 - run_command "$@" "$pep8analysis/src/pep8analysis.nit" -I "$pep8analysis/lib" -o "pep8a.$title.bin" - bench_command "pep8analisis" "bench_bintree_gen 18" "./pep8a.$title.bin" "$pep8analysis/tests/privat/"*.pep + if test -f "$pep8analysis/src/pep8analysis.nit"; then + run_command "$@" "$pep8analysis/src/pep8analysis.nit" -I "$pep8analysis/lib" -o "pep8a.$title.bin" + bench_command "pep8analisis" "bench_bintree_gen 18" "./pep8a.$title.bin" "$pep8analysis/tests/privat/"*.pep + fi fi }