Build script fixes for running tests on VS2017 machine(s).

This commit is contained in:
sushilraje 2019-01-09 11:25:34 -08:00 коммит произвёл GitHub
Родитель ac517f937b
Коммит b366a08c8d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 37 добавлений и 34 удалений

Просмотреть файл

@ -152,7 +152,7 @@ namespace Microsoft.Azure.IoTSolutions.AsaManager.TelemetryRulesAgent.Models
this.Fields.Add(c.Field);
}
if (rule.Actions != null && rule.Actions.Count > 0)
if (rule.Actions != null && rule.Actions.Count >= 0)
{
this.Actions = rule.Actions;
}

Просмотреть файл

@ -21,10 +21,7 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
compile() {
check_dependency_dotnet
cd $APP_HOME
./scripts/env-vars-check
header "Downloading dependencies..."
dotnet restore
@ -37,10 +34,13 @@ run_tests() {
cd $APP_HOME
header "Running tests..."
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
PROJECTS=$(dotnet sln asa-manager.sln list | grep '\.Test')
for PROJ in $PROJECTS; do
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
PROJ=${PROJ//\\/\/}
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
done
}

Просмотреть файл

@ -34,10 +34,13 @@ run_tests() {
cd $APP_HOME
header "Running tests..."
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
PROJECTS=$(dotnet sln auth.sln list | grep '\.Test')
for PROJ in $PROJECTS; do
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
PROJ=${PROJ//\\/\/}
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
done
}

Просмотреть файл

@ -34,12 +34,12 @@ run_tests() {
cd $APP_HOME
header "Running tests..."
PROJECTS=$(dotnet sln config.sln list | grep '\.Test')
header "Found projects $PROJECTS"
for PROJ in $PROJECTS; do
PROJ_MF=${PROJ//\\/\/}
# Cleaning up special charcters from the array element.
PROJ_MF=$(echo $PROJ_MF | sed 's/[^a-zA-Z\.\/]//g')
dotnet test --configuration $CONFIGURATION $PROJ_MF
PROJ=${PROJ//\\/\/}
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
done
}

Просмотреть файл

@ -22,9 +22,6 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
compile() {
check_dependency_dotnet
cd $APP_HOME
./scripts/env-vars-check
header "Downloading dependencies..."
dotnet restore
@ -37,10 +34,13 @@ run_tests() {
cd $APP_HOME
header "Running tests..."
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
PROJECTS=$(dotnet sln telemetry.sln list | grep '\.Test')
for PROJ in $PROJECTS; do
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
PROJ=${PROJ//\\/\/}
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
done
}

Просмотреть файл

@ -20,9 +20,6 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
compile() {
check_dependency_dotnet
cd $APP_HOME
./scripts/env-vars-check
header "Downloading dependencies..."
dotnet restore
@ -35,10 +32,13 @@ run_tests() {
cd $APP_HOME
header "Running tests..."
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
PROJECTS=$(dotnet sln iothub-manager.sln list | grep '\.Test')
for PROJ in $PROJECTS; do
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
PROJ=${PROJ//\\/\/}
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
done
}

Просмотреть файл

@ -22,9 +22,6 @@ PCS_CACHE="/tmp/azure/iotpcs/.cache"
compile() {
check_dependency_dotnet
cd $APP_HOME
./scripts/env-vars-check
header "Downloading dependencies..."
dotnet restore
@ -37,10 +34,13 @@ run_tests() {
cd $APP_HOME
header "Running tests..."
PROJECTS=$(dotnet sln list | grep 'csproj$' | grep '\.Test')
PROJECTS=$(dotnet sln storage-adapter.sln list | grep '\.Test')
for PROJ in $PROJECTS; do
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
PROJ=${PROJ//\\/\/}
PROJ=$(echo $PROJ | sed 's/[^a-zA-Z\.\/]//g')
echo "-- $PROJ"
dotnet test --configuration $CONFIGURATION $PROJ
done
}