exodriver: add a test
Closes #26304. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
291259f67a
commit
31d221ba44
1 changed files with 11 additions and 5 deletions
|
@ -17,10 +17,16 @@ class Exodriver < Formula
|
|||
depends_on "libusb"
|
||||
|
||||
def install
|
||||
cd "liblabjackusb"
|
||||
system "make", "-f", "Makefile",
|
||||
"DESTINATION=#{lib}",
|
||||
"HEADER_DESTINATION=#{include}",
|
||||
"install"
|
||||
system "make", "-C", "liblabjackusb", "install",
|
||||
"HEADER_DESTINATION=#{include}", "DESTINATION=#{lib}"
|
||||
ENV.prepend "CPPFLAGS", "-I#{include}"
|
||||
ENV.prepend "LDFLAGS", "-L#{lib}"
|
||||
system "make", "-C", "examples/Modbus"
|
||||
pkgshare.install "examples/Modbus/testModbusFunctions"
|
||||
end
|
||||
|
||||
test do
|
||||
output = shell_output("#{pkgshare}/testModbusFunctions")
|
||||
assert_match /Result:\s+writeBuffer:/, output
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue