Skip to content

Commit

Permalink
Try with 700D to at least make sure we're on the right track.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Nov 17, 2024
1 parent fc58554 commit 32224e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/cmake-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
test:
runs-on: windows-latest
needs: build
env:
RADIO_TO_COMPUTER_DEVICE: "CABLE Output (VB-Audio Virtual Cable)"
COMPUTER_TO_RADIO_DEVICE: "Speakers (VB-Audio Virtual Cable)"
MICROPHONE_TO_COMPUTER_DEVICE: "Speakers (Scream (WDM)) [Loopback]"
COMPUTER_TO_SPEAKER_DEVICE: "Speakers (Scream (WDM))"
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
Expand Down Expand Up @@ -137,19 +142,19 @@ jobs:
- name: Start Windows Audio Service
run: net start audiosrv

- name: List audio devices
shell: pwsh
run: |
Get-CimInstance win32_sounddevice
#- name: List audio devices
# shell: pwsh
# run: |
# Get-CimInstance win32_sounddevice

#- shell: powershell
# run: Install-Module -Name PShot -AcceptLicense -Force

- name: Test RADE
- name: Test 700D
shell: pwsh
working-directory: ${{github.workspace}}\FreeDV-Install-Location\bin
run: |
cd ${{github.workspace}}\FreeDV-Install-Location\bin
.\TestFreeDVFullDuplex.ps1 -RadioToComputerDevice "CABLE Output (VB-Audio Virtual Cable)" -ComputerToRadioDevice "Speakers (VB-Audio Virtual Cable)" -MicrophoneToComputerDevice "Speakers (Scream (WDM)) [Loopback]" -ComputerToSpeakerDevice "Speakers (Scream (WDM))" -ModeToTest RADE -NumberOfRuns 1
.\TestFreeDVFullDuplex.ps1 -RadioToComputerDevice "$RADIO_TO_COMPUTER_DEVICE" -ComputerToRadioDevice "$COMPUTER_TO_RADIO_DEVICE" -MicrophoneToComputerDevice "$MICROPHONE_TO_COMPUTER_DEVICE" -ComputerToSpeakerDevice "$COMPUTER_TO_SPEAKER_DEVICE" -ModeToTest 700D -NumberOfRuns 1
timeout-minutes: 3
# continue-on-error: true

Expand Down
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void MainApp::UnitTest_()

// Wait 100ms for FreeDV to come to foreground
std::this_thread::sleep_for(100ms);
#if 1

// Select FreeDV mode. Note, 2020 is deprecated so not testable here.
wxRadioButton* modeBtn = nullptr;
if (utFreeDVMode == "RADE")
Expand Down Expand Up @@ -342,7 +342,6 @@ void MainApp::UnitTest_()

// Wait 5 seconds for FreeDV to stop
std::this_thread::sleep_for(5s);
#endif

// Destroy main window to exit application. Must be done in UI thread to avoid problems.
CallAfter([&]() {
Expand Down
2 changes: 1 addition & 1 deletion test/TestFreeDVFullDuplex.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ for (($i = 0); $i -lt $NumberOfRuns; $i++)

Write-Host "Mode: $ModeToTest, Total Runs: $NumberOfRuns, Passed: $passes, Failures: $fails"

if ($fails > 0) {
if ($fails -gt 0) {
throw "Test failed"
}

0 comments on commit 32224e0

Please sign in to comment.