MediaProcessors
Main Page
Related Pages
Classes
Files
File List
File Members
muxers
utests
muxers/utests/utests.cpp
1
/*
2
* Copyright (c) 2017 Rafael Antoniello
3
*
4
* This file is part of MediaProcessors.
5
*
6
* MediaProcessors is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* MediaProcessors is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with MediaProcessors. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
26
#include <cstdio>
27
28
#include <UnitTest++/UnitTest++.h>
29
30
extern
"C"
{
31
#include <libmediaprocsutils/log.h>
32
#include <libmediaprocsutils/stat_codes.h>
33
#include <libmediaprocsutils/check_utils.h>
34
}
35
36
int
main(
int
argc,
char
*argv[])
37
{
38
int
ret_code;
39
40
if
(log_module_open()!= STAT_SUCCESS) {
41
printf(
"Could not initialize LOG module\n"
);
42
return
STAT_ERROR;
43
}
44
45
if
((ret_code= UnitTest::RunAllTests())!= 0) {
46
printf(
"Error occurred in u-testing (exit code: %d)\n"
, ret_code);
47
return
ret_code;
48
}
49
50
log_module_close();
51
return
0;
52
}
Generated by
1.8.11