diff --git a/libs/ardour/test/data/sessions/rec_enabled/instant.xml b/libs/ardour/test/data/sessions/rec_enabled/instant.xml new file mode 100644 index 0000000000..99606ef585 --- /dev/null +++ b/libs/ardour/test/data/sessions/rec_enabled/instant.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.ardour b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.ardour new file mode 100644 index 0000000000..fe34c9b29e --- /dev/null +++ b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.ardour @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.ardour.bak b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.ardour.bak new file mode 100644 index 0000000000..106de1153d --- /dev/null +++ b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.ardour.bak @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.history b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.history new file mode 100644 index 0000000000..6dd2506a89 --- /dev/null +++ b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.history @@ -0,0 +1,2 @@ + + diff --git a/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.history.bak b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.history.bak new file mode 100644 index 0000000000..6dd2506a89 --- /dev/null +++ b/libs/ardour/test/data/sessions/rec_enabled/rec_enabled.history.bak @@ -0,0 +1,2 @@ + + diff --git a/libs/ardour/test/load_sessions_test.cc b/libs/ardour/test/load_sessions_test.cc new file mode 100644 index 0000000000..73cc506430 --- /dev/null +++ b/libs/ardour/test/load_sessions_test.cc @@ -0,0 +1,28 @@ +/* + Copyright (C) 2012 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "load_sessions_test.h" +#include "test_util.h" + +CPPUNIT_TEST_SUITE_REGISTRATION (LoadSessionsTest); + +void +LoadSessionsTest::loadSessions () +{ + load_session ("../libs/ardour/test/data/sessions/rec_enabled", "rec_enabled"); +} diff --git a/libs/ardour/test/load_sessions_test.h b/libs/ardour/test/load_sessions_test.h new file mode 100644 index 0000000000..2c590dafbe --- /dev/null +++ b/libs/ardour/test/load_sessions_test.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2012 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include "audio_region_test.h" + +class LoadSessionsTest : public CppUnit::TestFixture +{ + CPPUNIT_TEST_SUITE (LoadSessionsTest); + CPPUNIT_TEST (loadSessions); + CPPUNIT_TEST_SUITE_END (); + +public: + void loadSessions (); +}; diff --git a/libs/ardour/wscript b/libs/ardour/wscript index 4c05af8c77..04f67f7eb1 100644 --- a/libs/ardour/wscript +++ b/libs/ardour/wscript @@ -442,6 +442,7 @@ def build(bld): test/control_surfaces_test.cc test/combine_regions_test.cc test/region_naming_test.cc + test/load_sessions_test.cc test/mtdm_test.cc test/testrunner.cc '''.split()