Skip to content

Commit aa9df49

Browse files
committed
test: add differential parity probe against cpal reference
1 parent 475ce56 commit aa9df49

File tree

9 files changed

+1629
-1
lines changed

9 files changed

+1629
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
timeout-minutes: 20
1717
steps:
1818
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
1920
- name: Install MoonBit
2021
shell: bash
2122
run: |
@@ -56,6 +57,8 @@ jobs:
5657
run: moon test --target native
5758
- name: Enumerate hosts/devices (non-audio)
5859
run: moon run --target native cmd/enumerate -q
60+
- name: Run differential parity probe
61+
run: node ci/parity/check.js
5962
- name: Run ALSA smoke (real I/O)
6063
run: moon run --target native cmd/alsa_stream_smoke -q
6164
- name: Run JACK smoke (dummy server)
@@ -67,6 +70,7 @@ jobs:
6770
timeout-minutes: 20
6871
steps:
6972
- uses: actions/checkout@v4
73+
- uses: dtolnay/rust-toolchain@stable
7074
- name: Install MoonBit
7175
shell: bash
7276
run: |
@@ -85,6 +89,8 @@ jobs:
8589
run: moon test --target native
8690
- name: Enumerate hosts/devices (non-audio)
8791
run: moon run --target native cmd/enumerate -q
92+
- name: Run differential parity probe
93+
run: node ci/parity/check.js
8894
- name: Run CoreAudio smoke (real I/O)
8995
run: moon run --target native cmd/macos_stream_smoke -q
9096

@@ -94,6 +100,7 @@ jobs:
94100
timeout-minutes: 25
95101
steps:
96102
- uses: actions/checkout@v4
103+
- uses: dtolnay/rust-toolchain@stable
97104
- name: Install MoonBit
98105
shell: pwsh
99106
run: |
@@ -134,6 +141,9 @@ jobs:
134141
- name: Enumerate hosts/devices (non-audio)
135142
shell: pwsh
136143
run: moon run --target native cmd/enumerate -q
144+
- name: Run differential parity probe
145+
shell: pwsh
146+
run: node ci/parity/check.js
137147
- name: Run WASAPI smoke (real I/O)
138148
shell: pwsh
139149
run: moon run --target native cmd/wasapi_stream_smoke -q

build.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if (platform === 'darwin') {
2525
'spec',
2626
'traits',
2727
'cmd/enumerate',
28+
'cmd/parity_probe',
2829
'cmd/macos_smoke',
2930
'cmd/macos_stream_smoke',
3031
].forEach((path) => {
@@ -50,6 +51,10 @@ if (platform === 'darwin') {
5051
link_flags: '-pthread',
5152
link_libs: ['asound', 'jack'],
5253
});
54+
addLinkConfig('cmd/parity_probe', {
55+
link_flags: '-pthread',
56+
link_libs: ['asound', 'jack'],
57+
});
5358
addLinkConfig('cmd/alsa_stream_smoke', {
5459
link_flags: '-pthread',
5560
link_libs: ['asound'],
@@ -60,7 +65,7 @@ if (platform === 'darwin') {
6065
});
6166
} else if (platform === 'win32') {
6267
const winLibs = ['ole32', 'uuid', 'mmdevapi', 'avrt'];
63-
['wasapi', 'platform', 'spec', 'traits', 'cmd/enumerate', 'cmd/wasapi_stream_smoke'].forEach(
68+
['wasapi', 'platform', 'spec', 'traits', 'cmd/enumerate', 'cmd/parity_probe', 'cmd/wasapi_stream_smoke'].forEach(
6469
(path) => {
6570
addLinkConfig(path, { link_libs: winLibs });
6671
},

0 commit comments

Comments
 (0)