diff options
Diffstat (limited to 'cpp/src/tests')
-rw-r--r-- | cpp/src/tests/run_federation_tests.ps1 | 7 | ||||
-rw-r--r-- | cpp/src/tests/run_test.ps1 | 8 |
2 files changed, 6 insertions, 9 deletions
diff --git a/cpp/src/tests/run_federation_tests.ps1 b/cpp/src/tests/run_federation_tests.ps1 index dd0ea2fe5b..087c65296c 100644 --- a/cpp/src/tests/run_federation_tests.ps1 +++ b/cpp/src/tests/run_federation_tests.ps1 @@ -40,7 +40,7 @@ if (!(Test-Path $prog)) { "Cannot locate qpidd.exe" exit 1 } -$cmdline = "$prog --auth=no --no-module-dir --port=0 --log-to-file qpidd.log $args | foreach { set-content qpidd.port `$_ }" +$cmdline = "$prog --auth=no --no-module-dir --no-data-dir --port=0 --ssl-port=0 --log-to-file qpidd.log $args | foreach { set-content qpidd.port `$_ }" $cmdblock = $executioncontext.invokecommand.NewScriptBlock($cmdline) function start_brokers { @@ -70,8 +70,9 @@ trap { &start_brokers "Running federation tests using brokers on ports $env:LOCAL_PORT $env:REMOTE_PORT" -$env:PYTHONPATH=$PYTHON_DIR -python $srcdir/federation.py -v -s $srcdir\..\..\..\specs\amqp.0-10-qpid-errata.xml -b localhost:$env:LOCAL_PORT --remote-port $env:REMOTE_PORT $args +$env:PYTHONPATH="$PYTHON_DIR;$srcdir" +$tests = "*" +Invoke-Expression "python $PYTHON_DIR/qpid-python-test -m federation -b localhost:$env:LOCAL_PORT -Dremote-port=$env:REMOTE_PORT $tests" | Out-Default $RETCODE=$LASTEXITCODE &stop_brokers if ($RETCODE -ne 0) { diff --git a/cpp/src/tests/run_test.ps1 b/cpp/src/tests/run_test.ps1 index 4deb07bf71..ca990bc057 100644 --- a/cpp/src/tests/run_test.ps1 +++ b/cpp/src/tests/run_test.ps1 @@ -30,15 +30,11 @@ $env:BOOST_TEST_SHOW_PROGRESS = "yes" # one level up. $prog = $args[0] $is_script = $prog -match ".ps1$" -if (Test-Path $prog) { - $env:QPID_LIB_DIR = ".." - $env:PATH += ";.." -} -else { +if (!$is_script) { . $srcdir\find_prog.ps1 $prog $args[0] = $prog $env:QPID_LIB_DIR = "..\$sub" - $env:PATH += "$dir\$sub;..\$sub" + $env:PATH += ";$dir\$sub;..\$sub" } # If qpidd.port exists and is not empty run test with QPID_PORT set. |