sdl_mixer: fix test

This commit is contained in:
FX Coudert 2019-01-05 10:28:48 +01:00
parent 42b663ed5c
commit f0a1c817fc

View file

@ -43,8 +43,10 @@ class SdlMixer < Formula
test do test do
testpath.install resource("playwave") testpath.install resource("playwave")
system ENV.cc, "-o", "playwave", "playwave.c", "-I#{include}/SDL", system ENV.cc, "-o", "playwave", "playwave.c", "-I#{include}/SDL",
"-I#{Formula["sdl"].opt_include}/SDL", "-lSDL_mixer", "-I#{Formula["sdl"].opt_include}/SDL",
"-lSDLmain", "-lSDL", "-Wl,-framework,Cocoa" "-L#{lib}", "-lSDL_mixer",
"-L#{Formula["sdl"].lib}", "-lSDLmain", "-lSDL",
"-Wl,-framework,Cocoa"
system "SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk ./playwave #{test_fixtures("test.wav")}" system "SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk ./playwave #{test_fixtures("test.wav")}"
assert_predicate testpath/"sdlaudio.raw", :exist? assert_predicate testpath/"sdlaudio.raw", :exist?
end end