Commit Graph

30 Commits

Author SHA1 Message Date
rin
be600c49a8 Argument for AUDIO_WSEEK ioctl is u_long, not int.
Fix false positive for aarch64eb (LP64BE):
AUDIO_WSEEK, failed, Line 4467: n expects 4 but 0
2020-10-13 09:00:17 +00:00
jruoho
55908713e4 Reference PRs consistently. 2020-06-26 07:50:11 +00:00
isaki
e1f09352b2 Fix two tests.
- kqueue_mode_{RDONLY,RDWR}_READ: Fix expected value.
  This is rest of rev1.9.
- AUDIO_SETINFO_params_simul: Fix condition.
  This happens on full-duplex, not bi-directional.
These affect only standalone test, not atf.
2020-05-01 05:45:57 +00:00
isaki
1088ff9364 Add tests for poll(POLLIN) before read().
This affects only standalone test, not atf.
2020-03-26 13:43:10 +00:00
isaki
08c0ee5cd7 Sync with sys/dev/audio/audio.c rev1.65.
> Fix to start recording immediately when open() with READ mode is called.
This affects only standalone test, not atf.
2020-03-26 13:37:44 +00:00
isaki
05b122f3e6 Use exact match to search testname.
This didn't affect test results.
2020-03-25 13:07:04 +00:00
isaki
889e75ac54 Sync with sys/dev/audio/audio.c rev1.62.
> Restore backward compatibility with netbsd-7 audio.
2020-03-04 14:20:44 +00:00
isaki
37e454b408 Re-add -lrumpdev dropped in the previous commit. 2020-03-02 04:25:08 +00:00
christos
0dc8cda9a3 Centralize the base rump libraries into a variable used by all the other
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
2020-03-01 18:08:12 +00:00
isaki
a05df8ab92 Update AUDIO_SETINFO_channels test.
The kernel limits the number of channels that userland apps can set to
the number of channels supported by the hardware or less.
2020-02-22 05:53:19 +00:00
isaki
da6e9a93eb Add tests.
AUDIO_SETINFO_channels
 AUDIO_SETINFO_sample_rate
 AUDIO_SETINFO_sample_rate_0
2020-02-18 12:11:26 +00:00
isaki
27995e7e3a Improve around {audioctl_,}open_multiuser.
- Make multiuser bool and remove newval.
- try_audioctl_open_multiuser() doesn't need multiuser argument.
2020-02-14 13:20:48 +00:00
tnn
8097da4b67 don't use variable 'newval' uninitialized when multiuser mode unchanged 2020-02-13 18:06:26 +00:00
martin
830be2f838 Add sentinel to the testtable[] array. 2020-02-12 07:02:21 +00:00
isaki
e758b536e1 Add ATF tests for audio(4).
91 passed test cases
    0 failed test cases.
    0 expected failed test cases.
    62 skipped test cases.

There are many skipped tests, because the test itself supports full-
duplex, half-duplex and uni-directional devices but pad(4) used in ATF
tests is uni-directional device.
2020-02-11 07:03:16 +00:00
isaki
e0eeaafc81 Rewrite t_pad test.
Previous version compared the pad's output binary passed mulaw-slinear
conversion and frequency conversion with the prepared "good result".
In such case, a test may fail when the implemantation changes.  In fact,
the frequency conversion algorithm was changed in isaki-audio2, so
output waveforms is not completely the same (but that's no problem with
the audio waveforms).
New version uses slinear_le/2ch/44100Hz input data and compares the
output binary with the input data.  pad with no conversions should
output the same binary.
Fix PR kern/54187.
2019-06-20 12:14:46 +00:00
nat
712047004e Revert to previous. Audio passes the test properly again. 2017-01-27 05:14:54 +00:00
nat
baaaeb8681 Update test output to reflect audio changes. 2016-12-11 08:09:29 +00:00
nat
333b297cf7 pad(4) must be open before corresponding audio device is opened.
OK christos@
2016-10-15 07:08:06 +00:00
nat
449e51467a Fix soft volume audio distortion. OK jmcneil@.
Update atf pad expected output.
2016-02-26 13:08:28 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
pgoyette
d3317b816e Actually remove the no-longer-needed Atffiles 2012-12-02 18:40:43 +00:00
pgoyette
f93daef0af Build helper programs as PROGS and not as TESTS_{C,SH}
This enables us to remove custom Atffiles whose only purpose was to avoid
using the helpers as tests.

XXX src/tests/dev/dm/ is not (yet) linked into the build!
2012-12-02 18:39:53 +00:00
pooka
4fec18bfb3 Represent test data as bytes to make it "endian-independent".
from martin
2011-01-24 08:26:23 +00:00
jmmv
decf2b5e0f Adjusts tests after import of atf-0.12:
- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
  unprivileged-user:_atf setting.  This probably deserves a fix somehow
  but I'm not sure at this point.
2010-11-07 17:51:16 +00:00
he
4613532253 There's apparently a circular dependency between -lrump and -lrumpuser.
This poses problems when linking statically, as for sun2.  Add -lrump
also after -lrumpuser, so that this links statically as well.
2010-10-31 13:54:31 +00:00
pooka
327d3aa746 need to update install filename too 2010-08-04 14:43:14 +00:00
pooka
fe16bec2c9 Update test program to deal with uuencoded golden data.
XXX: is it not possible to use a pipeline in atf_check?
2010-08-04 13:49:48 +00:00
pooka
c6145c7409 Actually, some nagging voice in my head tells me that all binary files
in the repo should be uuencoded, so uuencode the golden audio output.
2010-08-04 13:41:03 +00:00
pooka
f0a81636b4 Add test of pad(4): stuff some audio into /dev/audio, read it from
/dev/pad.  Test that we got sensible output by comparing against
a previous audibly good result.

This exercises auconv, audio and pad.
2010-08-04 13:15:15 +00:00