File: ruby-tests.rb

package info (click to toggle)
ruby-test-unit 3.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,028 kB
  • sloc: ruby: 13,799; makefile: 12
file content (15 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# content inspired by test/run-test.rb

$VERBOSE = true

$KCODE = "utf8" unless "".respond_to?(:encoding)

base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
lib_dir = File.join(base_dir, "lib")
test_dir = File.join(base_dir, "test")

$LOAD_PATH.unshift(lib_dir)

require 'test/unit'

exit Test::Unit::AutoRunner.run(true, test_dir)