Sha256: d2bba7a35886163bd75abdc5e42ae4b00a9d466ae090c05310c529715296c2dd

Contents?: true

Size: 708 Bytes

Versions: 3

Compression:

Stored size: 708 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH << File.expand_path('../../lib', __FILE__)
$LOAD_PATH << File.expand_path('../../shen/lib', __FILE__)
require 'shen_ruby'

shen = ShenRuby::Shen.new
shen.cd('shen/release/test_programs')
shen.load('README.shen')

# Override y-on-n? so that the script continues on error.
# We must use KLambda's defun to circumvent Shen's protection
# against redefining system functions.
shen.eval_string('(defun y-or-n? (Ignored) true)')

# Reset the pass/fail counters now and then make reset a no-op
# so that we can query it at the end of the test run.
shen.reset
shen.eval_string('(define reset -> true)')

shen.load('tests.shen')
exit(1) unless shen.value(:"test-harness.*failed*") == 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shen-ruby-0.12.1 bin/shen_test_suite.rb
shen-ruby-0.12.0 bin/shen_test_suite.rb
shen-ruby-0.11.0 bin/shen_test_suite.rb