forked from staxmanade/StatLight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Checkin (hope I have it all)
git-svn-id: https://statlight.svn.codeplex.com/svn/trunk@49788 56d0cb2f-6006-4f69-a5a2-94740fb0e260
- Loading branch information
SND\staxmanade_cp
authored and
SND\staxmanade_cp
committed
Dec 2, 2009
0 parents
commit b117a82
Showing
351 changed files
with
27,191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# | ||
# Update-TypeData -prependPath NUnitSpecificationExtensions.ps1xml | ||
# | ||
################## Build Configuration | ||
$build_configuration = 'Release' | ||
|
||
$buildPath = ".\src\build\bin\$build_configuration" | ||
$ErrorActionPreference = "Stop" | ||
################## | ||
|
||
[System.Reflection.Assembly]::LoadFrom("C:\Program Files\NUnit 2.5.2\bin\net-2.0\framework\nunit.framework.dll") | Out-Null | ||
|
||
function Remove-If-Exist { | ||
param($file) | ||
if(Test-Path $file) | ||
{ | ||
Remove-Item $file -Force -ErrorAction SilentlyContinue -Recurse | ||
} | ||
} | ||
|
||
function RunStatLightForVersion { | ||
param([string]$microsoft_Silverlight_Testing_Version_Name) | ||
|
||
$tempFileGuid = ([System.Guid]::NewGuid()) | ||
$scriptFile = ".\temp_statlight-integration-output-$tempFileGuid.ps1" | ||
Remove-If-Exist $scriptFile | ||
|
||
& $buildPath\StatLight.exe "-x=$buildPath\StatLight.Client.For.$microsoft_Silverlight_Testing_Version_Name.Integration.xap" "-v=$microsoft_Silverlight_Testing_Version_Name" "-r=$scriptFile" | ||
|
||
[Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq") | Out-Null | ||
$file = get-item $scriptFile | ||
$doc = [System.Xml.Linq.XDocument]::Load($file) | ||
|
||
$passingTests = $doc.Descendants('test') | where{ $_.Attribute('passed').Value -eq 'true' } | ||
$passingTests.Count.ShouldEqual(3); | ||
|
||
$ignoredTests = @($doc.Descendants('test') | where{ $_.Attribute('passed').Value -eq 'false' } | where { $_.Value.Contains('Ignoring') }) | ||
$ignoredTests.Count.ShouldEqual(1); | ||
|
||
$failedTests = @($doc.Descendants('test') | where{ $_.Attribute('passed').Value -eq 'false' } | where { ! $_.Value.Contains('Ignoring') }) | ||
$failedTests.Count.ShouldEqual(1); | ||
|
||
Remove-If-Exist $scriptFile | ||
|
||
[System.IO.File]::Exists($scriptFile).ShouldBeFalse() | ||
} | ||
|
||
RunStatLightForVersion "December2008" | ||
RunStatLightForVersion "March2009" | ||
RunStatLightForVersion "July2009" | ||
RunStatLightForVersion "October2009" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
See: | ||
|
||
http://statlight.codeplex.com/license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include build-tasks.ps1 | ||
|
||
properties { | ||
$build_configuration = 'Debug' | ||
} | ||
|
||
Task default -depends build-Debug-Fast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include build-tasks.ps1 | ||
|
||
properties { | ||
$build_configuration = 'Release' | ||
} | ||
|
||
Task default -depends build-Full-Release |
Oops, something went wrong.