Commit graph

330 commits

Author SHA1 Message Date
Deng Zhengrong
c02214dac5 tests: modify sig2str-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
f4dd422c75 tests: modify sigbus-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
034807d6d3 tests: modify interpol-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
23fac14278 tests: modify smoother-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
ca5ea07c42 tests: modify sync-playback to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
eb15d0c5e2 tests: modify extended-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
a74795f9e3 tests: modify hook-list-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
ef5cf81ff8 tests: modify memblockq-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
d10009fc97 tests: modify proplist-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
67df8223b0 tests: modify memblock-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
2b7fb50935 tests: modify connect-stress to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
f270fead58 tests: modify queue-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
5f8c22e6f1 tests: modify cpulimit-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
dbf176acbd tests: modify channelmap-tets to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
d746225b98 tests: modify asyncq-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
8628990365 tests: modify asyncmsgq-test to new 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
1569601864 tests: modify alsa-time-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
4d5c85cfa2 tests: modify thread-mainloop-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
ca104d3467 tests: modify thread-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
a5b438f825 tests: modify get-binary-name-test to use 'check' framework 2012-08-20 07:05:59 +05:30
Deng Zhengrong
8efef1e097 tests: modify format-test to use 'check' framework 2012-08-20 07:05:58 +05:30
Deng Zhengrong
5f2a25b252 tests: modify usergroup-test to use 'check' test framework 2012-08-20 07:05:58 +05:30
Deng Zhengrong
3db18c27d2 tests: modify volume_test to use new 'check' framework 2012-08-20 07:05:58 +05:30
Deng Zhengrong
84ffc41bfb tests: enable to test standalone pulseaudio daemon
With this fix, `check-daemon` doesn't need a system-wide running pulseaudio
anymore.

The method to use is to invoke `make check-daemon` under `src/` and it just
works! :)
2012-08-04 08:28:48 +02:00
Arun Raghavan
d53f16b6a2 tests: Make cpu-test less verbose 2012-08-04 08:23:35 +02:00
Arun Raghavan
b6f2ccf194 tests: Factor out Orc test code into cpu-test
Reorganises all the svolume core test code in cpu-test since it's the
same across MMX/SSE/etc.
2012-08-04 08:23:35 +02:00
Deng Zhengrong
c2f7987f09 tests: modify strlist-test to use new 'check' framework 2012-08-04 08:23:34 +02:00
Deng Zhengrong
27f6065a3c tests: modify utf8-test to use new 'check' test framework 2012-08-04 08:23:34 +02:00
Deng Zhengrong
11d2bf787f tests: modify mainloop-test to use new 'check' framework 2012-08-04 08:23:34 +02:00
Deng Zhengrong
c8cd89a7cb tests: add cpu test
It tests only x86 architecture right now.
2012-08-04 08:23:34 +02:00
Deng Zhengrong
6e33eb0073 tests: modify mix-test to use new 'check' test framework 2012-08-04 08:23:34 +02:00
Ismo Puustinen
f6e4bfbbc5 ladspa: Added a python script for testing.
The python script uses the ladspa D-Bus interface for IPC testing.
2012-06-28 15:05:31 +03:00
Arti Trivedi Bora
41ee562140 tests: use pa_streq instead of strcmp 2012-06-09 16:22:39 +03:00
Lennart Poettering
08d4f8e2c3 build-sys: readd stub makefiles to subdirectories to make building with emacs easier 2012-05-15 14:17:58 +02:00
Arun Raghavan
8baf8e90c2 format: Add API to query a property's type
Since a given property can be single-valued, an array or (in the case of
ints) a range, clients need an API to figure out what type of value a
property holds. This adds such an API. The actual property type
enumeration is kept in the PA_PROP_* namespace and not the
PA_FORMAT_INFO* namespace so that it can later be reused for properties
generically if required.
2012-03-05 20:00:31 +05:30
Arun Raghavan
59af940dd5 format: Add more property getters
This adds integer range/array and string array property getters to the
pa_format_info API. Corresponding tests added as well to ensure the code
is valgrind-clean.

The corresponding functions are added to map-file manually for now.
2012-03-05 20:00:31 +05:30
Peter Meerwald
b351e06817 fix the ever-popular 'the the' typo
some are comments, some are user-visible doxygen text and documentation
2012-01-28 17:51:59 +02:00
Maarten Bosmans
6450ac2e6a Remove pa_prioq priority queue implementation 2012-01-21 20:08:57 +02:00
Peter Meerwald
5a908ae513 tests: Fix resampler-test compilation without NLS support 2011-12-14 21:55:17 +05:30
Maarten Bosmans
cbb3a8a61c Use simple free function in pa_queue_free 2011-11-27 15:42:52 +00:00
Maarten Bosmans
df5483f614 Remove vector.h and vector-test
This code was never used and vectorization is handled by Orc anyway.
2011-11-14 11:08:04 +05:30
Maarten Bosmans
07dd717bc0 tests: Rename voltest to volume-test 2011-11-02 19:26:23 +05:30
Maarten Bosmans
681aaf7a9a tests: More useful output of make check
Instead of spilling thousands of lines of output, make check now runs the
test-suite in about 100 lines or so.  If running under make check, the output of
tests is reduced. The MAKE_CHECK environment variable is used for this, so that
when running the test manually, the full output is still shown.  Furthermore,
pa_log is used consistently instead of printf, so that all test output goes to
stderr by default.  Colored output from make check goes to stdout.
2011-11-02 19:26:23 +05:30
Maarten Bosmans
6be5515e6a tests: Make sure tests assert on failures and return error status
When a test program exits with a nonzero return value (or an assert is hit),
the test is regarded as a FAIL.
This makes `make check` a little more useful.
2011-11-02 19:26:23 +05:30
Maarten Bosmans
c2b5a8e694 tests: refactor ipacl-test
Common test code is moved to a separate function.
2011-11-02 19:26:23 +05:30
Maarten Bosmans
89f00f3e4c tests: Fix calculation of memblock size in resampler-test
And remove useless volume scaling.
2011-10-12 11:11:06 +05:30
Tanu Kaskinen
666261ece8 memblockq: Improve debuggability by storing a name and a sample spec.
These are not used for anything at this point, but this
makes it easy to add ad-hoc debug prints that show the
memblockq name and to convert between bytes and usecs.
2011-10-01 13:25:16 +01:00
Colin Guthrie
3542112888 modargs: Ensure modargs can be accessed in their raw form.
When dealing with proplists passed as modargs, we need the unescaped form
in order to properly deal with quotes (ticks + double quotes). As the previous
code always called pa_unescape() before adding it into the modarg hashmap, this
was impossible.

This modification simply stores two proplists. If the unescaped value
is different from the raw value, we also keep the raw form.

When parsing proplist arguments, we use this raw form and do the unescaping
ourselves when processing it.

This changes the current behaviour which required you to double escape
proplists arguments. This double escape mechanism did allow you to mix
and match what types of quotes you used to delimit the individial
proplist values, but it made the actual data much harder to pass in.

This approach has the drawback that you cannot mix and match the quotes
you use, but this is a very minor issue and IMO pales in comparison to
the general clarity gained.

See the discussion on the mailing list for more background:
 http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-September/011220.html
2011-09-09 19:50:49 +01:00
Maarten Bosmans
9133c6c935 Make gcc --std=c99 happy
We're now more or less C99 compliant
2011-09-03 12:17:28 +02:00
Maarten Bosmans
c5dca7cf2b More spelling fixes 2011-08-25 11:27:47 +01:00