forked from eclipse-uprotocol/up-tck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Align UriValidator test with v1.5.8 * Update Python and Java TAs to work with UriValidator * Create skeleton for 1.5.8 version of SocketUTransports in Python and Java (still requires work after this PR) * Update Test Manager port (was causing issues locally, changing it fixed the issue) * Remove some deprecated code from Python and Java Test Agents
- Loading branch information
1 parent
284e214
commit 9fb3354
Showing
18 changed files
with
481 additions
and
702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,7 @@ MANIFEST | |
**/jar_files/** | ||
*.jar | ||
**/.DS_Store | ||
**/target | ||
**/target | ||
**/summary.json | ||
**/up-java/ | ||
**/up-python/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
""" | ||
SPDX-FileCopyrightText: Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
See the NOTICE file(s) distributed with this work for additional | ||
information regarding copyright ownership. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
SPDX-FileType: SOURCE | ||
SPDX-License-Identifier: Apache-2.0 | ||
""" | ||
|
||
import os | ||
import subprocess | ||
import sys | ||
|
||
|
||
def run_command(command): | ||
"""Run a shell command and handle the output.""" | ||
try: | ||
result = subprocess.run( | ||
command, | ||
check=True, | ||
shell=True, | ||
text=True, # , stdout=subprocess.PIPE, stderr=subprocess.PIPE | ||
) | ||
print(result.stdout) | ||
except subprocess.CalledProcessError as e: | ||
print("An error occurred while executing:", command) | ||
print(e.stderr) | ||
sys.exit(1) | ||
|
||
|
||
def main(): | ||
# Define the repository and desired branch or commit | ||
repo_url = "https://github.com/eclipse-uprotocol/up-java.git" | ||
|
||
# Directory to be removed and cloned | ||
repo_dir = "up-java" | ||
|
||
# Clone the repository | ||
run_command(f"git clone {repo_url}") | ||
|
||
# Change directory into the repository | ||
os.chdir(repo_dir) | ||
|
||
run_command("mvn clean install") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.