diff --git a/Makefile.am b/Makefile.am index 1a3deca..16340fd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,7 +20,8 @@ EXTRA_DIST = \ lic/libtiff \ lic/regex \ lic/wxWindows \ - lic/zlib + lic/zlib \ + tests/samples DISTCLEANFILES = \ intltool-extract \ diff --git a/tests/Makefile.am b/tests/Makefile.am index 4df0f40..03beced 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -15,6 +15,7 @@ test_SOURCES = \ AM_CPPFLAGS = \ -include config.h \ -I$(top_srcdir)/src \ + -DSAMPLES_DIR=\"$(srcdir)/samples\" \ -pthread \ $(WX_CPPFLAGS) diff --git a/tests/test-audio-info.cc b/tests/test-audio-info.cc index 79670d7..e599cd5 100644 --- a/tests/test-audio-info.cc +++ b/tests/test-audio-info.cc @@ -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());