diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-12 07:48:31 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-12 07:48:31 +0000 |
commit | 2bc48ec00f2ee0028c1a5096aa676391820b87ec (patch) | |
tree | f89e9e7746e75343a2886ee50fc23a37f9fe5886 /rubytest.rb | |
parent | ce6c53d24d361f589169ffa49360e93be8c994a3 (diff) | |
download | ruby-2bc48ec00f2ee0028c1a5096aa676391820b87ec.tar.gz ruby-2bc48ec00f2ee0028c1a5096aa676391820b87ec.tar.xz ruby-2bc48ec00f2ee0028c1a5096aa676391820b87ec.zip |
2000-06-12
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 20032e303..a2380e6f4 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" |