re-enable smoke test

This commit is contained in:
Andrew Stanton-Nurse 2015-10-29 19:45:55 -07:00
parent cb6bd78d61
commit 1654235d74

View file

@ -76,9 +76,9 @@ chmod a+x $STAGE2_DIR/dotnet-restore
banner "Testing stage2 ..."
export PATH=$STAGE2_DIR:$START_PATH
# rm "$REPOROOT/test/TestApp/project.lock.json"
# dotnet restore "$REPOROOT/test/TestApp" --runtime "$RID"
# dotnet publish "$REPOROOT/test/TestApp" --framework "$TFM" --runtime "$RID" --output "$REPOROOT/artifacts/$RID/smoketest"
rm "$REPOROOT/test/TestApp/project.lock.json"
dotnet restore "$REPOROOT/test/TestApp" --runtime "$RID"
dotnet publish "$REPOROOT/test/TestApp" --framework "$TFM" --runtime "$RID" --output "$REPOROOT/artifacts/$RID/smoketest"
OUTPUT=$($REPOROOT/artifacts/$RID/smoketest/TestApp)
[ "$OUTPUT" == "This is a test app" ] || (error "Smoke test failed!" && exit 1)