summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make it possible to pass in paths to opus_demo and opus_compare.jon_patchesJonathan Lennox2015-09-011-2/+2
| | | | | | | | | | This patch lets you pass paths for opus_demo and opus_compare to the run_vectors.sh script. The motivation for this was for my aarch64 patches (forthcoming), which I've been testing under qemu. I want to run an emulated opus_demo, but a native opus_compare, so the script completes in a reasonable amount of time.
* Fix malloc_hook warning on glibc 2.17 and later.Ralph Giles2014-01-141-1/+1
| | | | | | | | | | | | | | In glib 2.17 the __malloc_ptr define was removed in favour of using void* directly. Our declaration of mhook using this type for the second argument therefore rightly generates a warning on modern systems, since the type is assumed to be an int, which is too narrow to hold a pointer on 64 bit architectures. Since it was only ever a define we could use an #ifndef to define __malloc_ptr ourselves. However we only use it once, so using void* in the signature directly is cleaner. This should cause no problems on older systems where it will match either the void* or the char* (for non __STDC__ code) the define resolved to.
* Put custom_encoder_init decl behind CUSTOM_MODES. More softclip tests.Gregory Maxwell2013-11-241-2/+2
| | | | | This removes an unused definition warning when compiling without custom modes.
* Minor opus_pcm_soft_clip API hardening and tests.Gregory Maxwell2013-11-221-1/+47
|
* Add some multistream resets to the tests.Gregory Maxwell2013-11-221-1/+30
|
* Add copyright header to test_opus_padding.c.Ralph Giles2013-11-211-1/+27
|
* Additional opus_multistream_packet_(un)pad tests.Gregory Maxwell2013-11-191-0/+36
|
* Add opus_packet_(un)pad tests.Gregory Maxwell2013-11-182-3/+63
|
* Fixes SILK surround calibration while fixing other MSVC warningsJean-Marc Valin2013-11-171-1/+1
|
* Add some basic testing for OPUS_{GET|SET}_PREDICTION_DISABLED.Gregory Maxwell2013-11-172-1/+13
|
* Hides OPUS_FRAMESIZE_VARIABLE from the API until it actually worksJean-Marc Valin2013-11-081-1/+1
|
* Replace "inline" with OPUS_INLINE.Gregory Maxwell2013-10-282-5/+5
| | | | | | | | | Newer versions of MSVC are unhappy with the strategy of the build environment redefining "inline" (even though they don't support the actual keyword). Instead we define OPUS_INLINE to the right thing in opus_defines.h. This is the same approach we use for restrict.
* Correct opus_packet_parse code 0 packet tests.Mark Harris2013-10-111-0/+1
|
* Add a couple minor additional decoder tests.Gregory Maxwell2013-06-292-0/+24
|
* Fixes some return without va_end in the api, adds tests.Gregory Maxwell2013-06-291-5/+86
| | | | | Also makes the CTL bad argument handling more consistent to avoid mistakes like that in the future. Also updates the variable duration docs.
* Big squashed commit of Garf's MSVC reorg:Jean-Marc Valin2013-06-276-293/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 77880655f652c54415e4b5f03b5984b951f5267b Author: Timothy B. Terriberry <tterribe@xiph.org> Date: Wed Jun 26 12:23:53 2013 +0200 Fix version.mk parsing in genversion.bat. This was broken by the changes in 0482c82f to make it work with spaces. CMD interprets the quotes to mean the argument to FOR is a string, not a file name. Instead, we expand the path to a short file name. Signed-off-by: Gian-Carlo Pascutto <gcp@sjeng.org> commit 8e97847ecac3a04956747b117fefef14939cbcbe Merge: 0482c82 3c0aa8f Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Wed Jun 26 12:19:41 2013 +0200 Merge branch 'master' into msvc_reorg commit 0482c82fea6dd397a7d2ab50dc6cda4965278fc2 Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Tue May 21 17:59:30 2013 +0200 Make genversion.bat work in paths with spaces. commit 3648ec55b7511119735280fc49bc57c7a3b55d6a Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Tue May 21 17:42:14 2013 +0200 Rework output & intermediate dirs for parallel build support. commit c367a0fcfcbf5551fb65d61365d9b832d7af2b38 Merge: bafb1dd b518b56 Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Tue May 21 14:17:11 2013 +0200 Merge branch 'master' into msvc_reorg Conflicts: win32/VS2010/celt.vcxproj win32/VS2010/opus.vcxproj win32/VS2010/silk_common.vcxproj win32/VS2010/silk_float.vcxproj commit bafb1dda3fcf6785decdfb42a1f934c7fab0c567 Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Mon Mar 11 21:25:28 2013 +0100 Fix two more files to not have the Platform Toolset explicitly set. commit c69c870201fec7461862fe79731a37866a1810f1 Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Mon Mar 11 21:08:00 2013 +0100 Add missing SILK MSVC project files. commit a0d41fb7f97558c8f812d500b9027c77907c37c0 Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Fri Mar 8 15:00:51 2013 +0100 Use the default toolset in the MSVC project files. commit 34aac5b2637ed38c5620f0d876e08db232849933 Author: Gian-Carlo Pascutto <gcp@sjeng.org> Date: Fri Mar 8 14:54:41 2013 +0100 Move the MSVC project files outside the source tree. Bring the project structure more in line with the one in libogg.
* Check if opus_compare is executable in run_vectors.shAurélien Zanelli2013-05-271-0/+5
| | | | | | If opus_compare doesn't exist or isn't executable, tests failed normally which could be misleading. So test for existence and mode to avoid this ambiguity.
* Random complexity in the encoder tests.Gregory Maxwell2013-04-051-2/+6
|
* test_opus_decode: force integer constants unsignedJames Zern2013-03-051-2/+2
| | | | | | | Quiets: warning: this decimal constant is unsigned only in ISO C90 when building with e.g., gcc -m32 -std=gnu90
* Add tests for GET_LAST_PACKET_DURATION.Gregory Maxwell2012-12-051-1/+15
| | | | | Also remove a useless extern that crept into the tests from some optimization driven testcase generation.
* Add missing packet_get_nb_samples test coverage and fix test output.Gregory Maxwell2012-12-051-4/+9
|
* Implements opus_packet_get_nb_samples()Jean-Marc Valin2012-12-041-1/+3
|
* Changes the PLC behaviour and fixes the FEC behaviour on concatenated packetsJean-Marc Valin2012-12-042-11/+11
| | | | | | PLC and FEC now return exactly the number of samples specified for the buffer rather than (usually) returning the size of the last packet. Doc and tests are updated accordingly.
* Remove MSVC incremental linking directives.Ralph Giles2012-12-033-18/+0
| | | | | | | | | This avoids linker errors with VS2010 of the form failure during conversion to COFF: invalid file or corrupt [c:\users\giles\opus\source\opus_demo.vcxproj] The problem does not occur if the project files are updated to build under VS2012.
* Add a regression test for the padding issue.Ralph Giles2012-11-301-0/+67
| | | | | | | | This is a heavily modified version of the demonstration program Jüri Aedla posted to the mailing list. Verified to pass with the current commit, but fail with the tree from two commits ago. http://lists.xiph.org/pipermail/opus/2012-November/001834.html
* Fix line endings on MSVC project files.Ralph Giles2012-11-093-261/+261
| | | | | | | | | | | | These files has unix line endings, while the other project files have dos line endings. I hoped this would fix the link error about corrupt or invalid files with these projects, but it doesn't. Running 'Update project files...' in the VS2012 IDE is a work around, but it just adds a <PlatformToolset> element to each <PropertyGroup> and a line ending at the end of the file.
* Adds missing license headers on some scripts and test filesJean-Marc Valin2012-10-301-0/+33
|
* Fix several issues with multistream argument validation.Gregory Maxwell2012-10-272-94/+138
| | | | | | | | | | | | | | | | | | | | | As reported by Mark Warner opus_multistream_*_create were depending on the behavior of malloc(0) in order to correctly report some kinds of argument errors. Bad arguments could be incorrectly reported as allocation failures. This changes multistream to explicitly check the arguments like the single stream _create functions. The unit tests were enough to catch this on systems where malloc(0) returns NULL but didn't catch it on other systems because the later _init call would catch the bad arguments and trigger the correct error if and only if the malloc didn't return a null pointer. In multistream_encoder_init failures of the internal non-multistream init calls were not being caught and propagated. Decode didn't have this problem. This propagates the errors and adds additional tests (the multistream encoder api is sill under tested) that would have detected this error. Plus add some stronger tests for things like error==NULL for the _create functions that take a pointer for error output.
* Fix MSVC linker warningsJoshua Bowman2012-10-233-0/+3
| | | | | | | | Specify the correct debug runtime libraries for the test and demo executables to prevent mismatch warnings with the default runtime. Signed-off-by: Ralph Giles <giles@mozilla.com>
* Include process.h for _getpid on windows.Ralph Giles2012-10-232-0/+6
| | | | | | | | | | | Previously the test programmes happened to link because _getpid returns an int, which is the default prototype. Instead, include the appropriate header to supply a real declaration, fixing the associated warning. I moved the getpid->_getpid define to the site of the header inclusion to make clear what's going on, rather than have it floating in win32/config.h.
* Fix minor issues reported by scan-buildPhilip Jägenstedt2012-10-111-1/+1
|
* Fix common misspellingsPhilip Jägenstedt2012-09-271-1/+1
| | | | | | I stumbled upon the typo in README.draft, so took the opportunity to grep for common misspellings using List_of_common_misspellings.txt for hunspell.
* Add some more multistream encoder API tests.Gregory Maxwell2012-09-261-0/+10
|
* Additional multistream tests and reject channels<1 in MS API.Gregory Maxwell2012-08-212-11/+106
|
* Avoid an inconsequential memory leak in tests/test_opus_decode.c.Gregory Maxwell2012-08-091-0/+7
| | | | | Match up the exit behavior when the no-fuzz enviroment variable is set.
* Add basic {GET,SET}_LSB_DEPTH API tests.Gregory Maxwell2012-08-081-0/+4
|
* Make MSVC build work in parallel.Gian-Carlo Pascutto2012-07-163-9/+6
| | | | | | | | The (non-default) temporary & output dirs configured in the projects could cause issues when doing compilation on a multiprocessor machine. Cleaned this up a little to use the defaults, which makes that work again and doesn't make the output structure any worse. Also removed debug output for release binaries & a tiny whitespace fix.
* Fix headers by mingw broken by recent win32 changes.Gregory Maxwell2012-07-142-2/+2
|
* Fix MSVC Debug builds, set missing dependencies for tests.Gian-Carlo Pascutto2012-07-133-3/+9
|
* Make tests work on MSVC.Gian-Carlo Pascutto2012-07-128-0/+309
| | | | Add project files for Opus tests, fixup test source for Win32.
* test_opus_api: Fix valgrind expectations broken by last commit.Gregory Maxwell2012-07-111-1/+2
| | | | | | | The last commit changed some of the multistream tests to use a dual-mono setup instead of a single-stereo setup. Some of the accompanying explicit valgrind checks were still setup to look for stereo streams.
* Add OPUS_{GET|SET}_GAIN CTLs for adjusting output gain.Gregory Maxwell2012-07-111-5/+67
| | | | This CTL was requested by Nicolas George for FFmpeg.
* Update headers to cause warnings on unused returns and null args.Gregory Maxwell2012-06-011-1/+1
| | | | | | | | In places where an ignored return or a null-arg is a sure indication of a bug add the GCC warning attributes. The null arg annotation is not enable for Opus itself because it will cause the compiler to optimize out some null checks. I don't trust our callers quite that much.
* Avoid an inconsequential memory leak in tests/test_opus_decode.cGregory Maxwell2012-06-011-0/+1
|
* Avoid an inconsequential memory leak in tests/test_opus_encode.c.Gregory Maxwell2012-06-011-0/+1
|
* int vs opus_int32 consistencyJean-Marc Valin2012-05-181-1/+1
|
* Make it possible for run_vectors.sh to fail on the mono tests.Gregory Maxwell2012-04-301-1/+0
|
* Merge commit '390c89225d'Jean-Marc Valin2012-04-245-10/+10
|\
| * s/FOUNDATION/COPYRIGHT OWNER/ in CELT code and "glue code"Jean-Marc Valin2012-04-204-8/+8
| | | | | | | | Also added 3rd clause to "master" COPYING file
| * Misc changes to address Robert Sparks' commentsJean-Marc Valin2012-04-201-2/+2
| | | | | | | | | | See http://www.ietf.org/mail-archive/web/codec/current/msg02833.html Still more changes to come