Skip to content

Commit

Permalink
Initial Checkin (hope I have it all)
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 351 changed files with 27,191 additions and 0 deletions.
51 changes: 51 additions & 0 deletions RunIntegrationTests.ps1
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"
3 changes: 3 additions & 0 deletions StatLight.EULA.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
See:

http://statlight.codeplex.com/license
7 changes: 7 additions & 0 deletions build-Debug-Fast.ps1
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
7 changes: 7 additions & 0 deletions build-Full-Release.ps1
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
Loading

0 comments on commit b117a82

Please sign in to comment.