X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/65bb54b1e58cdcfdabbe8cd531cb1af13e3fe115..8be1093039aa9942ec456dff0255c2b0c41f2cce:/scripts/deptest.sh diff --git a/scripts/deptest.sh b/scripts/deptest.sh index 730ca5bd3..953cdbf73 100755 --- a/scripts/deptest.sh +++ b/scripts/deptest.sh @@ -36,6 +36,7 @@ usage() echo "OPTIONS:" echo " --lean Run a lean test. Do not clean the build directory for each" echo " package test." + echo " --force Force a test, even if a success/blacklist stamp is available" echo echo "PACKAGES are packages to test. If not specified, all installed packages" echo "will be tested." @@ -54,12 +55,13 @@ test_package() # $1=pkgname local STAMP_FAILED="$STAMP_DIR_FAILED/$pkg" local STAMP_BLACKLIST="$STAMP_DIR_BLACKLIST/$pkg" rm -f "$STAMP_FAILED" - [ -f "$STAMP_SUCCESS" ] && return + [ -f "$STAMP_SUCCESS" -a $force -eq 0 ] && return + rm -f "$STAMP_SUCCESS" [ -n "$SELECTED" ] || { echo "Package $pkg is not selected" return } - [ -f "$STAMP_BLACKLIST" ] && { + [ -f "$STAMP_BLACKLIST" -a $force -eq 0 ] && { echo "Package $pkg is blacklisted" return } @@ -74,6 +76,7 @@ test_package() # $1=pkgname BUILD_DIR_HOST="$BUILD_DIR_HOST" \ STAGING_DIR="$STAGING_DIR" \ STAGING_DIR_HOST="$STAGING_DIR_HOST" \ + FORCE_HOST_INSTALL=1 \ V=99 >"$LOG_DIR/$(basename $pkg).log" 2>&1 if [ $? -eq 0 ]; then touch "$STAMP_SUCCESS" @@ -86,6 +89,7 @@ test_package() # $1=pkgname # parse commandline options packages= lean_test=0 +force=0 while [ $# -ne 0 ]; do case "$1" in --help|-h) @@ -95,6 +99,9 @@ while [ $# -ne 0 ]; do --lean) lean_test=1 ;; + --force) + force=1 + ;; *) packages="$packages $1" ;;