From baa073d46cae264183f576c0acae8df57f42e759 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 29 Jul 2022 14:47:50 +0200 Subject: InstallCas: Moved install-cas code to separate library --- test/buildtool/common/TARGETS | 12 ---------- test/buildtool/common/common.test.cpp | 42 ----------------------------------- 2 files changed, 54 deletions(-) delete mode 100644 test/buildtool/common/common.test.cpp (limited to 'test/buildtool/common') 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); -} -- cgit v1.2.3