File: mri-core

package info (click to toggle)
jruby 9.4.8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 89,244 kB
  • sloc: ruby: 548,574; java: 276,189; yacc: 25,873; ansic: 6,178; xml: 6,111; sh: 1,855; sed: 94; makefile: 78; jsp: 48; tcl: 40; exp: 12
file content (50 lines) | stat: -rw-r--r-- 1,806 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/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

# skip failing tests on specific architectures
if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "armel" ] || \
     [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "armhf" ]; then
    mri_exclude test_lutime TestFileExhaustive.rb
    mri_exclude test_utime TestFileExhaustive.rb
    mri_exclude test_utime_symlinkfile TestFileExhaustive.rb
    mri_exclude test_utime TestFile.rb
elif [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "i386" ]; then
    mri_exclude test_advise TestIO.rb
elif [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "ppc64el" ]; then
    mri_exclude test_autoclose TestIO.rb
elif [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "s390x" ]; then
    mri_exclude test_pack TestArray.rb
    mri_exclude test_pack TestPack.rb
    mri_exclude test_pack_unpack_fdeEgG TestPack.rb
    # work around s390x File.utime() issue
    # reported upstream at https://github.com/jruby/jruby/issues/8043
    mri_exclude test_utime TestFile.rb
    mri_exclude test_lutime TestFileExhaustive.rb
    mri_exclude test_utime TestFileExhaustive.rb
    mri_exclude test_utime_symlinkfile TestFileExhaustive.rb
fi

# 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