summaryrefslogtreecommitdiffstats
path: root/tools/check_specs
blob: f4229e8591c91b33b2532a12574070b029de95f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
#