def test_feature_autocoder(FEATURE_BUILD): """Feature build check deployment properly detected""" cmake.assert_process_success(FEATURE_BUILD) for output_file in ["test-ac-1", "test-ac-2"]: output_path = FEATURE_BUILD["build"] / output_file assert output_path.exists( ), f"Failed to locate {output_file} in build output"
def test_feature_deployment(FEATURE_BUILD): """Feature build check deployment properly detected""" cmake.assert_process_success(FEATURE_BUILD) library_name = f"TestDeployment" output_path = FEATURE_BUILD["build"] / "bin" / platform.system( ) / library_name assert output_path.exists( ), f"Failed to locate {library_name} in build output"
def test_feature_framework(FEATURE_BUILD): """Feature build check framework properly detected""" cmake.assert_process_success(FEATURE_BUILD) for module in settings.FRAMEWORK_MODULES + ["Svc_CmdDispatcher"]: library_name = f"lib{module}.a" output_path = FEATURE_BUILD["build"] / "lib" / platform.system( ) / library_name assert output_path.exists( ), f"Failed to locate {library_name} in build output"
def test_feature_library(FEATURE_BUILD): """Feature build check libraries properly detected""" cmake.assert_process_success(FEATURE_BUILD) modules = ["TestLibrary_TestComponent", "TestLibrary2_TestComponent"] for module in modules: library_name = f"lib{module}.a" output_path = FEATURE_BUILD["build"] / "lib" / platform.system( ) / library_name assert output_path.exists( ), f"Failed to locate {library_name} in build output"
def test_unittest_dictionary(UT_BUILD): """Run reference and assert reference targets exit""" cmake.assert_process_success(UT_BUILD, errors_ok=True) output_path = ( UT_BUILD["install"] / platform.system() / "dict" / "RefTopologyAppDictionary.xml" ) assert output_path.exists(), f"Failed to locate Ref in build output"
def test_unittest_targets(UT_BUILD): """Run reference and assert reference targets exit""" cmake.assert_process_success(UT_BUILD, errors_ok=True) for module in MODULES: library_name = f"lib{module}.a" output_path = UT_BUILD["build"] / "lib" / platform.system() / library_name assert output_path.exists(), f"Failed to locate {library_name} in build output" for executable in ["Ref"] + UNIT_TESTS: output_path = UT_BUILD["build"] / "bin" / platform.system() / executable assert output_path.exists(), f"Failed to locate Ref in build output"
def test_feature_targets(FEATURE_BUILD): """Feature build check deployment properly detected""" cmake.assert_process_success(FEATURE_BUILD) for output_file in [ "global-test", "deployment-test", "TestLibrary_TestComponent-test", ]: output_path = FEATURE_BUILD["build"] / output_file assert output_path.exists( ), f"Failed to locate {output_file} in build output"
def test_unittest_installation(UT_BUILD): """Run reference and assert reference targets exit""" cmake.assert_process_success(UT_BUILD, errors_ok=True) for module in MODULES: library_name = f"lib{module}.a" output_path = ( UT_BUILD["install"] / platform.system() / "lib" / "static" / library_name ) assert output_path.exists(), f"Failed to locate {library_name} in build output" output_path = UT_BUILD["install"] / platform.system() / "bin" / "Ref" assert output_path.exists(), f"Failed to locate Ref in build output"
def test_ref_installation(REF_BUILD): """Run reference and assert reference targets exit""" cmake.assert_process_success(REF_BUILD) for module in MODULES: library_name = ( f"lib{module}{'.so' if platform.system() != 'Darwin' else '.dylib'}" ) output_path = REF_BUILD["install"] / platform.system( ) / "lib" / library_name assert output_path.exists( ), f"Failed to locate {library_name} in build output" output_path = REF_BUILD["install"] / platform.system() / "bin" / "Ref" assert output_path.exists(), f"Failed to locate Ref in build output"
def test_feature_installation(FEATURE_BUILD): """Run reference and assert reference targets exit""" cmake.assert_process_success(FEATURE_BUILD) for module in settings.FRAMEWORK_MODULES + [ "Svc_CmdDispatcher", "TestLibrary_TestComponent", "TestLibrary2_TestComponent", ]: library_name = f"lib{module}.a" output_path = (FEATURE_BUILD["install"] / platform.system() / "lib" / "static" / library_name) assert output_path.exists( ), f"Failed to locate {library_name} in build output" output_path = (FEATURE_BUILD["install"] / platform.system() / "bin" / "TestDeployment") assert output_path.exists( ), f"Failed to locate TestDeployment in build output"
def test_feature_run(FEATURE_BUILD): """Basic run test for feature build""" cmake.assert_process_success(FEATURE_BUILD)
def test_unittest_run(UT_BUILD): """Basic run test for ref""" cmake.assert_process_success(UT_BUILD, errors_ok=True)
def test_ref_run(REF_BUILD): """Basic run test for ref""" cmake.assert_process_success(REF_BUILD)