libgeotiff: fix test

This commit is contained in:
FX Coudert 2018-09-19 09:24:43 +02:00
parent 338fcc6335
commit dfee25ae0e

View file

@ -63,8 +63,10 @@ class Libgeotiff < Formula
}
EOS
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-ltiff", "-lgeotiff", "-o", "test"
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lgeotiff",
"-L#{Formula["libtiff"].opt_lib}", "-ltiff", "-o", "test"
system "./test", "test.tif"
assert_match /GeogInvFlatteningGeoKey.*123.456/, shell_output("#{bin}/listgeo test.tif")
output = shell_output("#{bin}/listgeo test.tif")
assert_match /GeogInvFlatteningGeoKey.*123.456/, output
end
end