voicemeeter/tests/pre-commit.ps1

12 lines
266 B
PowerShell
Raw Normal View History

2022-06-25 01:05:56 +01:00
Function RunTests {
$run_int_tests = "go clean -testcache; go test -v ."
2022-06-25 01:16:48 +01:00
$run_ext_tests = "go clean -testcache; go test -v .\tests\"
2022-06-25 01:05:56 +01:00
2022-06-25 01:16:48 +01:00
Invoke-Expression $run_ext_tests
Invoke-Expression $run_int_tests
2022-06-25 01:05:56 +01:00
}
if ($MyInvocation.InvocationName -ne ".") {
RunTests
}