Fix tests compilation
This commit is contained in:
parent
27d77b8719
commit
f0f26fb8d3
|
@ -10,6 +10,8 @@
|
|||
using namespace std;
|
||||
using namespace ARDOUR;
|
||||
|
||||
static const char* localedir = LOCALEDIR;
|
||||
|
||||
int main (int argc, char* argv[])
|
||||
{
|
||||
if (argc != 3) {
|
||||
|
@ -17,7 +19,7 @@ int main (int argc, char* argv[])
|
|||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ARDOUR::init (false, true);
|
||||
ARDOUR::init (false, true, localedir);
|
||||
|
||||
Session* s = 0;
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
using namespace std;
|
||||
using namespace ARDOUR;
|
||||
|
||||
static const char* localedir = LOCALEDIR;
|
||||
|
||||
int main (int argc, char* argv[])
|
||||
{
|
||||
if (argc != 3) {
|
||||
|
@ -17,7 +19,7 @@ int main (int argc, char* argv[])
|
|||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ARDOUR::init (false, true);
|
||||
ARDOUR::init (false, true, localedir);
|
||||
|
||||
Session* s = 0;
|
||||
|
||||
|
|
|
@ -10,10 +10,12 @@ using namespace std;
|
|||
using namespace ARDOUR;
|
||||
using namespace PBD;
|
||||
|
||||
static const char* localedir = LOCALEDIR;
|
||||
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
ARDOUR::init (false, true);
|
||||
ARDOUR::init (false, true, localedir);
|
||||
Session* session = load_session ("../libs/ardour/test/profiling/sessions/1region", "1region");
|
||||
|
||||
assert (session->get_routes()->size() == 2);
|
||||
|
|
|
@ -11,6 +11,8 @@ using namespace std;
|
|||
using namespace PBD;
|
||||
using namespace ARDOUR;
|
||||
|
||||
static const char* localedir = LOCALEDIR;
|
||||
|
||||
int
|
||||
main (int argc, char* argv[])
|
||||
{
|
||||
|
@ -19,7 +21,7 @@ main (int argc, char* argv[])
|
|||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
ARDOUR::init (false, true);
|
||||
ARDOUR::init (false, true, localedir);
|
||||
|
||||
Session* session = load_session (
|
||||
string_compose ("../libs/ardour/test/profiling/sessions/%1", argv[1]),
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include "pbd/debug.h"
|
||||
#include "ardour/ardour.h"
|
||||
|
||||
static const char* localedir = LOCALEDIR;
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -45,7 +47,7 @@ main(int argc, char* argv[])
|
|||
}
|
||||
}
|
||||
|
||||
ARDOUR::init (false, true);
|
||||
ARDOUR::init (false, true, localedir);
|
||||
|
||||
CppUnit::TestResult testresult;
|
||||
|
||||
|
|
|
@ -475,10 +475,10 @@ def build(bld):
|
|||
# Tests that don't work
|
||||
# test/mantis_3356_test.cc
|
||||
|
||||
testobj.includes = obj.includes + ['test', '../pbd']
|
||||
testobj.includes = obj.includes + ['test', '../pbd', '../libltc', '../audiographer']
|
||||
testobj.uselib = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD',
|
||||
'SAMPLERATE','XML','LRDF','COREAUDIO']
|
||||
testobj.use = ['libpbd','libmidipp','libardour']
|
||||
testobj.use = ['libpbd','libmidipp','ardour','libltc','libaudiographer']
|
||||
testobj.name = 'libardour-tests'
|
||||
testobj.target = 'run-tests'
|
||||
testobj.install_path = ''
|
||||
|
@ -511,7 +511,7 @@ def build(bld):
|
|||
session_load_tester.includes.append ('test')
|
||||
session_load_tester.uselib = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD',
|
||||
'SAMPLERATE','XML','LRDF','COREAUDIO']
|
||||
session_load_tester.use = ['libpbd','libmidipp','libardour']
|
||||
session_load_tester.use = ['libpbd','libmidipp','ardour']
|
||||
session_load_tester.name = 'libardour-session-load-tester'
|
||||
session_load_tester.target = 'load-session'
|
||||
session_load_tester.install_path = ''
|
||||
|
@ -546,7 +546,7 @@ def build(bld):
|
|||
profilingobj.includes.append ('test')
|
||||
profilingobj.uselib = ['CPPUNIT','SIGCPP','JACK','GLIBMM','GTHREAD',
|
||||
'SAMPLERATE','XML','LRDF','COREAUDIO']
|
||||
profilingobj.use = ['libpbd','libmidipp','libardour']
|
||||
profilingobj.use = ['libpbd','libmidipp','ardour']
|
||||
profilingobj.name = 'libardour-profiling'
|
||||
profilingobj.target = p
|
||||
profilingobj.install_path = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user