Skip to content

Commit

Permalink
Merge pull request #204662 from Homebrew/boost-build-test
Browse files Browse the repository at this point in the history
boost-build: test with fixed path
  • Loading branch information
chenrui333 authored Jan 18, 2025
2 parents 97445ab + 92de8c4 commit c58f4f1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Formula/b/boost-build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ def install
#include <iostream>
int main (void) { std::cout << "Hello world"; }
CPP
(testpath/"Jamroot.jam").write("exe hello : hello.cpp ;")
(testpath/"Jamroot.jam").write <<~JAM
exe hello : hello.cpp ;
install install-bin : hello : <location>"#{testpath}" ;
JAM

system bin/"b2", "release"

compiler = File.basename(ENV.cc)
out = Dir["bin/#{compiler}*/release/hello"]
assert out.length == 1
assert_predicate testpath/out[0], :exist?
assert_equal "Hello world", shell_output(out[0])
assert_path_exists testpath/"hello"
assert_equal "Hello world", shell_output("./hello")
end
end

0 comments on commit c58f4f1

Please sign in to comment.