2013-09-16 11:17:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef BUILD_TESTS
|
|
|
|
|
|
|
|
#include "../config.hxx"
|
|
|
|
|
|
|
|
#include "../gui.hxx"
|
|
|
|
#include "../audiobuffer.hxx"
|
|
|
|
#include "../diskwriter.hxx"
|
|
|
|
|
|
|
|
#include "qunit.hxx"
|
|
|
|
|
|
|
|
extern Gui* gui;
|
|
|
|
|
|
|
|
int DiskWriter::runTests()
|
|
|
|
{
|
2013-09-17 12:00:12 +02:00
|
|
|
QUnit::UnitTest qunit( QUnit::normal );
|
2013-09-16 11:17:27 +02:00
|
|
|
//AudioBuffer ab;
|
|
|
|
//QUNIT_IS_TRUE( gui->getDiskWriter()->writeAudioBuffer(0, 0, &ab) == LUPPP_RETURN_OK );
|
|
|
|
|
|
|
|
QUNIT_IS_TRUE( gui->getDiskWriter()->writeSession("/tmp","luppTestSession") == LUPPP_RETURN_OK );
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|