mirror of
https://github.com/samsonjs/compiler.git
synced 2026-03-25 08:45:52 +00:00
16 lines
298 B
Ruby
Executable file
16 lines
298 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
ROOT = Dir.pwd.sub(/\/test.*$/, '')
|
|
$LOAD_PATH << ROOT
|
|
|
|
require 'build'
|
|
|
|
def main
|
|
func = ARGV[0].to_s
|
|
print "testing #{func} ... "
|
|
success = run( build("test_#{func}.code") )
|
|
puts success == 0 ? "pass" : "FAIL! (#{success})"
|
|
exit(success)
|
|
end
|
|
|
|
main if $0 == __FILE__
|