summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check_specs23
1 files changed, 23 insertions, 0 deletions
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
+#