|
1 | 1 | # Copyright (c) Microsoft Corporation.
|
2 | 2 | # Licensed under the MIT license.
|
3 | 3 |
|
| 4 | +import subprocess |
| 5 | +import time |
4 | 6 | from ci.task.windows import BaseWindowsTask, CheckoutOnWindows, CompileOnWindows, RunOnWindows, CleanupOnWindows
|
5 | 7 | from ci.job.utils import wait_and_report
|
6 | 8 | from ci.job.generic import BaseJob
|
@@ -94,3 +96,25 @@ def __init__(self, config: dict):
|
94 | 96 |
|
95 | 97 | def execute(self) -> bool:
|
96 | 98 | return super().execute()
|
| 99 | + |
| 100 | + |
| 101 | +class IntegrationTestJobOnWindows(BaseWindowsJob): |
| 102 | + def __init__(self, config: dict, name: str): |
| 103 | + super().__init__(config, name) |
| 104 | + |
| 105 | + def execute(self, server_cmd: str) -> bool: |
| 106 | + serverTask: RunOnWindows = RunOnWindows( |
| 107 | + super().server(), super().repository(), server_cmd, super().is_debug(), super().is_sudo(), super().config_path()) |
| 108 | + return super().execute(serverTask) |
| 109 | + |
| 110 | + |
| 111 | +class TcpIntegrationTestJobOnWindows(IntegrationTestJobOnWindows): |
| 112 | + |
| 113 | + def __init__(self, config: dict): |
| 114 | + config["all_pass"] = True |
| 115 | + super().__init__(config, "integration-test") |
| 116 | + self.server_args: str = f"--local-address {super().server_addr()}:12345 --remote-address {super().client_addr()}:23456" |
| 117 | + |
| 118 | + def execute(self) -> bool: |
| 119 | + server_cmd: str = f"test-integration-rust TEST_INTEGRATION=tcp-test LIBOS={super().libos()} ARGS=\'{self.server_args}\'" |
| 120 | + return super().execute(server_cmd) |
0 commit comments