rm "$tmp"
fi
}
+
+function test_perl
+{
+ echo -n "Testing Perl version ... "
+
+ if error=$( perl -e 'use 5.8.0;' 2>&1 ); then
+ echo_green "OK"
+ else
+ echo $error | sed "s/, stopped.*//"
+ echo_red "FAIL"
+ exit
+ fi
+}
+
+function test_ruby
+{
+ echo -n "Testing Ruby version ... "
+
+ if error=$( ruby -e 'raise "Ruby version 1.9 reqauired--this is only #{RUBY_VERSION}" if RUBY_VERSION < "1.9"' 2>&1 ); then
+ echo_green "OK"
+ else
+ echo $error | sed "s/.*: //"
+ echo_red "FAIL"
+ exit
+ fi
+}
rm $log_file
fi
+test_perl
+test_ruby
+
count=0
time0=`date +%s`