Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
91050cd7
Commit
91050cd7
authored
10 years ago
by
René Kijewski
Browse files
Options
Downloads
Patches
Plain Diff
embunit: fix outputters for msp430
parent
f684aa4b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sys/embunit/CompilerOutputter.c
+1
-1
1 addition, 1 deletion
sys/embunit/CompilerOutputter.c
sys/embunit/TextOutputter.c
+5
-5
5 additions, 5 deletions
sys/embunit/TextOutputter.c
sys/embunit/XMLOutputter.c
+21
-21
21 additions, 21 deletions
sys/embunit/XMLOutputter.c
with
27 additions
and
27 deletions
sys/embunit/CompilerOutputter.c
+
1
−
1
View file @
91050cd7
...
...
@@ -64,7 +64,7 @@ static void CompilerOutputter_printFailure(OutputterRef self,TestRef test,char *
{
(
void
)
self
;
(
void
)
runCount
;
f
printf
(
stdout
,
"%s %d: %s: %s
\n
"
,
file
,
line
,
Test_name
(
test
),
msg
);
printf
(
"%s %d: %s: %s
\n
"
,
file
,
line
,
Test_name
(
test
),
msg
);
}
static
void
CompilerOutputter_printStatistics
(
OutputterRef
self
,
TestResultRef
result
)
...
...
This diff is collapsed.
Click to expand it.
sys/embunit/TextOutputter.c
+
5
−
5
View file @
91050cd7
...
...
@@ -43,7 +43,7 @@ static void TextOutputter_printHeader(OutputterRef self)
static
void
TextOutputter_printStartTest
(
OutputterRef
self
,
TestRef
test
)
{
(
void
)
self
;
f
printf
(
stdout
,
"- %s
\n
"
,
Test_name
(
test
));
printf
(
"- %s
\n
"
,
Test_name
(
test
));
}
static
void
TextOutputter_printEndTest
(
OutputterRef
self
,
TestRef
test
)
...
...
@@ -55,22 +55,22 @@ static void TextOutputter_printEndTest(OutputterRef self,TestRef test)
static
void
TextOutputter_printSuccessful
(
OutputterRef
self
,
TestRef
test
,
int
runCount
)
{
(
void
)
self
;
f
printf
(
stdout
,
"%d) OK %s
\n
"
,
runCount
,
Test_name
(
test
));
printf
(
"%d) OK %s
\n
"
,
runCount
,
Test_name
(
test
));
}
static
void
TextOutputter_printFailure
(
OutputterRef
self
,
TestRef
test
,
char
*
msg
,
int
line
,
char
*
file
,
int
runCount
)
{
(
void
)
self
;
f
printf
(
stdout
,
"%d) NG %s (%s %d) %s
\n
"
,
runCount
,
Test_name
(
test
),
file
,
line
,
msg
);
printf
(
"%d) NG %s (%s %d) %s
\n
"
,
runCount
,
Test_name
(
test
),
file
,
line
,
msg
);
}
static
void
TextOutputter_printStatistics
(
OutputterRef
self
,
TestResultRef
result
)
{
(
void
)
self
;
if
(
result
->
failureCount
)
{
f
printf
(
stdout
,
"
\n
run %d failures %d
\n
"
,
result
->
runCount
,
result
->
failureCount
);
printf
(
"
\n
run %d failures %d
\n
"
,
result
->
runCount
,
result
->
failureCount
);
}
else
{
f
printf
(
stdout
,
"
\n
OK (%d tests)
\n
"
,
result
->
runCount
);
printf
(
"
\n
OK (%d tests)
\n
"
,
result
->
runCount
);
}
}
...
...
This diff is collapsed.
Click to expand it.
sys/embunit/XMLOutputter.c
+
21
−
21
View file @
91050cd7
...
...
@@ -40,55 +40,55 @@ static char *stylesheet_;
static
void
XMLOutputter_printHeader
(
OutputterRef
self
)
{
(
void
)
self
;
f
printf
(
stdout
,
"<?xml version=
\"
1.0
\"
encoding='shift_jis' standalone='yes' ?>
\n
"
);
printf
(
"<?xml version=
\"
1.0
\"
encoding='shift_jis' standalone='yes' ?>
\n
"
);
if
(
stylesheet_
)
f
printf
(
stdout
,
"<?xml-stylesheet type=
\"
text/xsl
\"
href=
\"
%s
\"
?>
\n
"
,
stylesheet_
);
f
printf
(
stdout
,
"<TestRun>
\n
"
);
printf
(
"<?xml-stylesheet type=
\"
text/xsl
\"
href=
\"
%s
\"
?>
\n
"
,
stylesheet_
);
printf
(
"<TestRun>
\n
"
);
}
static
void
XMLOutputter_printStartTest
(
OutputterRef
self
,
TestRef
test
)
{
(
void
)
self
;
f
printf
(
stdout
,
"<%s>
\n
"
,
Test_name
(
test
));
printf
(
"<%s>
\n
"
,
Test_name
(
test
));
}
static
void
XMLOutputter_printEndTest
(
OutputterRef
self
,
TestRef
test
)
{
(
void
)
self
;
f
printf
(
stdout
,
"</%s>
\n
"
,
Test_name
(
test
));
printf
(
"</%s>
\n
"
,
Test_name
(
test
));
}
static
void
XMLOutputter_printSuccessful
(
OutputterRef
self
,
TestRef
test
,
int
runCount
)
{
(
void
)
self
;
f
printf
(
stdout
,
"<Test id=
\"
%d
\"
>
\n
"
,
runCount
);
f
printf
(
stdout
,
"<Name>%s</Name>
\n
"
,
Test_name
(
test
));
f
printf
(
stdout
,
"</Test>
\n
"
);
printf
(
"<Test id=
\"
%d
\"
>
\n
"
,
runCount
);
printf
(
"<Name>%s</Name>
\n
"
,
Test_name
(
test
));
printf
(
"</Test>
\n
"
);
}
static
void
XMLOutputter_printFailure
(
OutputterRef
self
,
TestRef
test
,
char
*
msg
,
int
line
,
char
*
file
,
int
runCount
)
{
(
void
)
self
;
f
printf
(
stdout
,
"<FailedTest id=
\"
%d
\"
>
\n
"
,
runCount
);
f
printf
(
stdout
,
"<Name>%s</Name>
\n
"
,
Test_name
(
test
));
f
printf
(
stdout
,
"<Location>
\n
"
);
f
printf
(
stdout
,
"<File>%s</File>
\n
"
,
file
);
f
printf
(
stdout
,
"<Line>%d</Line>
\n
"
,
line
);
f
printf
(
stdout
,
"</Location>
\n
"
);
f
printf
(
stdout
,
"<Message>%s</Message>
\n
"
,
msg
);
f
printf
(
stdout
,
"</FailedTest>
\n
"
);
printf
(
"<FailedTest id=
\"
%d
\"
>
\n
"
,
runCount
);
printf
(
"<Name>%s</Name>
\n
"
,
Test_name
(
test
));
printf
(
"<Location>
\n
"
);
printf
(
"<File>%s</File>
\n
"
,
file
);
printf
(
"<Line>%d</Line>
\n
"
,
line
);
printf
(
"</Location>
\n
"
);
printf
(
"<Message>%s</Message>
\n
"
,
msg
);
printf
(
"</FailedTest>
\n
"
);
}
static
void
XMLOutputter_printStatistics
(
OutputterRef
self
,
TestResultRef
result
)
{
(
void
)
self
;
f
printf
(
stdout
,
"<Statistics>
\n
"
);
f
printf
(
stdout
,
"<Tests>%d</Tests>
\n
"
,
result
->
runCount
);
printf
(
"<Statistics>
\n
"
);
printf
(
"<Tests>%d</Tests>
\n
"
,
result
->
runCount
);
if
(
result
->
failureCount
)
{
f
printf
(
stdout
,
"<Failures>%d</Failures>
\n
"
,
result
->
failureCount
);
printf
(
"<Failures>%d</Failures>
\n
"
,
result
->
failureCount
);
}
f
printf
(
stdout
,
"</Statistics>
\n
"
);
f
printf
(
stdout
,
"</TestRun>
\n
"
);
printf
(
"</Statistics>
\n
"
);
printf
(
"</TestRun>
\n
"
);
}
static
const
OutputterImplement
XMLOutputterImplement
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment