From 802f992f4e56117fa7bb71a09b85f9ae9cfbf338 Mon Sep 17 00:00:00 2001 From: micsthepick <11528421+micsthepick@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:15:20 +1100 Subject: [PATCH] try again --- test_eel.sh | 14 +++++++++++++- vocalrediso-jamesdsp.eel | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/test_eel.sh b/test_eel.sh index 37d5fbb..923c73f 100755 --- a/test_eel.sh +++ b/test_eel.sh @@ -4,7 +4,19 @@ sed -r -e 's/^(desc|slider[0-9]+):.*|^@(init|slider|block|serialize|sample)//' \ -e 's/\/\/IFTEST|\/\*IFTEST\{\*|\*\}IFTEST\*\///' \ -e 's/\*IFNTEST\*|IFNTEST\{\*|\*\}IFNTEST//' \ vocalrediso-jamesdsp.eel >> vocalrediso.test.eel2 -./WDL/WDL/eel2/loose_eel ./vocalrediso.test.eel2 + +# Run the command, capturing stderr +{ output=$(./WDL/WDL/eel2/loose_eel ./vocalrediso.test.eel2 2>&1 1>&3-); } 3>&1 + +# Check if there is any output in stderr +if [ ! -z "$output" ]; then + # Print the stderr output in red + echo -e "\e[31m$output\e[0m" + # Exit with -1 + exit -1 +else + exit 0 +fi ##//DEBUGPRINT("HI"); ##//IFTEST code_here(); diff --git a/vocalrediso-jamesdsp.eel b/vocalrediso-jamesdsp.eel index 1c08c6d..39100b6 100644 --- a/vocalrediso-jamesdsp.eel +++ b/vocalrediso-jamesdsp.eel @@ -394,10 +394,10 @@ assert_near_equal(200, 0.001, spl1sum, "SAMPLE_1_1_TEST: spl1sum was not as expe //DEBUGPRINT("spl0sum=%g, spl1sum=%g\n", spl0sum, spl1sum); -//DEBUGPRINT("SETUP: fft range is [0, srate/2] dry=100 wet=100\n"); +//DEBUGPRINT("SETUP: fft range is [srate/2, srate] dry=100 wet=100\n"); slider1 = slider2 = 100; -slider5 = 0; -slider6 = srate/2; +slider5 = srate/2; +slider6 = srate; //DEBUGPRINT("PDC_SILENCE_ON_PARTIAL_RANGE_TEST\n"); slider_code(); sum_first_pdc_samples(1, 1);