Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
8ae440b8
Commit
8ae440b8
authored
Mar 04, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start work on automated test.
parent
2b6564a7
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
429 additions
and
0 deletions
+429
-0
tests/test_automated/ma_test_automated.c
tests/test_automated/ma_test_automated.c
+34
-0
tests/test_automated/ma_test_automated_data_converter.c
tests/test_automated/ma_test_automated_data_converter.c
+391
-0
tests/test_common/ma_test_common.c
tests/test_common/ma_test_common.c
+4
-0
No files found.
tests/test_automated/ma_test_automated.c
0 → 100644
View file @
8ae440b8
#include "../test_common/ma_test_common.c"
#include "ma_test_automated_data_converter.c"
int
main
(
int
argc
,
char
**
argv
)
{
ma_result
result
;
ma_bool32
hasError
=
MA_FALSE
;
size_t
iTest
;
(
void
)
argc
;
(
void
)
argv
;
result
=
ma_register_test
(
"Data Conversion"
,
test_entry__data_converter
);
if
(
result
!=
MA_SUCCESS
)
{
return
result
;
}
for
(
iTest
=
0
;
iTest
<
g_Tests
.
count
;
iTest
+=
1
)
{
printf
(
"=== BEGIN %s ===
\n
"
,
g_Tests
.
pTests
[
iTest
].
pName
);
result
=
g_Tests
.
pTests
[
iTest
].
onEntry
(
argc
,
argv
);
printf
(
"=== END %s : %s ===
\n
"
,
g_Tests
.
pTests
[
iTest
].
pName
,
(
result
==
0
)
?
"PASSED"
:
"FAILED"
);
if
(
result
!=
0
)
{
hasError
=
MA_TRUE
;
}
}
if
(
hasError
)
{
return
-
1
;
/* Something failed. */
}
else
{
return
0
;
/* Everything passed. */
}
}
\ No newline at end of file
tests/test_automated/ma_test_automated_data_converter.c
0 → 100644
View file @
8ae440b8
This diff is collapsed.
Click to expand it.
tests/test_common/ma_test_common.c
View file @
8ae440b8
...
...
@@ -5,6 +5,10 @@
#define DR_WAV_IMPLEMENTATION
#include "../../extras/dr_wav.h"
/* Make sure we include the Speex resampler so we can test it. */
#define MINIAUDIO_SPEEX_RESAMPLER_IMPLEMENTATION
#include "../../extras/speex_resampler/ma_speex_resampler.h"
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment