From: Francesco Chemolli Date: Wed, 1 Apr 2020 21:53:47 +0000 (+0000) Subject: Tests: Support passing a custom config.cache to test builds (#570) X-Git-Tag: SQUID_5_0_2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0697e501a77151e1bea38c28c68766fdd52cbfdc;p=thirdparty%2Fsquid.git Tests: Support passing a custom config.cache to test builds (#570) usage: $ cache_file=/tmp/custom-config.cache ./test-builds.sh \ --aggressively-use-config-cache \ --config-cache-file=somefile.ccache Already bootstrapped, skipping step TESTING: layer-00-default --- diff --git a/test-builds.sh b/test-builds.sh index c9e68ab94a..27defc7551 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -39,18 +39,24 @@ while [ $# -ge 1 ]; do ;; --use-config-cache) #environment variable will be picked up by buildtest.sh - cache_file=/tmp/config.cache.$$ + cache_file=${cache_file:-/tmp/config.cache.$$} export cache_file shift ;; --aggressively-use-config-cache) #environment variable will be picked up by buildtest.sh #note: use ONLY if you know what you're doing - cache_file=/tmp/config.cache + cache_file=${cache_file:-/tmp/config.cache} remove_cache_file="false" export cache_file shift ;; + --config-cache-file) + cache_file="$2" + remove_cache_file="false" + export cache_file + shift 2 + ;; *) break ;;