aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.appveyor/test.ps1
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-16 13:40:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-16 13:51:16 +0300
commit5299124671f85e4b4c4e36d27e745f3425cde92f (patch)
treec43ee444dfee45fb6449bf433cd244ff53decdff /.appveyor/test.ps1
parentcmake: add install() rules (diff)
downloadwindows7-drivers-5299124671f85e4b4c4e36d27e745f3425cde92f.tar.gz
windows7-drivers-5299124671f85e4b4c4e36d27e745f3425cde92f.zip
update cmake-common
Diffstat (limited to '')
-rw-r--r--.appveyor/test.ps122
1 files changed, 5 insertions, 17 deletions
diff --git a/.appveyor/test.ps1 b/.appveyor/test.ps1
index 3eeebfc..ece8dbe 100644
--- a/.appveyor/test.ps1
+++ b/.appveyor/test.ps1
@@ -1,5 +1,6 @@
param(
- [string] $BuildDir = $null,
+ [Parameter(Mandatory=$true)]
+ [string] $InstallDir = $null,
[string] $ProjectDir = $null,
[string] $Configuration = $null,
[string] $Platform = $null,
@@ -35,24 +36,11 @@ function Test-AppVeyor {
function Set-AppVeyorDefaults {
$script:ProjectDir = $env:APPVEYOR_BUILD_FOLDER
- $script:BuildDir = 'C:\Projects\build'
$script:Platform = $env:PLATFORM
$script:Configuration = $env:CONFIGURATION
$script:DriverTargetOS = $env:appveyor_driver_target_os
}
-function Add-UtilsPath {
- param(
- [Parameter(Mandatory=$true)]
- [string] $BuildDir,
- [Parameter(Mandatory=$true)]
- [string] $Configuration
- )
-
- $env:PATH = "$BuildDir\service\utils\$Configuration;${env:PATH}"
- $env:PATH = "$BuildDir\wrappers\simple\utils\$Configuration;${env:PATH}"
-}
-
function Get-DriverName {
param(
[Parameter(Mandatory=$true)]
@@ -189,7 +177,7 @@ function Run-ProjectTests {
[Parameter(Mandatory=$true)]
[string] $ProjectDir,
[Parameter(Mandatory=$true)]
- [string] $BuildDir,
+ [string] $InstallDir,
[Parameter(Mandatory=$true)]
[string] $Platform,
[Parameter(Mandatory=$true)]
@@ -198,7 +186,7 @@ function Run-ProjectTests {
[string] $DriverTargetOS
)
- Add-UtilsPath -BuildDir $BuildDir -Configuration $Configuration
+ $env:PATH = "$InstallDir\bin;${env:PATH}"
$drivers = 'minimal', 'simple', 'special\nt_namespace'
@@ -228,7 +216,7 @@ function Run-ProjectTestsAppVeyor {
try {
Run-ProjectTests `
-ProjectDir $script:ProjectDir `
- -BuildDir $script:BuildDir `
+ -InstallDir $script:InstallDir `
-Platform $script:Platform `
-Configuration $script:Configuration `
-DriverTargetOS $script:DriverTargetOS