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