Skip to content

Commit

Permalink
Add a test to dotnet restore with specific RIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolestandifer3 committed Sep 12, 2019
1 parent 8b5551b commit 548e25c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions restore-with-rid/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "restore-with-rid",
"enabled": true,
"version": "2.1",
"versionSpecific": false,
"type": "bash",
"cleanup": true,
"platformBlacklist":[
]
}
22 changes: 22 additions & 0 deletions restore-with-rid/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/bash

set -euo pipefail
set -x

source /etc/os-release

declare -A archmap
archmap=(
["aarch64"]="arm64"
["amd64"]="x64"
["armv8b"]="x64"
["armv8l"]="x64"
["i686"]="x86"
["i386"]="x86"
["x86_64"]="x64"
)

arch=${archmap["$(uname -m)"]}

dotnet new console --no-restore
dotnet restore -r ${ID}.${VERSION_ID}-${arch}

0 comments on commit 548e25c

Please sign in to comment.