From 6362a683559c11c37ad7cc8d7c1a13a72fe0e02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Tue, 25 Aug 2020 13:04:42 +0200 Subject: [PATCH] enh: regtests: add config-win.txt to override tests config --- regtest/common.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regtest/common.bash b/regtest/common.bash index 3013cf3..a3536c8 100644 --- a/regtest/common.bash +++ b/regtest/common.bash @@ -1,4 +1,5 @@ CONFIGFILE="./config.txt" +CONFIGFILE_WIN="./config-win.txt" NEWVER=../dvdisaster SETVERSION="0.80" @@ -94,6 +95,9 @@ function file_exists() function try() { local doit=$(grep "${CODEC_PREFIX}_$2 " $CONFIGFILE) + if echo "$OS" | grep -q Windows && test -e "$CONFIGFILE_WIN" && grep -q "${CODEC_PREFIX}_$2" "$CONFIGFILE_WIN"; then + doit=$(grep "${CODEC_PREFIX}_$2" "$CONFIGFILE_WIN") + fi if test -z "$doit"; then echo "Config for ${CODEC_PREFIX}_$2 missing"