Finish Refactoring Test Scripts
remove publish todo small fixes small fixes fix packaging test bug Fix script bug script changes fix packaging test NuGet task cancelled workaround script fixes further more script fixes, + workaround tweak use build rather than compile in package command test
This commit is contained in:
parent
51eca0bcba
commit
afacc2c0a6
15 changed files with 33 additions and 36 deletions
6
scripts/test/setup/build-test-prerequisites.sh
Normal file → Executable file
6
scripts/test/setup/build-test-prerequisites.sh
Normal file → Executable file
|
@ -19,7 +19,9 @@ source "$DIR/../../common/_common.sh"
|
|||
|
||||
mkdir -p "$TEST_PACKAGE_DIR"
|
||||
|
||||
for project in loadTestPackageList()
|
||||
PROJECTS=$(loadTestPackageList)
|
||||
|
||||
for project in $PROJECTS
|
||||
do
|
||||
dotnet pack "$REPOROOT/test/TestPackages/$project" --output "$TEST_PACKAGE_DIR"
|
||||
done
|
||||
done
|
||||
|
|
4
scripts/test/setup/restore-test-prerequisites.sh
Normal file → Executable file
4
scripts/test/setup/restore-test-prerequisites.sh
Normal file → Executable file
|
@ -17,8 +17,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|||
source "$DIR/../../common/_common.sh"
|
||||
|
||||
header "Restoring packages"
|
||||
dotnet restore "$REPOROOT/test/TestPackages" --quiet
|
||||
dotnet restore "$REPOROOT/test/TestPackages" --quiet $DISABLE_PARALLEL
|
||||
|
||||
set +e
|
||||
dotnet restore "$REPOROOT/testapp" >/dev/null 2>&1
|
||||
dotnet restore "$REPOROOT/testapp" $DISABLE_PARALLEL >/dev/null 2>&1
|
||||
set -e
|
5
scripts/test/setup/setup-tests.sh
Normal file → Executable file
5
scripts/test/setup/setup-tests.sh
Normal file → Executable file
|
@ -12,11 +12,12 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
|
|||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
||||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
source "$DIR/../../common/_common.sh"
|
||||
|
||||
header "Test Setup: Restoring Prerequisites"
|
||||
"$RepoRoot/scripts/test/restore-test-prerequisites.sh"
|
||||
"$REPOROOT/scripts/test/setup/restore-test-prerequisites.sh"
|
||||
|
||||
header "Test Setup: Building Prerequisites"
|
||||
"$RepoRoot/scripts/test/build-test-prerequisites.sh"
|
||||
"$REPOROOT/scripts/test/setup/build-test-prerequisites.sh"
|
Loading…
Add table
Add a link
Reference in a new issue