exodriver: add a test

Closes #26304.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Thierry Moisan 2018-04-07 21:54:43 -04:00 committed by ilovezfs
parent 291259f67a
commit 31d221ba44

View file

@ -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