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
0a347a45
Commit
0a347a45
authored
Dec 21, 2016
by
Yuichiro NAITO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub uname for Non Linux environment
parent
49a94717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
test/build.bats
+14
-0
No files found.
test/build.bats
View file @
0a347a45
...
...
@@ -62,6 +62,7 @@ assert_build_log() {
cached_tarball "yaml-0.1.6"
cached_tarball "ruby-2.0.0"
stub uname '-s : echo Linux'
stub brew false
stub_make_install
stub_make_install
...
...
@@ -69,6 +70,7 @@ assert_build_log() {
install_fixture definitions/needs-yaml
assert_success
unstub uname
unstub make
assert_build_log <<OUT
...
...
@@ -85,6 +87,7 @@ OUT
cached_tarball "yaml-0.1.6"
cached_tarball "ruby-2.0.0"
stub uname '-s : echo Linux'
stub brew false
stub_make_install
stub_make_install
...
...
@@ -93,6 +96,7 @@ OUT
TMPDIR="$TMP" install_fixture --patch definitions/needs-yaml <<<""
assert_success
unstub uname
unstub make
unstub patch
...
...
@@ -111,6 +115,7 @@ OUT
cached_tarball "yaml-0.1.6"
cached_tarball "ruby-2.0.0"
stub uname '-s : echo Linux'
stub brew false
stub_make_install
stub_make_install
...
...
@@ -119,6 +124,7 @@ OUT
TMPDIR="$TMP" install_fixture --patch definitions/needs-yaml <<<"diff --git a/script.rb"
assert_success
unstub uname
unstub make
unstub patch
...
...
@@ -139,12 +145,14 @@ OUT
brew_libdir="$TMP/homebrew-yaml"
mkdir -p "$brew_libdir"
stub uname '-s : echo Linux'
stub brew "--prefix libyaml : echo '$brew_libdir'" false
stub_make_install
install_fixture definitions/needs-yaml
assert_success
unstub uname
unstub brew
unstub make
...
...
@@ -275,6 +283,7 @@ OUT
@test "setting RUBY_MAKE_INSTALL_OPTS to a multi-word string" {
cached_tarball "ruby-2.0.0"
stub uname '-s : echo Linux'
stub_make_install
export RUBY_MAKE_INSTALL_OPTS="DOGE=\"such wow\""
...
...
@@ -283,6 +292,7 @@ install_package "ruby-2.0.0" "http://ruby-lang.org/ruby/2.0/ruby-2.0.0.tar.gz"
DEF
assert_success
unstub uname
unstub make
assert_build_log <<OUT
...
...
@@ -295,6 +305,7 @@ OUT
@test "setting MAKE_INSTALL_OPTS to a multi-word string" {
cached_tarball "ruby-2.0.0"
stub uname '-s : echo Linux'
stub_make_install
export MAKE_INSTALL_OPTS="DOGE=\"such wow\""
...
...
@@ -303,6 +314,7 @@ install_package "ruby-2.0.0" "http://ruby-lang.org/ruby/2.0/ruby-2.0.0.tar.gz"
DEF
assert_success
unstub uname
unstub make
assert_build_log <<OUT
...
...
@@ -355,6 +367,7 @@ apply -p1 -i /my/patch.diff
exec ./configure "\$@"
CONF
stub uname '-s : echo Linux'
stub apply 'echo apply "$@" >> build.log'
stub_make_install
...
...
@@ -364,6 +377,7 @@ install_package "ruby-2.0.0" "http://ruby-lang.org/pub/ruby-2.0.0.tar.gz"
DEF
assert_success
unstub uname
unstub make
unstub apply
...
...
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