summaryrefslogtreecommitdiffstats
path: root/tools/check_specs
blob: 633c3ba29a4b3553ff0fcdda8a6e32d33c741aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /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
        echo "*** SPEC $spec :"
        $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
#