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

u*: Stop interpolating bin #179329

Merged
merged 12 commits into from
Aug 1, 2024
2 changes: 1 addition & 1 deletion Formula/u/ubertooth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def install

test do
# Most ubertooth utilities require an ubertooth device present.
system "#{bin}/ubertooth-rx", "-i", "/dev/null"
system bin/"ubertooth-rx", "-i", "/dev/null"
end
end
2 changes: 1 addition & 1 deletion Formula/u/uchardet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def install
end

test do
assert_equal "ASCII", pipe_output("#{bin}/uchardet", "Homebrew").chomp
assert_equal "ASCII", pipe_output(bin/"uchardet", "Homebrew").chomp
end
end
2 changes: 1 addition & 1 deletion Formula/u/ucommon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def install
end

test do
system "#{bin}/ucommon-config", "--libs"
system bin/"ucommon-config", "--libs"
end
end
2 changes: 1 addition & 1 deletion Formula/u/ugit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def install

test do
assert_match "ugit version #{version}", shell_output("#{bin}/ugit --version")
assert_match "Ummm, you are not inside a Git repo", shell_output("#{bin}/ugit")
assert_match "Ummm, you are not inside a Git repo", shell_output(bin/"ugit")
end
end
2 changes: 1 addition & 1 deletion Formula/u/umlet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def install
end

test do
system "#{bin}/umlet", "-action=convert", "-format=png",
system bin/"umlet", "-action=convert", "-format=png",
"-output=#{testpath}/test-output.png",
"-filename=#{libexec}/palettes/Plots.uxf"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/u/umple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install

test do
(testpath/"test.ump").write("class X{ a; }")
system "#{bin}/umple", "test.ump", "-c", "-"
system bin/"umple", "test.ump", "-c", "-"
assert_predicate testpath/"X.java", :exist?
assert_predicate testpath/"X.class", :exist?
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/u/unarj.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def install
test do
# Ensure that you can extract arj.exe from a sample self-extracting file
resource("testfile").stage do
system "#{bin}/unarj", "e", "ARJ286.EXE"
system bin/"unarj", "e", "ARJ286.EXE"
assert_predicate Pathname.pwd/"arj.exe", :exist?
end
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/u/unifdef.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def install
end

test do
pipe_output("#{bin}/unifdef", "echo ''")
pipe_output(bin/"unifdef", "echo ''")
end
end
2 changes: 1 addition & 1 deletion Formula/u/unp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install
path = testpath/"test"
path.write "Homebrew"
system "gzip", "test"
system "#{bin}/unp", "test.gz"
system bin/"unp", "test.gz"
assert_equal "Homebrew", path.read
end
end
6 changes: 3 additions & 3 deletions Formula/u/upx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def install
end

test do
cp "#{bin}/upx", "."
cp bin/"upx", "."
chmod 0755, "./upx"

system "#{bin}/upx", "-1", "--force-execve", "./upx"
system bin/"upx", "-1", "--force-execve", "./upx"
system "./upx", "-V" # make sure the binary we compressed works
system "#{bin}/upx", "-d", "./upx"
system bin/"upx", "-d", "./upx"
end
end
2 changes: 1 addition & 1 deletion Formula/u/urweb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def install
val main : unit -> transaction page
EOS
(testpath/"hello.urp").write "hello"
system "#{bin}/urweb", "hello"
system bin/"urweb", "hello"
system "./hello.exe", "-h"
end
end
2 changes: 1 addition & 1 deletion Formula/u/uudeview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ def install
end

test do
system "#{bin}/uudeview", "-V"
system bin/"uudeview", "-V"
end
end
Loading