#!/bin/sh

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

prepare
debug_tests

cd "$AUTOPKGTEST_TMP"

# exclude failing tests

# Error:EOPNOTSUPP likely caused by autopkgtest environment
echo 'exclude :test_cp_r_symlink_preserve, "fails in autopkgtests"' >> test/mri/excludes/TestFileUtils.rb

# Unknown cause, fails systematically to raise TypeError
mkdir test/mri/excludes/TestDigest
echo 'exclude :test_initialize_copy_md5_rmd160, "fails in autopkgtests"' >> test/mri/excludes/TestDigest/TestInitCopy.rb

# Causes the test to hang/timeout for an unknown reason
echo 'exclude :test_get__break, "fails in autopkgtests"' >> test/mri/excludes/TestNetHTTP_v1_2.rb

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