aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-01-14Fix malloc_hook warning on glibc 2.17 and later.Ralph Giles
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.
2013-11-24Put custom_encoder_init decl behind CUSTOM_MODES. More softclip tests.Gregory Maxwell
This removes an unused definition warning when compiling without custom modes.
2013-11-22Minor opus_pcm_soft_clip API hardening and tests.Gregory Maxwell
2013-11-22Add some multistream resets to the tests.Gregory Maxwell
2013-11-21Add copyright header to test_opus_padding.c.Ralph Giles
2013-11-19Additional opus_multistream_packet_(un)pad tests.Gregory Maxwell
2013-11-18Add opus_packet_(un)pad tests.Gregory Maxwell
2013-11-17Fixes SILK surround calibration while fixing other MSVC warningsJean-Marc Valin
2013-11-17Add some basic testing for OPUS_{GET|SET}_PREDICTION_DISABLED.Gregory Maxwell
2013-11-08Hides OPUS_FRAMESIZE_VARIABLE from the API until it actually worksJean-Marc Valin
2013-10-28Replace "inline" with OPUS_INLINE.Gregory Maxwell
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.
2013-10-11Correct opus_packet_parse code 0 packet tests.Mark Harris
2013-06-29Add a couple minor additional decoder tests.Gregory Maxwell
2013-06-29Fixes some return without va_end in the api, adds tests.Gregory Maxwell
Also makes the CTL bad argument handling more consistent to avoid mistakes like that in the future. Also updates the variable duration docs.
2013-06-27Big squashed commit of Garf's MSVC reorg:Jean-Marc Valin
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.
2013-05-27Check if opus_compare is executable in run_vectors.shAurélien Zanelli
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.
2013-04-05Random complexity in the encoder tests.Gregory Maxwell
2013-03-05test_opus_decode: force integer constants unsignedJames Zern
Quiets: warning: this decimal constant is unsigned only in ISO C90 when building with e.g., gcc -m32 -std=gnu90
2012-12-05Add tests for GET_LAST_PACKET_DURATION.Gregory Maxwell
Also remove a useless extern that crept into the tests from some optimization driven testcase generation.
2012-12-05Add missing packet_get_nb_samples test coverage and fix test output.Gregory Maxwell
2012-12-04Implements opus_packet_get_nb_samples()Jean-Marc Valin
2012-12-04Changes the PLC behaviour and fixes the FEC behaviour on concatenated packetsJean-Marc Valin
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.
2012-12-03Remove MSVC incremental linking directives.Ralph Giles
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.
2012-11-30Add a regression test for the padding issue.Ralph Giles
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
2012-11-09Fix line endings on MSVC project files.Ralph Giles
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.
2012-10-30Adds missing license headers on some scripts and test filesJean-Marc Valin
2012-10-27Fix several issues with multistream argument validation.Gregory Maxwell
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.
2012-10-23Fix MSVC linker warningsJoshua Bowman
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>
2012-10-23Include process.h for _getpid on windows.Ralph Giles
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.
2012-10-11Fix minor issues reported by scan-buildPhilip Jägenstedt
2012-09-27Fix common misspellingsPhilip Jägenstedt
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.
2012-09-26Add some more multistream encoder API tests.Gregory Maxwell
2012-08-21Additional multistream tests and reject channels<1 in MS API.Gregory Maxwell
2012-08-09Avoid an inconsequential memory leak in tests/test_opus_decode.c.Gregory Maxwell
Match up the exit behavior when the no-fuzz enviroment variable is set.
2012-08-08Add basic {GET,SET}_LSB_DEPTH API tests.Gregory Maxwell
2012-07-16Make MSVC build work in parallel.Gian-Carlo Pascutto
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.
2012-07-14Fix headers by mingw broken by recent win32 changes.Gregory Maxwell
2012-07-13Fix MSVC Debug builds, set missing dependencies for tests.Gian-Carlo Pascutto
2012-07-12Make tests work on MSVC.Gian-Carlo Pascutto
Add project files for Opus tests, fixup test source for Win32.
2012-07-11test_opus_api: Fix valgrind expectations broken by last commit.Gregory Maxwell
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.
2012-07-11Add OPUS_{GET|SET}_GAIN CTLs for adjusting output gain.Gregory Maxwell
This CTL was requested by Nicolas George for FFmpeg.
2012-06-01Update headers to cause warnings on unused returns and null args.Gregory Maxwell
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.
2012-06-01 Avoid an inconsequential memory leak in tests/test_opus_decode.cGregory Maxwell
2012-06-01Avoid an inconsequential memory leak in tests/test_opus_encode.c.Gregory Maxwell
2012-05-18int vs opus_int32 consistencyJean-Marc Valin
2012-04-30Make it possible for run_vectors.sh to fail on the mono tests.Gregory Maxwell
2012-04-24Merge commit '390c89225d'Jean-Marc Valin
2012-04-20s/FOUNDATION/COPYRIGHT OWNER/ in CELT code and "glue code"Jean-Marc Valin
Also added 3rd clause to "master" COPYING file
2012-04-20Misc changes to address Robert Sparks' commentsJean-Marc Valin
See http://www.ietf.org/mail-archive/web/codec/current/msg02833.html Still more changes to come
2012-04-02Remove trailing whitespace.Ralph Giles
Also fixes a minor typo.