~ubuntu-branches/ubuntu/saucy/ecasound2.2/saucy

« back to all changes in this revision

Viewing changes to testsuite/eca_test1.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2008-09-26 09:58:52 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926095852-k3v9ewhmxpaltusw
Tags: 2.5.2-3
yodl 2.13.1 removed --unique-output option. Remove --unique-output
accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
#include <string>
 
3
#include <cstdio>
 
4
#include <string>
 
5
#include <cstdlib>
 
6
 
 
7
#include "eca-logger.h"
 
8
#include "eca-test-repository.h"
 
9
#include "eca-test-repository.cpp"
 
10
#include "eca-test-case.h"
 
11
#include "eca-test-case.cpp"
 
12
 
 
13
#include "ecatestsuite.h"
 
14
 
 
15
using namespace std;
 
16
 
 
17
/**
 
18
 * See also 'ecasound/libecasound/libecasound_tester.cpp'
 
19
 */
 
20
 
 
21
int main(int argc, char *argv[]) {
 
22
  ECA_TEST_ENTRY();
 
23
 
 
24
  /**
 
25
   * Uncomment to enable libecasound log messages
 
26
   */
 
27
  // ECA_LOGGER::instance().set_log_level_bitmask(0x63);
 
28
 
 
29
  ECA_TEST_REPOSITORY& repo = ECA_TEST_REPOSITORY::instance();
 
30
 
 
31
  repo.run();
 
32
 
 
33
  if (repo.success() != true) {
 
34
    cerr << "---" << endl; 
 
35
    cerr << repo.failures().size() << " failed test cases ";
 
36
    cerr << "in ECA_TEST_REPOSITORY:" << endl << endl;
 
37
 
 
38
    const list<string>& failures = repo.failures();
 
39
    list<string>::const_iterator q = failures.begin();
 
40
    int n = 1;
 
41
    while(q != failures.end()) {
 
42
      cerr << n++ << ". " << *q << endl;
 
43
      ++q;
 
44
    }
 
45
 
 
46
    ECA_TEST_FAIL(1, "ECA_TEST_REPOSITORY");
 
47
  }
 
48
 
 
49
  ECA_TEST_SUCCESS();
 
50
}