From f61f3e39b9ba88188d84cd59bc7610ac3245ab5c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 16 Oct 2014 23:40:09 -0700 Subject: [PATCH] Run mono tests with --debug --- build.ps1 | 7 ++++++- integration_mono.sh | 6 +++--- tests_mono.sh | 10 +++++----- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/build.ps1 b/build.ps1 index ffd2e343e..102c7bc2c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -176,8 +176,13 @@ Function PackageTests() Copy-Item $outputFolder\*.dll -Destination $testPackageFolder -Force Copy-Item $outputFolder\*.pdb -Destination $testPackageFolder -Force - Copy-Item .\*.sh -Destination $testPackageFolder -Force + + Write-Host Creating MDBs for tests + get-childitem $testPackageFolder -File -Include @("*.exe", "*.dll") -Exclude @("MediaInfo.dll", "sqlite3.dll") -Recurse | foreach ($_) { + Write-Host "Creating .mdb for $_" + & "tools\pdb2mdb\pdb2mdb.exe" $_.fullname + } get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname} diff --git a/integration_mono.sh b/integration_mono.sh index 3acbd40e2..8a3571aba 100644 --- a/integration_mono.sh +++ b/integration_mono.sh @@ -2,6 +2,6 @@ EXCLUDE="-exclude:Windows -include:IntegrationTest" TESTDIR="." NUNIT="$TESTDIR/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe" -mono $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll -mono $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll -mono $NUNIT $EXCLUDE -xml:NzbDrone.Integration.Result.xml $TESTDIR/NzbDrone.Integration.Test.dll \ No newline at end of file +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Integration.Result.xml $TESTDIR/NzbDrone.Integration.Test.dll \ No newline at end of file diff --git a/tests_mono.sh b/tests_mono.sh index 5e4d0bb08..c6c8258d0 100644 --- a/tests_mono.sh +++ b/tests_mono.sh @@ -2,8 +2,8 @@ EXCLUDE="-exclude:Windows,IntegrationTest" TESTDIR="." NUNIT="$TESTDIR/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe" -mono $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll -mono $NUNIT $EXCLUDE -xml:NzbDrone.Common.Result.xml $TESTDIR/NzbDrone.Common.Test.dll -mono $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll -mono $NUNIT $EXCLUDE -xml:NzbDrone.Host.Result.xml $TESTDIR/NzbDrone.Host.Test.dll -mono $NUNIT $EXCLUDE -xml:NzbDrone.Libraries.Result.xml $TESTDIR/NzbDrone.Libraries.Test.dll \ No newline at end of file +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Common.Result.xml $TESTDIR/NzbDrone.Common.Test.dll +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Host.Result.xml $TESTDIR/NzbDrone.Host.Test.dll +mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Libraries.Result.xml $TESTDIR/NzbDrone.Libraries.Test.dll \ No newline at end of file