Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l*: Stop interpolating bin #179345

Merged
merged 24 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
acb7da0
lame: Stop interpolating `bin`
p-linnane Aug 1, 2024
46a8f45
latex2html: Stop interpolating `bin`
p-linnane Aug 1, 2024
807812b
launch4j: Stop interpolating `bin`
p-linnane Aug 1, 2024
ed5eca6
lbzip2: Stop interpolating `bin`
p-linnane Aug 1, 2024
1c348c6
lci: Stop interpolating `bin`
p-linnane Aug 1, 2024
020dca2
lcov: Stop interpolating `bin`
p-linnane Aug 1, 2024
c5a8968
ldns: Stop interpolating `bin`
p-linnane Aug 1, 2024
c537b02
leaps: Stop interpolating `bin`
p-linnane Aug 1, 2024
4b6cee4
lemon: Stop interpolating `bin`
p-linnane Aug 1, 2024
ea2bd3e
lepton: Stop interpolating `bin`
p-linnane Aug 1, 2024
0e14ce3
lftp: Stop interpolating `bin`
p-linnane Aug 1, 2024
7a372ba
lha: Stop interpolating `bin`
p-linnane Aug 1, 2024
aeb389d
lightgbm: Stop interpolating `bin`
p-linnane Aug 1, 2024
0f4846c
lighttpd: Stop interpolating `bin`
p-linnane Aug 1, 2024
4072119
linklint: Stop interpolating `bin`
p-linnane Aug 1, 2024
e5c28c8
liquibase: Stop interpolating `bin`
p-linnane Aug 1, 2024
ad34a92
lockrun: Stop interpolating `bin`
p-linnane Aug 1, 2024
4417776
log4c: Stop interpolating `bin`
p-linnane Aug 1, 2024
4a01ff9
lsof: Stop interpolating `bin`
p-linnane Aug 1, 2024
22a987f
lsusb: Stop interpolating `bin`
p-linnane Aug 1, 2024
f394d9f
luarocks: Stop interpolating `bin`
p-linnane Aug 1, 2024
43562d7
lynx: Stop interpolating `bin`
p-linnane Aug 1, 2024
60faaba
lzip: Stop interpolating `bin`
p-linnane Aug 1, 2024
e17c675
lzop: Stop interpolating `bin`
p-linnane Aug 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Formula/l/lame.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def install
end

test do
system "#{bin}/lame", "--genre-list", test_fixtures("test.mp3")
system bin/"lame", "--genre-list", test_fixtures("test.mp3")
end
end
2 changes: 1 addition & 1 deletion Formula/l/latex2html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def install
\\maketitle
\\end{document}
EOS
system "#{bin}/latex2html", "test.tex"
system bin/"latex2html", "test.tex"
assert_match "Experimental Setup", File.read("test/test.html")
end
end
2 changes: 1 addition & 1 deletion Formula/l/launch4j.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ def install
end

test do
system "#{bin}/launch4j", "--version"
system bin/"launch4j", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/l/lbzip2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def install

test do
touch "fish"
system "#{bin}/lbzip2", "fish"
p-linnane marked this conversation as resolved.
Show resolved Hide resolved
system bin/"lbzip2", "fish"
system "#{bin}/lbunzip2", "fish.bz2"
end
end
2 changes: 1 addition & 1 deletion Formula/l/lci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def install
end

test do
assert_match "[I, 2]", pipe_output("#{bin}/lci", "Append [1] [2]\n")
assert_match "[I, 2]", pipe_output(bin/"lci", "Append [1] [2]\n")
end
end
2 changes: 1 addition & 1 deletion Formula/l/lcov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def install

system gcc, "-g", "-O2", "--coverage", "-o", "hello", "hello.c"
system "./hello"
system "#{bin}/lcov", "--gcov-tool", gcov, "--directory", ".", "--capture", "--output-file", "all_coverage.info"
system bin/"lcov", "--gcov-tool", gcov, "--directory", ".", "--capture", "--output-file", "all_coverage.info"

assert_predicate testpath/"all_coverage.info", :exist?
assert_includes (testpath/"all_coverage.info").read, testpath/"hello.c"
Expand Down
2 changes: 1 addition & 1 deletion Formula/l/ldns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def install
powerdns.com. 10773 IN DNSKEY 257 3 8 #{l2.tr!("\n", " ")}
EOS

system "#{bin}/ldns-key2ds", "powerdns.com.dnskey"
system bin/"ldns-key2ds", "powerdns.com.dnskey"

match = "d4c3d5552b8679faeebc317e5f048b614b2e5f607dc57f1553182d49ab2179f7"
assert_match match, File.read("Kpowerdns.com.+008+44030.ds")
Expand Down
2 changes: 1 addition & 1 deletion Formula/l/leaps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def install

# Start the server in a fork
leaps_pid = fork do
exec "#{bin}/leaps", "-address", port
exec bin/"leaps", "-address", port
end

# Give the server some time to start serving
Expand Down
2 changes: 1 addition & 1 deletion Formula/l/lemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def install
end

test do
system "#{bin}/lemon", "-d#{testpath}", "#{pkgshare}/lemon-test01.y"
system bin/"lemon", "-d#{testpath}", "#{pkgshare}/lemon-test01.y"
system ENV.cc, "lemon-test01.c"
assert_match "tests pass", shell_output("./a.out")
end
Expand Down
4 changes: 2 additions & 2 deletions Formula/l/lepton.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def install

test do
cp test_fixtures("test.jpg"), "test.jpg"
system "#{bin}/lepton", "test.jpg", "compressed.lep"
system "#{bin}/lepton", "compressed.lep", "test_restored.jpg"
system bin/"lepton", "test.jpg", "compressed.lep"
system bin/"lepton", "compressed.lep", "test_restored.jpg"
cmp "test.jpg", "test_restored.jpg"
end
end
2 changes: 1 addition & 1 deletion Formula/l/lftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def install
end

test do
system "#{bin}/lftp", "-c", "open https://ftp.gnu.org/; ls"
system bin/"lftp", "-c", "open https://ftp.gnu.org/; ls"
end
end
2 changes: 1 addition & 1 deletion Formula/l/lha.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def install

test do
(testpath/"foo").write "test"
system "#{bin}/lha", "c", "foo.lzh", "foo"
system bin/"lha", "c", "foo.lzh", "foo"
assert_equal "::::::::\nfoo\n::::::::\ntest",
shell_output("#{bin}/lha p foo.lzh")
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/l/lightgbm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def install
test do
cp_r (pkgshare/"examples/regression"), testpath
cd "regression" do
system "#{bin}/lightgbm", "config=train.conf"
system bin/"lightgbm", "config=train.conf"
end
end
end
2 changes: 1 addition & 1 deletion Formula/l/lighttpd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ def caveats
end

test do
system "#{bin}/lighttpd", "-t", "-f", etc/"lighttpd/lighttpd.conf"
system bin/"lighttpd", "-t", "-f", etc/"lighttpd/lighttpd.conf"
end
end
2 changes: 1 addition & 1 deletion Formula/l/linklint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def install

test do
(testpath/"index.html").write('<a href="/">Home</a>')
system "#{bin}/linklint", "/"
system bin/"linklint", "/"
end
end
2 changes: 1 addition & 1 deletion Formula/l/liquibase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ def caveats
end

test do
system "#{bin}/liquibase", "--version"
system bin/"liquibase", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/l/lockrun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ def install
end

test do
system "#{bin}/lockrun", "--version"
system bin/"lockrun", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/l/log4c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def install
end

test do
system "#{bin}/log4c-config", "--version"
system bin/"log4c-config", "--version"
end
end
2 changes: 1 addition & 1 deletion Formula/l/lsof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def install

test do
(testpath/"test").open("w") do
system "#{bin}/lsof", testpath/"test"
system bin/"lsof", testpath/"test"
end
end
end
2 changes: 1 addition & 1 deletion Formula/l/lsusb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def install
end

test do
output = shell_output("#{bin}/lsusb")
output = shell_output(bin/"lsusb")
assert_match(/^Bus [0-9]+ Device [0-9]+:/, output)
end
end
2 changes: 1 addition & 1 deletion Formula/l/luarocks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def install
ENV["LUA_PATH"] = "#{testpath}/share/lua/#{luaversion}/?.lua"
ENV["LUA_CPATH"] = "#{testpath}/lib/lua/#{luaversion}/?.so"

system "#{bin}/luarocks", "install",
system bin/"luarocks", "install",
"luafilesystem",
"--tree=#{testpath}",
"--lua-dir=#{lua.opt_prefix}"
Expand Down
2 changes: 1 addition & 1 deletion Formula/l/lynx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ def install
end

test do
system "#{bin}/lynx", "-dump", "https://example.org/"
system bin/"lynx", "-dump", "https://example.org/"
end
end
4 changes: 2 additions & 2 deletions Formula/l/lzip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def install
path.write original_contents

# compress: data.txt -> data.txt.lz
system "#{bin}/lzip", path
system bin/"lzip", path
refute_predicate path, :exist?

# decompress: data.txt.lz -> data.txt
system "#{bin}/lzip", "-d", "#{path}.lz"
system bin/"lzip", "-d", "#{path}.lz"
assert_equal original_contents, path.read
end
end
4 changes: 2 additions & 2 deletions Formula/l/lzop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def install
text = "This is Homebrew"
path.write text

system "#{bin}/lzop", "test"
system bin/"lzop", "test"
assert_predicate testpath/"test.lzo", :exist?
rm path

system "#{bin}/lzop", "-d", "test.lzo"
system bin/"lzop", "-d", "test.lzo"
assert_equal text, path.read
end
end
Loading