File: spec-ruby

package info (click to toggle)
jruby 9.4.12.0%2Bds-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 89,468 kB
  • sloc: ruby: 550,612; java: 276,882; yacc: 25,873; ansic: 6,285; xml: 6,172; sh: 1,775; sed: 94; makefile: 76; jsp: 48; tcl: 40; exp: 12
file content (19 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

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

prepare

cd "$AUTOPKGTEST_TMP"

if [ "$(id -u)" -eq 0 ]; then
    # prevent chroot spec from running, chroot is not supported with jruby
    sed -i '/it_behaves_like :dir_chroot_as_root, :chroot/d' spec/ruby/core/dir/chroot_spec.rb
fi

for n in SC_CHILD_MAX SC_TZNAME_MAX SC_SYMLOOP_MAX; do
    echo "fails:Etc.sysconf returns the value of POSIX.1 system configuration variable ${n}" >> spec/tags/ruby/library/etc/sysconf_tags.txt
done

# run the rspec testsuite
jruby -S rake spec:ruby:fast