Skip to content

Commit

Permalink
test_exec_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 6, 2024
1 parent 81bbb6d commit 682a23e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/test_ocra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -747,19 +747,19 @@ def test_relpath_outside
# end
# end
#
# # Would be nice if OCRAN could build from source located beneath the
# # Ruby installation too.
# def test_exec_prefix
# path = File.join(RbConfig::CONFIG["exec_prefix"], "ocrantempsrc")
# with_fixture "helloworld", path do
# assert system("ruby", ocran, "helloworld.rb", *DefaultArgs)
# assert File.exist?("helloworld.exe")
# pristine_env "helloworld.exe" do
# assert system("helloworld.exe")
# end
# end
# end
#
# Would be nice if OCRAN could build from source located beneath the
# Ruby installation too.
def test_exec_prefix
path = File.join(RbConfig::CONFIG["exec_prefix"], "ocrantempsrc")
with_fixture "helloworld", path do
assert system("ruby", ocran, "helloworld.rb", *DefaultArgs)
assert File.exist?("helloworld.exe")
pristine_env "helloworld.exe" do
assert system("helloworld.exe")
end
end
end

# def test_explicit_in_exec_prefix
# return unless File.directory?(RbConfig::CONFIG["exec_prefix"] + "/include")
# path = File.join(RbConfig::CONFIG["exec_prefix"], "include", "**", "*.h")
Expand Down

0 comments on commit 682a23e

Please sign in to comment.