diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-07-29 14:47:50 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-08-05 14:41:31 +0200 |
commit | baa073d46cae264183f576c0acae8df57f42e759 (patch) | |
tree | a6cc74f0ddf0dbe319b13cfb0b0edc400534a2f2 /test/buildtool/common | |
parent | 406ee1b8c0f6c2ca3e3cd1281eee6dd59e473a68 (diff) | |
download | justbuild-baa073d46cae264183f576c0acae8df57f42e759.tar.gz |
InstallCas: Moved install-cas code to separate library
Diffstat (limited to 'test/buildtool/common')
-rw-r--r-- | test/buildtool/common/TARGETS | 12 | ||||
-rw-r--r-- | test/buildtool/common/common.test.cpp | 42 |
2 files changed, 0 insertions, 54 deletions
diff --git a/test/buildtool/common/TARGETS b/test/buildtool/common/TARGETS index c52301b4..8890b8b8 100644 --- a/test/buildtool/common/TARGETS +++ b/test/buildtool/common/TARGETS @@ -33,17 +33,6 @@ ] , "stage": ["test", "buildtool", "common"] } -, "common": - { "type": ["@", "rules", "CC/test", "test"] - , "name": ["common"] - , "srcs": ["common.test.cpp"] - , "deps": - [ ["@", "catch2", "", "catch2"] - , ["test", "catch-main"] - , ["src/buildtool/common", "common"] - ] - , "stage": ["test", "buildtool", "common"] - } , "repository_config": { "type": ["@", "rules", "CC/test", "test"] , "name": ["repository_config"] @@ -63,7 +52,6 @@ [ "action_description" , "artifact_description" , "artifact_factory" - , "common" , "repository_config" ] } diff --git a/test/buildtool/common/common.test.cpp b/test/buildtool/common/common.test.cpp deleted file mode 100644 index ea5af597..00000000 --- a/test/buildtool/common/common.test.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "catch2/catch.hpp" -#include "src/buildtool/common/artifact.hpp" - -TEST_CASE("ObjectInfo::LiberalFromString", "[artifcat]") { - auto expected = *Artifact::ObjectInfo::FromString( - "[5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:f]"); - auto expected_as_tree = *Artifact::ObjectInfo::FromString( - "[5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:0:t]"); - - CHECK(Artifact::ObjectInfo::LiberalFromString( - "[5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:f]") == expected); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:f]") == expected); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "[5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:f") == expected); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:f") == expected); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:file") == expected); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:11:notavalidletter") == - expected); - - // Without size, which is not honored in equality - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689") == expected); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:") == expected); - // Syntactically invalid size should be ignored - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:xyz") == expected); - - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689::t") == - expected_as_tree); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689::tree") == - expected_as_tree); - CHECK(Artifact::ObjectInfo::LiberalFromString( - "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689:xyz:t") == - expected_as_tree); -} |