summaryrefslogtreecommitdiff
path: root/rubytest.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-12 07:48:31 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-12 07:48:31 +0000
commit548b5143db2c3d701520671ef1413cf3c39fcedf (patch)
treef89e9e7746e75343a2886ee50fc23a37f9fe5886 /rubytest.rb
parentcfdf994071fac150246d54d65a66ddeba4d53a97 (diff)
2000-06-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubytest.rb')
-rw-r--r--rubytest.rb7
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"