diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-10-05 23:35:23 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-10-05 23:35:23 +0000 |
| commit | 9c5296bbd4adde01e85b97c43de23149779ae3ad (patch) | |
| tree | 1a52912058683bf352b611affd6413487f8a69e0 /cpp/src/tests/run_header_test.ps1 | |
| parent | 87258f571db29fa78f257281d3cfa1d1bd62a01a (diff) | |
| download | qpid-python-9c5296bbd4adde01e85b97c43de23149779ae3ad.tar.gz | |
Get remaining tests running on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@822091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/run_header_test.ps1')
| -rw-r--r-- | cpp/src/tests/run_header_test.ps1 | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/cpp/src/tests/run_header_test.ps1 b/cpp/src/tests/run_header_test.ps1 index eedac3eaae..df778a05a1 100644 --- a/cpp/src/tests/run_header_test.ps1 +++ b/cpp/src/tests/run_header_test.ps1 @@ -21,19 +21,50 @@ # TODO: this should be expanded to cover a wider set of types and go # in both directions +<<<<<<< .mine $srcdir = Split-Path $myInvocation.InvocationName $PYTHON_DIR = "$srcdir\..\..\..\python" +if (!(Test-Path $PYTHON_DIR -pathType Container)) { + "Skipping header test as python libs not found" + exit 0 +} + +======= +$srcdir = Split-Path $myInvocation.InvocationName +$PYTHON_DIR = "$srcdir\..\..\..\python" +>>>>>>> .r822090 if (Test-Path qpidd.port) { set-item -path env:QPID_PORT -value (get-content -path qpidd.port -totalcount 1) } +<<<<<<< .mine +# Test runs from the tests directory but the test executables are in a +# subdirectory based on the build type. Look around for it before trying +# to start it. +$subs = "Debug","Release","MinSizeRel","RelWithDebInfo" +foreach ($sub in $subs) { + $prog = ".\$sub\header_test.exe" + if (Test-Path $prog) { + break + } +======= if (Test-Path $PYTHON_DIR -pathType Container) { Invoke-Expression "$env:OUTDIR\header_test -p $env:QPID_PORT" $env:PYTHONPATH="$PYTHON_DIR;$env:PYTHONPATH" python "$srcdir/header_test.py" "localhost" "$env:QPID_PORT" exit $LASTEXITCODE +>>>>>>> .r822090 } -else { - "Skipping header test as python libs not found" - exit 0 +if (!(Test-Path $prog)) { + "Cannot locate header_test.exe" + exit 1 } +<<<<<<< .mine + +Invoke-Expression "$prog -p $env:QPID_PORT" | Write-Output +$env:PYTHONPATH="$PYTHON_DIR;$env:PYTHONPATH" +Invoke-Expression "python $srcdir/header_test.py localhost $env:QPID_PORT" | Write-Output +exit $LASTEXITCODE + +======= +>>>>>>> .r822090 |
