libgeotiff: fix test
This commit is contained in:
parent
338fcc6335
commit
dfee25ae0e
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue