File: zentest

package info (click to toggle)
ruby-zentest 4.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: ruby: 1,813; makefile: 13
file content (23 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env ruby -swI .

require 'zentest'

$TESTING = true # for ZenWeb and any other testing infrastructure code

if defined? $v then
  puts "#{File.basename $0} v#{ZenTest::VERSION}"
  exit 0
end

if defined? $h then
  ZenTest.usage_with_exit
end

code = ZenTest.fix(*ARGV)
if defined? $e then
  require 'test/unit'
  eval code
else
  print code
end