Skip to content

Commit f61f3e3

Browse files
committed
Run mono tests with --debug
1 parent 0301636 commit f61f3e3

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

build.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,13 @@ Function PackageTests()
176176

177177
Copy-Item $outputFolder\*.dll -Destination $testPackageFolder -Force
178178
Copy-Item $outputFolder\*.pdb -Destination $testPackageFolder -Force
179-
180179
Copy-Item .\*.sh -Destination $testPackageFolder -Force
180+
181+
Write-Host Creating MDBs for tests
182+
get-childitem $testPackageFolder -File -Include @("*.exe", "*.dll") -Exclude @("MediaInfo.dll", "sqlite3.dll") -Recurse | foreach ($_) {
183+
Write-Host "Creating .mdb for $_"
184+
& "tools\pdb2mdb\pdb2mdb.exe" $_.fullname
185+
}
181186

182187
get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname}
183188

integration_mono.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ EXCLUDE="-exclude:Windows -include:IntegrationTest"
22
TESTDIR="."
33
NUNIT="$TESTDIR/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe"
44

5-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll
6-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll
7-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Integration.Result.xml $TESTDIR/NzbDrone.Integration.Test.dll
5+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll
6+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll
7+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Integration.Result.xml $TESTDIR/NzbDrone.Integration.Test.dll

tests_mono.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ EXCLUDE="-exclude:Windows,IntegrationTest"
22
TESTDIR="."
33
NUNIT="$TESTDIR/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe"
44

5-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll
6-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Common.Result.xml $TESTDIR/NzbDrone.Common.Test.dll
7-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll
8-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Host.Result.xml $TESTDIR/NzbDrone.Host.Test.dll
9-
mono $NUNIT $EXCLUDE -xml:NzbDrone.Libraries.Result.xml $TESTDIR/NzbDrone.Libraries.Test.dll
5+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Api.Result.xml $TESTDIR/NzbDrone.Api.Test.dll
6+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Common.Result.xml $TESTDIR/NzbDrone.Common.Test.dll
7+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Core.Result.xml $TESTDIR/NzbDrone.Core.Test.dll
8+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Host.Result.xml $TESTDIR/NzbDrone.Host.Test.dll
9+
mono --debug $NUNIT $EXCLUDE -xml:NzbDrone.Libraries.Result.xml $TESTDIR/NzbDrone.Libraries.Test.dll

0 commit comments

Comments
 (0)