Skip to content

Commit 2c41e72

Browse files
committed
Add Start-Tests script
1 parent cc86956 commit 2c41e72

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

ps1/Start-Tests.ps1

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Set platform to x64 or ARM64 based on the actual build system platform
2+
$Platform = $env:PROCESSOR_ARCHITECTURE
3+
4+
Write-Output "Building sqlite3."
5+
& "$MsbuildPath" /verbosity:quiet /t:build /p:Configuration=Debug /p:Platform=$Platform src\SqlNotebookDb\SqlNotebookDb.vcxproj
6+
if ($LastExitCode -ne 0) {
7+
throw "Failed to build sqlite3."
8+
}
9+
10+
Write-Output "Building crypto."
11+
& "$MsbuildPath" /verbosity:quiet /t:build /p:Configuration=Debug /p:Platform=$Platform src\crypto\crypto.vcxproj
12+
if ($LastExitCode -ne 0) {
13+
throw "Failed to build crypto."
14+
}
15+
16+
Write-Output "Building fuzzy."
17+
& "$MsbuildPath" /verbosity:quiet /t:build /p:Configuration=Debug /p:Platform=$Platform src\fuzzy\fuzzy.vcxproj
18+
if ($LastExitCode -ne 0) {
19+
throw "Failed to build fuzzy."
20+
}
21+
22+
Write-Output "Building stats."
23+
& "$MsbuildPath" /verbosity:quiet /t:build /p:Configuration=Debug /p:Platform=$Platform src\stats\stats.vcxproj
24+
if ($LastExitCode -ne 0) {
25+
throw "Failed to build stats."
26+
}
27+
28+
Write-Output "Running tests."
29+
dotnet test src/Tests/ /p:Configuration=Debug /p:Platform=$Platform

0 commit comments

Comments
 (0)