Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
a8a3ebf8
Commit
a8a3ebf8
authored
Jun 15, 2018
by
Benoit Daloze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for TruffleRuby
parent
ad4a9fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
+31
-1
test/build.bats
+28
-0
test/definitions.bats
+3
-1
No files found.
test/build.bats
View file @
a8a3ebf8
...
...
@@ -634,6 +634,34 @@ DEF
assert_success
}
@test "TruffleRuby post-install hook" {
executable "${RUBY_BUILD_CACHE_PATH}/truffleruby-test/lib/truffle/post_install_hook.sh" <<OUT
echo Running post-install hook
OUT
cached_tarball "truffleruby-test" bin/truffleruby
stub opt true
run_inline_definition <<DEF
install_package "truffleruby-test" "URL" truffleruby
DEF
assert_success
assert_output_contains "Running post-install hook"
}
@test "TruffleRuby LLVM missing" {
executable "${RUBY_BUILD_CACHE_PATH}/truffleruby-test/lib/truffle/post_install_hook.sh" <<OUT
echo Running post-install hook
OUT
cached_tarball "truffleruby-test" bin/truffleruby
stub opt false
run_inline_definition <<DEF
install_package "truffleruby-test" "URL" truffleruby
DEF
assert_failure
assert_output_contains "TruffleRuby requires LLVM to be installed to run native extensions."
}
@test "non-writable TMPDIR aborts build" {
export TMPDIR="${TMP}/build"
mkdir -p "$TMPDIR"
...
...
test/definitions.bats
View file @
a8a3ebf8
...
...
@@ -8,6 +8,7 @@ NUM_DEFINITIONS="$(ls "$BATS_TEST_DIRNAME"/../share/ruby-build | wc -l)"
assert_success
assert_output_contains "1.9.3-p194"
assert_output_contains "jruby-1.7.9"
assert_output_contains "truffleruby-1.0.0-rc2"
assert [ "${#lines[*]}" -eq "$NUM_DEFINITIONS" ]
}
...
...
@@ -90,7 +91,8 @@ jruby-1.7.1
jruby-1.7.9
jruby-1.7.10
jruby-9000-dev
jruby-9000"
jruby-9000
truffleruby-1.0.0-rc2"
for ver in $expected; do
touch "${RUBY_BUILD_ROOT}/share/ruby-build/$ver"
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment