Address PR feedback.
This commit is contained in:
parent
771b0b1eb1
commit
6046de8efe
3 changed files with 21 additions and 8 deletions
|
@ -32,14 +32,31 @@ done
|
||||||
|
|
||||||
# copy TestProjects folder which is used by the test cases
|
# copy TestProjects folder which is used by the test cases
|
||||||
mkdir -p "$TestBinRoot/TestProjects"
|
mkdir -p "$TestBinRoot/TestProjects"
|
||||||
cp -R $REPOROOT/test/TestProjects/* $TestBinRoot/TestProjects
|
cp -a $REPOROOT/test/TestProjects/* $TestBinRoot/TestProjects
|
||||||
|
|
||||||
|
|
||||||
# set -e will abort if the exit code of this is non-zero
|
|
||||||
pushd "$TestBinRoot"
|
pushd "$TestBinRoot"
|
||||||
|
set +e
|
||||||
|
|
||||||
|
failedTests=()
|
||||||
|
failCount=0
|
||||||
|
|
||||||
for project in ${TestProjects[@]}
|
for project in ${TestProjects[@]}
|
||||||
do
|
do
|
||||||
./corerun "xunit.console.netcore.exe" "$project.dll" -xml "project.xml" -notrait category=failing
|
./corerun "xunit.console.netcore.exe" "$project.dll" -xml "project.xml" -notrait category=failing
|
||||||
|
exitCode=$?
|
||||||
|
failCount+=$exitCode
|
||||||
|
if [ $exitCode -ne 0 ]; then
|
||||||
|
failedTests+=($project)
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
for test in ${failedTests[@]}
|
||||||
|
do
|
||||||
|
error "$test.dll failed. Logs in '$TestBinRoot/$test.xml'"
|
||||||
done
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
set -e
|
||||||
|
|
||||||
|
exit $failCount
|
||||||
|
|
|
@ -27,7 +27,7 @@ namespace Microsoft.DotNet.Tools.Publish.Tests
|
||||||
new object[] { "", RuntimeIdentifier.Current, "", "" },
|
new object[] { "", RuntimeIdentifier.Current, "", "" },
|
||||||
new object[] { "", "", "Release", "" },
|
new object[] { "", "", "Release", "" },
|
||||||
new object[] { "", "", "", "some/dir"},
|
new object[] { "", "", "", "some/dir"},
|
||||||
//new object[] { "", "", "", "\"some/dir/with spaces\"" },
|
//new object[] { "", "", "", "\"some/dir/with spaces\"" }, // issue - https://github.com/dotnet/cli/issues/525
|
||||||
new object[] { "dnxcore50", RuntimeIdentifier.Current, "Debug", "some/dir" },
|
new object[] { "dnxcore50", RuntimeIdentifier.Current, "Debug", "some/dir" },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,8 @@
|
||||||
"version": "1.0.0-*",
|
"version": "1.0.0-*",
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.NETCore.Platforms": "1.0.1-*",
|
"NETStandard.Library": "1.0.0-rc2-23614",
|
||||||
"Microsoft.NETCore.Runtime": "1.0.1-*",
|
|
||||||
"Microsoft.NETCore.TestHost" : "1.0.0-*",
|
"Microsoft.NETCore.TestHost" : "1.0.0-*",
|
||||||
"System.Console": "4.0.0-beta-*",
|
|
||||||
"System.Runtime": "4.0.21-beta-*",
|
|
||||||
"System.AppContext": "4.0.1-beta-*",
|
|
||||||
|
|
||||||
"xunit": "2.1.0",
|
"xunit": "2.1.0",
|
||||||
"xunit.console.netcore": "1.0.2-prerelease-00101",
|
"xunit.console.netcore": "1.0.2-prerelease-00101",
|
||||||
|
|
Loading…
Add table
Reference in a new issue