summaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* win32: Make once-test workMaarten Bosmans2011-06-242-2/+10
| | | | The barrier is not used when pthread is not available.
* Remove unnecessary #includesMaarten Bosmans2011-06-2221-32/+1
|
* stream: Simplify passing of formats in extended APIArun Raghavan2011-06-191-2/+4
| | | | | | Passing a NULL-terminated array of pa_format_info pointers is a bit unwieldy for clients. Instead of this, let's pass in an array of pointers and the number of elements in the array.
* tests: Update extended API testArun Raghavan2011-06-121-3/+3
| | | | | The test wasn't updated after we changed the pa_format_info proplist format.
* tests: Fix resampler-test.Colin Guthrie2011-05-151-4/+3
| | | | | | | | | | This has been broken since c376ac5920fdeb46ca844d9518e22f17adffb635 when run without any arguments. Passing in -v (verbose) caused the test to work fine. I think this oversight is just a thinko in the original work but it obviously broke 'make check' and thus distcheck. Also fix a couple compiler warnings.
* format: Extend properties to handle lists/rangesArun Raghavan2011-05-151-0/+106
| | | | | | | | | | | | | This replaces the simple string used by pa_format_info's proplist with a JSON string (accessed via new API only). This allows us to express lists and ranges more cleanly, and embed type information for future extensibility. We use json-c for JSON parsing. This is a lightweight depdency (32 KB on my system) and avoids the hassle of having to reinvent a JSON parser. Also included is a test which verifies functionality and is valgrind-clean.
* tests: Add a trivial test for the extended APIArun Raghavan2011-05-021-0/+197
| | | | | | This is just sync-playback.c modified to use the extended API. We need something more sophisticated for properly testing the compressed formats, but that is a non-trivial task in itself.
* Make connect-stress test compile for win32Maarten Bosmans2011-04-301-3/+3
|
* test: Make the connect-stress less likely to bail out due to >32 streams.Colin Guthrie2011-04-231-1/+9
| | | | | | | | | | When running two connect-stress tests at the same time the liklihood of >32 streams per sink increases. All it takes is for an event sound to fire to trigger an abort of the test. This leaves just a little bit of wriggle room for a couple external streams. Of course the overall problem is still there but this just makes it slightly less likely without really affecting the test itself.
* tests: improve resampler testMarc-André Lureau2011-04-191-10/+197
|
* interpol-test: remove unused include getopt.hMarc-André Lureau2011-04-191-1/+0
|
* tests: add a connection stress testDaniel Mack2011-04-011-0/+198
| | | | | This test is based on a threaded main loop and was written to hunt an evil race condition.
* Merge remote-tracking branch 'mkbosmans/mingw32-build'Colin Guthrie2011-03-201-4/+1
|\
| * Use pulsecore/arpa-inet.h to make arpa/inet.h functionality availableMaarten Bosmans2011-03-191-4/+1
| | | | | | | | Automatically use replacement function on platforms (win32) where not all arpa/inet.h is available natively.
* | Fix up some double spacesMaarten Bosmans2011-03-182-2/+2
| |
* | Fixup #include directives according to Coding StyleMaarten Bosmans2011-03-111-1/+1
| | | | | | | | | | Use #include "header.h" if functionality of header.h is implemented and #include <header.h> if functionality of header.h is used.
* | Fix up according to Coding StyleMaarten Bosmans2011-03-111-12/+6
| | | | | | | | Only whitespace changes in here
* | Various fixes for build warningsMaarten Bosmans2011-03-022-9/+3
| |
* | Include <time.h> where necessaryMaarten Bosmans2011-03-011-1/+1
| |
* | Revert "Add new subsystem for applying envelopes (such as volume ramps) to ↵Arun Raghavan2011-02-281-243/+0
|/ | | | | | | | | | | | | | | audio signals" This reverts commit 95a98fe6f2002c9dd448b70bb6944541b5616df3. Conflicts: src/Makefile.am src/pulsecore/envelope.c src/pulsecore/envelope.h src/tests/envelope-test.c (part of a patch series removing all ramping code)
* tests/rtstutter: Use pa_rtclockMaarten Bosmans2011-02-171-22/+11
|
* Use pa_* instead of generic functions to improve portabilityMaarten Bosmans2011-02-172-12/+9
|
* Fix dependencies and include necessary headersMaarten Bosmans2011-02-171-0/+1
|
* Apply #ifdefs around functionality not available on win32Maarten Bosmans2011-02-171-3/+7
| | | | And also the reverse: around some win32 specific functionality
* Use <pulsecore/socket.h> instead of <sys/socket.h>Maarten Bosmans2011-02-171-6/+2
| | | | | | | | The check whether POSIX socket.h or WIN32 winsock2.h must be included can be made centrally. The downside is that some functionality of e.g. arpa/inet.h is also implemented in winsock.h, so that some files that don't use socket functions, but do use inet.h functions, must also include pulsecore/socket.h. (as well as arpa/inet.h)
* build: Don't include empty Makefile.am in subdirsMaarten Bosmans2011-01-311-20/+0
|
* build-sys: Replace dummy Makefiles with proper Makefile.am'sColin Guthrie2010-12-052-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | This is needed to better support out of tree builds (including distcheck) and to ensure the necessary folders are created in the build tree on configure and also works around an intl-tools bug (https://bugs.launchpad.net/intltool/+bug/605826) The Makefile.am's used are minimal (and in some cases completely blank). At present they do not include anything interesting with the majority of the real work still done by the monolitic src/Makefile.am It may make sense to start splitting out src/Makefile.am into smaller chunks but this commit makes the minimum changes to address the issues that result from using make distcheck and other out of tree builds. Note: This 'breaks' the ability to type make in e.g. the src/modules folder and have all of PA rebuilt accordingly (this is because the static Makefiles previously present just did a "make -C ..") which was purportedly for use in emacs. But I'm sure there will be a better and more robust way to configure emacs to do your builds properly if this behaviour is still desirable.
* alsa-time-test: make test usable for capture tooWim Taymans2010-09-071-16/+43
| | | | Extend the test to also work for capture devices.
* tests: fix once testLennart Poettering2010-05-081-1/+1
|
* thread: name all threads so that the names appear in /proc/$PID/task/$TID/commLennart Poettering2010-05-075-9/+9
|
* virtual: document how to implement fixed block size filtersLennart Poettering2010-02-251-4/+0
|
* memblockq: implement new call pa_memblockq_peek_fixed_size()Lennart Poettering2010-02-251-12/+32
|
* build-sys: fix check for pthread_setaffinity_np()Lennart Poettering2010-02-211-1/+1
|
* tests: add pa_once_xxx() testLennart Poettering2010-01-131-0/+103
|
* poll() is totally broken on Mac OS XDaniel Mack2009-12-162-3/+3
| | | | | | Even on 10.5.8, poll() does not do the right thing. Haven't checked on newer versions. Hence, wrap all occurences of poll() to pa_poll and emulate that call with select() on OSX. This is totally embarassing.
* stripnul: initialize 'found' bool properly (llvm-clang-analyzer)Lennart Poettering2009-09-081-1/+1
|
* Merge commit 'wtay/optimize'Lennart Poettering2009-08-234-12/+0
|\
| * Get rid of liboilWim Taymans2009-08-204-12/+0
| | | | | | | | | | | | | | Get rid of the liboil dependency and reimplement the liboil functions with an equivalent C implementation. Note that most of these functions are deprecated in liboil and that none of them had any optimisations. We can further specialize our handrolled versions for some extra speedups.
* | core: Add thread-safe group info functions with dynamic buffersTed Percival2009-08-221-0/+161
|/ | | | | | | Provides getgrgid, getgrnam, getpwuid & getpwnam replacements that are thread safe (a la getgrgid_r() and friends) that internally handle allocating big-enough buffers to avoid ERANGE errors on large users or groups.
* voltest: extend test to verify correctness of _multiply() and _divide()Lennart Poettering2009-08-191-1/+35
|
* volume: guarantee dB/linear conversion is reversibleLennart Poettering2009-08-141-0/+36
|
* mix-test: fix test for s24-32 samplesLennart Poettering2009-08-081-33/+41
|
* core-util: replace remaining fixed size destination string functions by ↵Lennart Poettering2009-08-011-2/+23
| | | | | | | | | | _malloc() versions This helps portability to GNU/Hurd. Patch originally from Samuel Thibault but modified. Closes ticket #546
* interpol-test: allow configuration of latencyLennart Poettering2009-07-241-27/+54
|
* Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudioLennart Poettering2009-07-231-0/+4
|\ | | | | | | | | Conflicts: src/daemon/main.c
| * Make the rtstutter tests mostly pointless without CLOCK_REALTIME.Diego Elio 'Flameeyes' Pettenò2009-07-171-0/+4
| | | | | | | | | | | | On the other hand, this actually makes the test build, and test at least that it doesn't abort away, when the CLOCK_REALTIME interface is not present (or when clock_gettime is not found).
* | daemon: before exec'ing ourselves, make sure nobody plays games with ↵Lennart Poettering2009-07-201-2/+4
|/ | | | /proc/self/exe
* Implement mix-test for s24le and s24be sample formats.Diego Elio 'Flameeyes' Pettenò2009-06-291-0/+29
|
* Use static constants to keep the generated sample blocks.Diego Elio 'Flameeyes' Pettenò2009-06-291-46/+20
|
* Ignore IPv6 tests, if IPv6 was built in but the system doesn't have it.Diego Elio 'Flameeyes' Pettenò2009-06-291-2/+4
| | | | | This removes a test failure when an IPv6-enabled PulseAudio is tested on a system where IPv6 is not enabled in kernel.