From 37c9a0465de47680096dbbe8a7958cdf02ff9f69 Mon Sep 17 00:00:00 2001 From: Eric Lindvall Date: Wed, 22 Jan 2014 11:55:01 -0800 Subject: [PATCH] Add test for MAKE_INSTALL_OPTS Also fix the ordering of make install arguments --- bin/ruby-build | 2 +- test/build.bats | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bin/ruby-build b/bin/ruby-build index fa35569b..534f3ab1 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -411,7 +411,7 @@ build_package_standard() { ) >&4 2>&1 { "$MAKE" $MAKE_OPTS ${!PACKAGE_MAKE_OPTS} "${!PACKAGE_MAKE_OPTS_ARRAY}" - "$MAKE" $MAKE_INSTALL_OPTS install ${!PACKAGE_MAKE_INSTALL_OPTS} "${!PACKAGE_MAKE_INSTALL_OPTS_ARRAY}" + "$MAKE" install $MAKE_INSTALL_OPTS ${!PACKAGE_MAKE_INSTALL_OPTS} "${!PACKAGE_MAKE_INSTALL_OPTS_ARRAY}" } >&4 2>&1 } diff --git a/test/build.bats b/test/build.bats index 3b91d8b8..f1660a66 100644 --- a/test/build.bats +++ b/test/build.bats @@ -239,6 +239,26 @@ make install DOGE="such wow" OUT } +@test "setting MAKE_INSTALL_OPTS to a multi-word string" { + cached_tarball "ruby-2.0.0" + + stub_make_install + + export MAKE_INSTALL_OPTS="DOGE=\"such wow\"" + run_inline_definition <