dotnet-restore fix

add rid to all restores in test

Add Rid to appdep script, fix common

more script fixes!

fixes

script fix

script fix

Fix up the Runtests script

more fixes :)
This commit is contained in:
Bryan 2016-01-29 19:04:18 -08:00 committed by Bryan Thornbury
parent afacc2c0a6
commit 39682cd14b
8 changed files with 23 additions and 23 deletions

View file

@ -25,7 +25,7 @@ popd
## App Deps ## ## App Deps ##
pushd $APPDEPS_PROJECT_DIR pushd $APPDEPS_PROJECT_DIR
dotnet restore --packages $APPDEPS_PROJECT_DIR/packages $DISABLE_PARALLEL dotnet restore --runtime $RID --packages $APPDEPS_PROJECT_DIR/packages $DISABLE_PARALLEL
APPDEP_SDK=$APPDEPS_PROJECT_DIR/packages/toolchain*/*/ APPDEP_SDK=$APPDEPS_PROJECT_DIR/packages/toolchain*/*/
popd popd

View file

@ -40,8 +40,7 @@ source "$COMMONDIR/_configuration.sh"
#TODO this is a workaround for a nuget bug on ubuntu. Remove #TODO this is a workaround for a nuget bug on ubuntu. Remove
export DISABLE_PARALLEL="" export DISABLE_PARALLEL=""
[[ "$RID" =~ "ubuntu" ]] && export DISABLE_PARALLEL="--disable-parallel" && echo "heyheyhey" [[ "$RID" =~ "ubuntu" ]] && export DISABLE_PARALLEL="--disable-parallel"
unset COMMONSOURCE unset COMMONSOURCE
unset COMMONDIR unset COMMONDIR

View file

@ -17,10 +17,10 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
source "$DIR/../common/_common.sh" source "$DIR/../common/_common.sh"
for project in loadTestList() PROJECTS=$(loadTestProjectList)
for project in $PROJECTS
do do
dotnet publish --framework "dnxcore50" --runtime "$Rid" --output "$TestBinRoot" --configuration "$CONFIGURATION" "$REPOROOT/test/$project" dotnet publish --framework "dnxcore50" --runtime "$RID" --output "$TEST_BIN_ROOT" --configuration "$CONFIGURATION" "$REPOROOT/test/$project"
done done
# TODO: Remove this when publish paths change back
cp -a "$TestBinRoot/Debug/dnxcore50/." "$TestBinRoot"

View file

@ -9,4 +9,3 @@ info "Restoring Test Projects"
# Restore packages # Restore packages
& dotnet restore "$RepoRoot\test" -f "$TestPackageDir" & dotnet restore "$RepoRoot\test" -f "$TestPackageDir"

View file

@ -18,4 +18,4 @@ source "$DIR/../common/_common.sh"
header "Restoring Test Packages" header "Restoring Test Packages"
dotnet restore "$REPOROOT/test" -f "$TEST_PACKAGE_DIR" $DISABLE_PARALLEL dotnet restore "$REPOROOT/test" --runtime $RID -f "$TEST_PACKAGE_DIR/debug" $DISABLE_PARALLEL

View file

@ -16,17 +16,17 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
source "$DIR/../common/_common.sh" source "$DIR/../common/_common.sh"
local TestProjects=$(loadTestProjectList) TestProjects=$(loadTestProjectList)
local TestScripts=$(loadTestScriptList) TestScripts=$(loadTestScriptList)
local failedTests=() failedTests=()
local failCount=0 failCount=0
# Copy TestProjects to $TestBinRoot # Copy TestProjects to $TEST_BIN_ROOT
mkdir -p "$TestBinRoot/TestProjects" mkdir -p "$TEST_BIN_ROOT/TestProjects"
cp -a $REPOROOT/test/TestProjects/* $TestBinRoot/TestProjects cp -a $REPOROOT/test/TestProjects/* $TEST_BIN_ROOT/TestProjects
pushd "$TestBinRoot" pushd "$TEST_BIN_ROOT"
set +e set +e
for project in $TestProjects for project in $TestProjects
@ -42,7 +42,8 @@ done
popd popd
for script in $TestScripts for script in $TestScripts
local scriptName=${script}.sh do
scriptName=${script}.sh
"$REPOROOT/scripts/test/${scriptName}" "$REPOROOT/scripts/test/${scriptName}"
exitCode=$? exitCode=$?
@ -54,7 +55,7 @@ done
for test in ${failedTests[@]} for test in ${failedTests[@]}
do do
error "$test failed. Logs in '$TestBinRoot/${test}-testResults.xml'" error "$test failed. Logs in '$TEST_BIN_ROOT/${test}-testResults.xml'"
done done
set -e set -e

View file

@ -17,8 +17,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
source "$DIR/../../common/_common.sh" source "$DIR/../../common/_common.sh"
header "Restoring packages" header "Restoring packages"
dotnet restore "$REPOROOT/test/TestPackages" --quiet $DISABLE_PARALLEL dotnet restore "$REPOROOT/test/TestPackages" --runtime $RID --quiet $DISABLE_PARALLEL
set +e set +e
dotnet restore "$REPOROOT/testapp" $DISABLE_PARALLEL >/dev/null 2>&1 dotnet restore "$REPOROOT/testapp" --runtime $RID $DISABLE_PARALLEL >/dev/null 2>&1
set -e set -e

View file

@ -41,8 +41,9 @@ namespace Microsoft.DotNet.Tools.Restore
if (!args.Any(s => s.Equals("--runtime", StringComparison.OrdinalIgnoreCase))) if (!args.Any(s => s.Equals("--runtime", StringComparison.OrdinalIgnoreCase)))
{ {
args = Enumerable.Concat( args = Enumerable.Concat(
PlatformServices.Default.Runtime.GetOverrideRestoreRuntimeIdentifiers().SelectMany(r => new [] { "--runtime", r }), args,
args).ToArray(); PlatformServices.Default.Runtime.GetOverrideRestoreRuntimeIdentifiers().SelectMany(r => new [] { "--runtime", r })
).ToArray();
} }
app.OnExecute(() => app.OnExecute(() =>