Fix make distcheck

This commit is contained in:
Alexander Kojevnikov 2013-02-22 19:40:54 -08:00
parent 5a898881cd
commit 602f712b9f
3 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,8 @@ EXTRA_DIST = \
lic/libtiff \
lic/regex \
lic/wxWindows \
lic/zlib
lic/zlib \
tests/samples
DISTCLEANFILES = \
intltool-extract \

View File

@ -15,6 +15,7 @@ test_SOURCES = \
AM_CPPFLAGS = \
-include config.h \
-I$(top_srcdir)/src \
-DSAMPLES_DIR=\"$(srcdir)/samples\" \
-pthread \
$(WX_CPPFLAGS)

View File

@ -35,7 +35,7 @@ struct FileInfo
static void test_file(const std::string& name, const FileInfo& info)
{
Audio audio;
auto file = audio.open("samples/" + name);
auto file = audio.open(SAMPLES_DIR "/" + name);
test("error", AudioError::OK, file->get_error());
test("codec", info.codec_name, file->get_codec_name());
test("bit rate", info.bit_rate, file->get_bit_rate());