#! /bin/bash # RESET="\033[0m" RED="\033[0;31m" GREEN="\033[0;32m" # abspath=$(readlink -f $0) parentdir=${abspath%/*/*} # rm /tmp/ffi-efl-* 2>/dev/null # function run () { echo -n " ${1##*/}" outf=/tmp/ffi-efl-${1##*/} $RUBY -I $parentdir/lib $1 2>>$outf && rm $outf && echo -e "$GREEN OK$RESET" || echo -e "$RED KO$RESET" } # function each () { echo $($RUBY --version) echo " lib/efl/native/*.rb" for native in $(find $parentdir/lib/efl/native/ -name *.rb | sort); do run $native done echo " lib/efl/*.rb" for wrapper in $(find $parentdir/lib/efl/ -name e*.rb | sort); do run $wrapper done } # RUBY=/usr/bin/ruby time each echo RUBY=/opt/ruby1.8/bin/ruby time each echo #