+#include <glibmm/miscutils.h>
+
#include "midi++/manager.h"
#include "pbd/compose.h"
#include "pbd/enumwriter.h"
#include "ardour/audioengine.h"
#include "test_needing_session.h"
#include "test_util.h"
+#include "test_common.h"
using namespace std;
using namespace ARDOUR;
void
TestNeedingSession::setUp ()
{
- string const test_session_path = "libs/ardour/test/test_session";
- system (string_compose ("rm -rf %1", test_session_path).c_str());
- _session = load_session (test_session_path, "test_session");
+ const string session_name("test_session");
+ std::string new_session_dir = Glib::build_filename (new_test_output_dir(), session_name);
+ _session = load_session (new_session_dir, "test_session");
}
void
create_ardour_test_program(bld, obj.includes, 'region_naming', 'test_region_naming', ['test/region_naming_test.cc'])
create_ardour_test_program(bld, obj.includes, 'control_surface', 'test_control_surfaces', ['test/control_surfaces_test.cc'])
create_ardour_test_program(bld, obj.includes, 'mtdm_test', 'test_mtdm', ['test/mtdm_test.cc'])
+ create_ardour_test_program(bld, obj.includes, 'session_test', 'test_session', ['test/session_test.cc'])
test_sources = '''
test/automation_list_property_test.cc
test/region_naming_test.cc
test/control_surfaces_test.cc
test/mtdm_test.cc
+ test/session_test.cc
'''.split()
# Tests that don't work