view data/fileio/test/main.cpp @ 775:9aa3f343a6ea tonioni

added FlexiNoteModel to svcore.pro; small change in FlexiNoteModel.h
author matthiasm
date Tue, 26 Mar 2013 17:00:03 +0000
parents 02390a4c2abe
children e802e550a1f2
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
/* Copyright Chris Cannam - All Rights Reserved */

#include "AudioFileReaderTest.h"

#include <QtTest>

#include <iostream>

int main(int argc, char *argv[])
{
    int good = 0, bad = 0;

    QCoreApplication app(argc, argv);
    app.setOrganizationName("Sonic Visualiser");
    app.setApplicationName("test-fileio");

    {
	AudioFileReaderTest t;
	if (QTest::qExec(&t, argc, argv) == 0) ++good;
	else ++bad;
    }

    if (bad > 0) {
	std::cerr << "\n********* " << bad << " test suite(s) failed!\n" << std::endl;
	return 1;
    } else {
	std::cerr << "All tests passed" << std::endl;
	return 0;
    }
}