summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-10-21 14:45:44 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-10-21 14:45:44 +0200
commit074afe52253a4beb00ad5f6895da56dc19591a33 (patch)
tree8c7cfcf43164cf1df2e02747cadc918e431d3e54
parentc0801dc60f8a998395a6300ca8a7cad5cf438bfa (diff)
downloadffi-efl-074afe52253a4beb00ad5f6895da56dc19591a33.zip
ffi-efl-074afe52253a4beb00ad5f6895da56dc19591a33.tar.gz
add tools/check_specs
-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
+#