mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
This commit is contained in:
parent
35c3a24c8c
commit
5537adf719
Notes:
git
2021-01-04 13:15:11 +09:00
31 changed files with 257 additions and 216 deletions
|
@ -40,8 +40,7 @@ install (FILES test.txt DESTINATION bin)
|
|||
|
||||
output = output.join "\n"
|
||||
|
||||
assert_match \
|
||||
%r{^cmake \. -DCMAKE_INSTALL_PREFIX=#{Regexp.escape @dest_path}}, output
|
||||
assert_match %r{^cmake \. -DCMAKE_INSTALL_PREFIX\\=#{Regexp.escape @dest_path}}, output
|
||||
assert_match %r{#{Regexp.escape @ext}}, output
|
||||
assert_contains_make_command '', output
|
||||
assert_contains_make_command 'install', output
|
||||
|
@ -58,11 +57,10 @@ install (FILES test.txt DESTINATION bin)
|
|||
output = output.join "\n"
|
||||
|
||||
shell_error_msg = %r{(CMake Error: .*)}
|
||||
sh_prefix_cmake = "cmake . -DCMAKE_INSTALL_PREFIX="
|
||||
|
||||
assert_match 'cmake failed', error.message
|
||||
|
||||
assert_match %r{^#{sh_prefix_cmake}#{Regexp.escape @dest_path}}, output
|
||||
assert_match %r{^cmake . -DCMAKE_INSTALL_PREFIX\\=#{Regexp.escape @dest_path}}, output
|
||||
assert_match %r{#{shell_error_msg}}, output
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue