blob: 845c5b24b8dea4f2f0e1a8ec6e2591e936519b62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'test/unit'
$:.unshift 'lib'
MYDIR = File.dirname(__FILE__)
suite = Dir[File.join(MYDIR, '*.rb')].
map { |tc| File.basename(tc).sub(/\.rb$/, '') } - %w'suite vhdl'
puts "Running CodeRay unit tests: #{suite.join(', ')}"
helpers = %w(file_type word_list tokens)
for test_case in helpers + (suite - helpers)
load File.join(MYDIR, test_case + '.rb')
end
|