diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-25 10:43:13 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-25 10:43:13 +0000 |
| commit | cd7114e46a36840b5b5e1c32d7cddab761638b7c (patch) | |
| tree | 5313685ef25d9bf6dc2cdbf8b95883c3a6d57aa3 /sample | |
| parent | 78a82b7303b677affbe4b9b1a3860a7d372fffec (diff) | |
| download | ruby-cd7114e46a36840b5b5e1c32d7cddab761638b7c.tar.gz ruby-cd7114e46a36840b5b5e1c32d7cddab761638b7c.tar.xz ruby-cd7114e46a36840b5b5e1c32d7cddab761638b7c.zip | |
* sample/test.rb (system): test with scripts under the source
directory.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb index 70cd79e9b..30319c385 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -1191,7 +1191,12 @@ File.unlink "script_tmp" or `/bin/rm -f "script_tmp"` File.unlink "script_tmp.bak" or `/bin/rm -f "script_tmp.bak"` $bad = false -for script in Dir["{lib,sample,ext}/**/*.rb"] +if (dir = File.dirname(File.dirname(dir))) == '.' + dir = "" +else + dir << "/" +end +for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"] `./miniruby -c #{script}` unless $? $bad = true |
