Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Traud
Opus
Commits
d0d1cf3b
Verified
Commit
d0d1cf3b
authored
8 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
New regression test from Mark's fuzzing test cases
parent
90f20c62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.am
+1
-1
1 addition, 1 deletion
Makefile.am
tests/opus_encode_regressions.c
+962
-0
962 additions, 0 deletions
tests/opus_encode_regressions.c
tests/test_opus_common.h
+2
-0
2 additions, 0 deletions
tests/test_opus_common.h
tests/test_opus_encode.c
+2
-0
2 additions, 0 deletions
tests/test_opus_encode.c
with
967 additions
and
1 deletion
Makefile.am
+
1
−
1
View file @
d0d1cf3b
...
...
@@ -102,7 +102,7 @@ opus_compare_LDADD = $(LIBM)
tests_test_opus_api_SOURCES
=
tests/test_opus_api.c tests/test_opus_common.h
tests_test_opus_api_LDADD
=
libopus.la
$(
NE10_LIBS
)
$(
LIBM
)
tests_test_opus_encode_SOURCES
=
tests/test_opus_encode.c tests/test_opus_common.h
tests_test_opus_encode_SOURCES
=
tests/test_opus_encode.c
tests/opus_encode_regressions.c
tests/test_opus_common.h
tests_test_opus_encode_LDADD
=
libopus.la
$(
NE10_LIBS
)
$(
LIBM
)
tests_test_opus_decode_SOURCES
=
tests/test_opus_decode.c tests/test_opus_common.h
...
...
This diff is collapsed.
Click to expand it.
tests/opus_encode_regressions.c
0 → 100644
+
962
−
0
View file @
d0d1cf3b
This diff is collapsed.
Click to expand it.
tests/test_opus_common.h
+
2
−
0
View file @
d0d1cf3b
...
...
@@ -76,3 +76,5 @@ static OPUS_INLINE void _test_failed(const char *file, int line)
abort
();
}
#define test_failed() _test_failed(__FILE__, __LINE__);
void
regression_test
(
void
);
This diff is collapsed.
Click to expand it.
tests/test_opus_encode.c
+
2
−
0
View file @
d0d1cf3b
...
...
@@ -680,6 +680,8 @@ int main(int _argc, char **_argv)
fprintf
(
stderr
,
"Testing %s encoder. Random seed: %u (%.4X)
\n
"
,
oversion
,
iseed
,
fast_rand
()
%
65535
);
if
(
env_used
)
fprintf
(
stderr
,
" Random seed set from the environment (SEED=%s).
\n
"
,
env_seed
);
regression_test
();
/*Setting TEST_OPUS_NOFUZZ tells the tool not to send garbage data
into the decoders. This is helpful because garbage data
may cause the decoders to clip, which angers CLANG IOC.*/
...
...
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