diff options
| author | thegeorg <[email protected]> | 2023-10-03 11:19:48 +0300 |
|---|---|---|
| committer | thegeorg <[email protected]> | 2023-10-03 11:43:28 +0300 |
| commit | cda0c13f23f6b169fb0a49dc504b40a0aaecea09 (patch) | |
| tree | 26476e92e5af2c856e017afb1df8f8dff42495bf /library/python/testing/yatest_common/ut/test.py | |
| parent | 4854116da9c5e3c95bb8440f2ea997c54b6e1a61 (diff) | |
Move contrib/tools/jdk to build/platform/java/jdk/testing
Diffstat (limited to 'library/python/testing/yatest_common/ut/test.py')
| -rw-r--r-- | library/python/testing/yatest_common/ut/test.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/library/python/testing/yatest_common/ut/test.py b/library/python/testing/yatest_common/ut/test.py new file mode 100644 index 00000000000..bffdf1e3535 --- /dev/null +++ b/library/python/testing/yatest_common/ut/test.py @@ -0,0 +1,17 @@ +import os +import tarfile + +import yatest.common + +import yalibrary.tools + + +def test_jdk_from_package_equals_jdk_tool_from_yaconf_json(): + jdk_path = yatest.common.binary_path(os.path.join('build', 'platform', 'java', 'jdk', 'testing')) + os.makedirs("extracted") + with tarfile.open(os.path.join(jdk_path, "jdk.tar")) as tf: + tf.extractall("extracted") + jdk_tool_path = yalibrary.tools.toolchain_root('java', None, None) + with open(os.path.join("extracted", "release")) as jdk_path_release: + with open(os.path.join(jdk_tool_path, "release")) as jdk_tool_path_release: + assert jdk_path_release.read() == jdk_tool_path_release.read() |
