summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/run_header_test.ps1
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-10-05 23:35:23 +0000
committerStephen D. Huston <shuston@apache.org>2009-10-05 23:35:23 +0000
commite87bb8426a55f9e4a80fbfda25af759e34e7ce60 (patch)
treeb02780799388718f73606be83696f88ee655d1aa /qpid/cpp/src/tests/run_header_test.ps1
parent0c9823a7caf62395389017a6a6831004edadbc13 (diff)
downloadqpid-python-e87bb8426a55f9e4a80fbfda25af759e34e7ce60.tar.gz
Get remaining tests running on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@822091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/run_header_test.ps1')
-rw-r--r--qpid/cpp/src/tests/run_header_test.ps137
1 files changed, 34 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/run_header_test.ps1 b/qpid/cpp/src/tests/run_header_test.ps1
index eedac3eaae..df778a05a1 100644
--- a/qpid/cpp/src/tests/run_header_test.ps1
+++ b/qpid/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