Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot bd11e7582d Add a test that switches the device while a stream is paused, both manual and automated 2024-08-09 16:39:56 +02:00
Andreas Pehrson b364678807 Add test case for enumerating channel count on an aggregate device's input streams with VPIO
The stream IDs on an aggregate device behave differently than a on a regular
device when creating a VPIO unit. This adds a test case for the specific
case with an aggregate devices.
2024-05-31 17:57:24 +02:00
Andreas Pehrson 0c61ac5dda Add test case for enumerating channel count on input streams with VPIO 2024-05-31 17:57:24 +02:00
Andreas Pehrson 59275c31be Rewrite test_aggregate_get_sub_devices
This commit makes it create an aggregate device so that there is always
one device to test get_sub_devices on.
2024-05-31 17:57:24 +02:00
Andreas Pehrson edfa3b5507 Don't run tests that don't exist 2024-03-18 23:20:24 +01:00
Andreas Pehrson ef2f810e6b Run test_suspend_duplex_stream_by_unplugging_a_nondefault_input_device
test_suspend_duplex_stream_by_unplugging_a_nondefault_input_device has
been around a while but wasn't run because it was marked with #[ignore].
It seems like the intention was that it should run, so this patch
enables it.
2023-11-16 19:22:36 +01:00
Andreas Pehrson db0387fd34 Monitor liveness of explicitly chosen output devices 2023-11-13 15:14:24 +01:00
Chun-Min Chang 21cea9ceb3 Don't switch input when using non-default device
By the comments [1,2] in the BMO 1735201, we should not switch the input
device behind the scenes when users specify what devices they want. That
is, we should not automatically re-initialize the input or duplex stream
when the input device is gone. We will get a device-collection changed
event as well when this happen and Gecko/Firefox will stop the paired
MediaStreamTrack soon in this case.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1735201#c0
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1735201#c11
2022-03-14 09:35:44 -07:00
Chun-Min Chang 73c26d107b Replace FIXIT by FIXME 2022-03-14 09:35:44 -07:00
Chun-Min Chang a7999fb0c7 Add more comments for device tests 2022-03-14 09:35:44 -07:00
Chun-Min Chang d67d4d2b46
Revise prepush when deleting branch (#76)
* Use uppercase for constant variables

* Skip checking when deleting branches

* Disallow to delete main branch

* Unify indent to 4 spaces

* Disallow `git push <remote> :<main-branch>`

* Change Shebang to bash
2020-04-03 10:06:55 -07:00
Chun-Min Chang e5b0f97913
Stop test immediately when error happens (#77) 2020-04-03 09:52:10 -07:00
Paul Adenot ef5f58b382
Run `cargo fmt` and make scripts executable (#62)
* Make scripts executable

* cargo fmt
2020-03-24 07:58:20 -07:00
Chun-Min Chang 6fac4a6235
Isolate device tests (#53)
* Isolate the device-changed tests

Sometimes we need to run the device-changed test quickly, without
running the regular tests. Isolate the device-changed tests can help
programmers to debug the device-related issues without commenting the
scripts in run_tests.sh.

* Respect default RUST_BACKTRACE setting

* Add instructions for device-tests usage

* Add instructions for stream tester usage
2020-02-26 07:57:21 -08:00