#!/bin/sh

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

prepare

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

# run the rspec testsuite
jruby -J-Djruby.gem.home=/usr/share/rubygems-integration/all -S rake test:mri:stdlib
