#!/bin/sh

. "$(dirname $0)/common.sh"

prepare
debug_tests

cd "$AUTOPKGTEST_TMP"

# exclude failing testcase
# with "Expected /OK/ (oid=4000) to be the same as /OK/ (oid=4004)."
# needs further investigation
mri_exclude test_regexp TestBasicInstructions.rb

# exclude unreliable signal+thread tests
# https://github.com/jruby/jruby/issues/4956
mri_exclude test_thread_join_in_trap TestThread.rb
mri_exclude test_thread_value_in_trap TestThread.rb

# flaky test
mri_exclude test_autoload_same_file_with_raise TestAutoload.rb

# run a single test
#jruby test/mri/runner.rb --excludes=test/mri/excludes:test/mri/excludes_wip test/mri/ruby/test_thread.rb

# run the full rspec testsuite
jruby -S rake test:mri:core
