DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
tests/main.cpp
1
#include <QCoreApplication>
2
#include <QtTest>
3
4
int
RunParserTests(
int
argc,
char
**argv);
5
int
RunStatementParserTests(
int
argc,
char
**argv);
6
int
RunDecoderTests(
int
argc,
char
**argv);
7
int
RunCoverageTests(
int
argc,
char
**argv);
8
9
int
RunLifetimeTests(
int
argc,
char
**argv);
10
11
int
RunValidationTests(
int
argc,
char
**argv);
12
13
int
RunPipelineTests(
int
argc,
char
**argv);
14
15
int
main
(
int
argc,
char
**argv) {
16
QCoreApplication application(argc, argv);
17
const
int
parserResult = RunParserTests(argc, argv);
18
const
int
statementResult = RunStatementParserTests(argc, argv);
19
const
int
decoderResult = RunDecoderTests(argc, argv);
20
const
int
coverageResult = RunCoverageTests(argc, argv);
21
const
int
lifetimeResult = RunLifetimeTests(argc, argv);
22
const
int
validationResult = RunValidationTests(argc, argv);
23
const
int
pipelineResult = RunPipelineTests(argc, argv);
24
return
statementResult | pipelineResult | validationResult | parserResult | decoderResult | coverageResult | lifetimeResult;
25
}
main
int main(int argc, char *argv[])
Parse a DBC file and demonstrate metadata lookup and CAN decoding.
Definition
examples/main.cpp:101
tests
main.cpp
Generated by
1.9.8