alure: add test

This commit is contained in:
Dominyk Tiller 2017-04-05 18:34:30 +01:00 committed by ilovezfs
parent 3f0fa617bd
commit 29aab01417

View file

@ -24,10 +24,10 @@ class Alure < Formula
def install
# fix a broken include flags line, which fixes a build error.
# Not reported upstream.
# https://github.com/Homebrew/homebrew/pull/6368
# https://github.com/Homebrew/legacy-homebrew/pull/6368
if build.with? "libvorbis"
inreplace "CMakeLists.txt", "${VORBISFILE_CFLAGS}",
`pkg-config --cflags vorbisfile`.chomp
Utils.popen_read("pkg-config --cflags vorbisfile").chomp
end
cd "build" do
@ -35,4 +35,8 @@ class Alure < Formula
system "make", "install"
end
end
test do
system bin/"alureplay", test_fixtures("test.wav")
end
end