diff options
Diffstat (limited to 'rubytest.rb')
-rw-r--r-- | rubytest.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rubytest.rb b/rubytest.rb index 20032e303e..a2380e6f4c 100644 --- a/rubytest.rb +++ b/rubytest.rb @@ -3,6 +3,12 @@ require 'rbconfig' include Config +unless File.exist? "./#{CONFIG['ruby_install_name']}" + print "./#{CONFIG['ruby_install_name']} is not found.\n" + print "Try `make' first, then `make test', please.\n" + exit 0 +end + if File.exist? CONFIG['LIBRUBY_SO'] case RUBY_PLATFORM when /-hpux/ @@ -25,6 +31,7 @@ end $stderr.reopen($stdout) error = '' + `./#{CONFIG["ruby_install_name"]} #{CONFIG["srcdir"]}/sample/test.rb`.each do |line| if line =~ /^end of test/ print "test succeeded\n" |