Skip to content

Commit 427b6ac

Browse files
SMillerDevBrewTestBot
authored andcommitted
root: specify bin in test
1 parent 164cd69 commit 427b6ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Formula/root.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ def caveats
143143
EOS
144144

145145
# Test ROOT command line mode
146-
system "#{bin}/root", "-b", "-l", "-q", "-e", "gSystem->LoadAllLibraries(); 0"
146+
system bin/"root", "-b", "-l", "-q", "-e", "gSystem->LoadAllLibraries(); 0"
147147

148148
# Test ROOT executable
149149
assert_equal "\nProcessing test.C...\nHello, world!\n",
150-
shell_output("root -l -b -n -q test.C")
150+
shell_output("#{bin}/root -l -b -n -q test.C")
151151

152152
# Test linking
153153
(testpath/"test.cpp").write <<~EOS
@@ -158,9 +158,9 @@ def caveats
158158
return 0;
159159
}
160160
EOS
161-
flags = %w[cflags libs ldflags].map { |f| "$(root-config --#{f})" }
161+
flags = %w[cflags libs ldflags].map { |f| "$(#{bin}/root-config --#{f})" }
162162
flags << "-Wl,-rpath,#{lib}/root"
163-
shell_output("$(root-config --cxx) test.cpp #{flags.join(" ")}")
163+
shell_output("$(#{bin}/root-config --cxx) test.cpp #{flags.join(" ")}")
164164
assert_equal "Hello, world!\n", shell_output("./a.out")
165165

166166
# Test Python module

0 commit comments

Comments
 (0)