set -e

# prepare test environment
prepare() {
    cp -a default.build.properties Gemfile Rakefile rakelib spec test "$AUTOPKGTEST_TMP"
    cp -a /usr/share/jruby/bin "$AUTOPKGTEST_TMP/bin"
    ln -s /usr/share/jruby/lib "$AUTOPKGTEST_TMP/lib"
    export LANG=C.UTF-8
    export LC_ALL=C.UTF-8
    export CI=1
    export JOBS=2
    # make test dependencies (bundle gems) in system gems available to jruby
    export GEM_PATH=/usr/share/jruby/lib/ruby/shared:/usr/share/rubygems-integration/all:/usr/lib/ruby/gems/3.1.0
}
