Skip to content

Commit

Permalink
Test peaq without --gst-plugin-load
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Jul 8, 2024
1 parent 1a20b9e commit f0d37cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/runtest-1.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ if [ x$ODG != x-2.007 ]; then
exit 1
fi

ODG=`LC_ALL=C ./peaq --gst-disable-segtrap --gst-debug-level=2 --gst-plugin-load=.libs/libgstpeaq.so \
ODG=`LC_ALL=C ./peaq --gst-disable-segtrap --gst-debug-level=2 \
${srcdir}/../test/stimulus_ref.flac ${srcdir}/../test/stimulus_test.wav \
| grep "Objective Difference Grade:" | cut -d " " -f4`
echo $ODG
if [ x$ODG != x-1.077 ]; then
exit 1
fi
ODG=`LC_ALL=C ./peaq --gst-disable-segtrap --gst-debug-level=2 --gst-plugin-load=.libs/libgstpeaq.so \
ODG=`LC_ALL=C ./peaq --gst-disable-segtrap --gst-debug-level=2 \
${srcdir}/../test/stimulus_test.wav ${srcdir}/../test/stimulus_ref.flac \
| grep "Objective Difference Grade:" | cut -d " " -f4`
echo $ODG
Expand Down
4 changes: 2 additions & 2 deletions vs/runtest-win32.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ if ($ODG -ne -2.007) {
}

$ODG = [convert]::ToDouble(( `
Invoke-Expression ("$PSScriptRoot\win32\Release\peaq.exe --gst-plugin-load=$PSScriptRoot\win32\Release\gstpeaq.dll " + `
Invoke-Expression ("$PSScriptRoot\win32\Release\peaq.exe " + `
"$PSScriptRoot\..\test\stimulus_ref.flac $PSScriptRoot\..\test\stimulus_test.wav") `
| Select-String -Pattern 'Objective Difference Grade: (.*)').Matches.Groups[1].Value)
if ($ODG -ne -1.077) {
throw "$ODG -ne -1.077"
}
$ODG = [convert]::ToDouble(( `
Invoke-Expression ("$PSScriptRoot\win32\Release\peaq.exe --gst-plugin-load=$PSScriptRoot\win32\Release\gstpeaq.dll " + `
Invoke-Expression ("$PSScriptRoot\win32\Release\peaq.exe " + `
"$PSScriptRoot\..\test\stimulus_test.wav $PSScriptRoot\..\test\stimulus_ref.flac ") `
| Select-String -Pattern 'Objective Difference Grade: (.*)').Matches.Groups[1].Value)
if ($ODG -ne -3.096) {
Expand Down
4 changes: 2 additions & 2 deletions vs/runtest-x64.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ if ($ODG -ne -2.007) {
}

$ODG = [convert]::ToDouble(( `
Invoke-Expression ("$PSScriptRoot\x64\Release\peaq.exe --gst-plugin-load=$PSScriptRoot\x64\Release\gstpeaq.dll " + `
Invoke-Expression ("$PSScriptRoot\x64\Release\peaq.exe " + `
"$PSScriptRoot\..\test\stimulus_ref.flac $PSScriptRoot\..\test\stimulus_test.wav") `
| Select-String -Pattern 'Objective Difference Grade: (.*)').Matches.Groups[1].Value)
if ($ODG -ne -1.077) {
throw "$ODG -ne -1.077"
}
$ODG = [convert]::ToDouble(( `
Invoke-Expression ("$PSScriptRoot\x64\Release\peaq.exe --gst-plugin-load=$PSScriptRoot\x64\Release\gstpeaq.dll " + `
Invoke-Expression ("$PSScriptRoot\x64\Release\peaq.exe " + `
"$PSScriptRoot\..\test\stimulus_test.wav $PSScriptRoot\..\test\stimulus_ref.flac ") `
| Select-String -Pattern 'Objective Difference Grade: (.*)').Matches.Groups[1].Value)
if ($ODG -ne -3.096) {
Expand Down

0 comments on commit f0d37cc

Please sign in to comment.