From 074afe52253a4beb00ad5f6895da56dc19591a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 21 Oct 2011 14:45:44 +0200 Subject: add tools/check_specs --- tools/check_specs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tools/check_specs diff --git a/tools/check_specs b/tools/check_specs new file mode 100755 index 0000000..f4229e8 --- /dev/null +++ b/tools/check_specs @@ -0,0 +1,23 @@ +#! /bin/bash +# +RESET="\033[0m" +RED="\033[0;31m" +GREEN="\033[0;32m" +# +abspath=$(readlink -f $0) +parentdir=${abspath%/*/*} +# +function each () { + echo $($RUBY --version) + for spec in $parentdir/spec/e*.rb; do + $RUBY -I $parentdir/lib -S rspec --color $spec + done +} +# +RUBY=/usr/bin/ruby +time each +echo +RUBY=/opt/ruby1.8/bin/ruby +time each +echo +# -- cgit v1.1-2-g2b99