"libSvc_WatchDog.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_AssertFatalAdapter.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_PolyIf.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_FileDownlink.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libFw_ComFile.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libRef_RecvBuffApp.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(), "libSvc_Time.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(), "libFw_Cfg.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_Fatal.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_ActiveLogger.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_BufferManager.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(), "libFw_Cmd.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libCFDP_Checksum.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_PrmDb.a"),
    os.path.join(tmp_dir, "lib", "static", platform.system(),
                 "libSvc_PassiveConsoleTextLogger.a"),
]
TARGETS = ["install"]
cmake.register_test(__name__, "install-specified-test")
atexit.register(lambda: shutil.rmtree(tmp_dir))
Example #2
0
####
# test_custom_exe.py:
#
# CMake executable additions
#
####
import os
import platform
import cmake

# Test a normal build, with the ref executable and static libraries
BUILD_DIR = os.path.join(os.path.dirname(__file__), "..", "data", "custom-executables")
EXPECTED = [
    os.path.join("bin", platform.system(), "UT-Custom-Execs"),
]
cmake.register_test(__name__, "custom-exe")
Example #3
0
####
# test_basic.py:
#
# Basic CMake tests.
#
####
import os
import platform
import cmake

# Test a normal build, with the ref executable and static libraries
BUILD_DIR = os.path.join("<FPRIME>")
OPTIONS = {"CMAKE_BUILD_TYPE": "TESTING"}
TARGETS = ["Svc_CmdDispatcher_coverage"]  # Force a known `coverage` target
EXPECTED = [
    os.path.join(
        "bin", platform.system(), "Svc_CmdDispatcher_ut_exe"
    ),  # UT must be built
    os.path.join(
        "<FPRIME>", "Svc", "CmdDispatcher", "coverage", "CommandDispatcherImpl.cpp.gcov"
    ),
    os.path.join(
        "<FPRIME>",
        "Svc",
        "CmdDispatcher",
        "coverage",
        "CommandDispatcherComponentAc.cpp.gcov",
    ),
]
cmake.register_test(__name__, "fp-coverage")
Example #4
0
    os.path.join("lib", platform.system(), "libSvc_ComLogger." + ext),
    os.path.join("lib", platform.system(), "libFw_SerializableFile." + ext),
    os.path.join("lib", platform.system(), "libFw_Buffer." + ext),
    os.path.join("lib", platform.system(), "libFw_Comp." + ext),
    os.path.join("lib", platform.system(), "libSvc_CmdDispatcher." + ext),
    os.path.join("lib", platform.system(), "libFw_Log." + ext),
    os.path.join("lib", platform.system(), "libFw_Tlm." + ext),
    os.path.join("lib", platform.system(), "libOs." + ext),
    os.path.join("lib", platform.system(), "libRef_SignalGen." + ext),
    os.path.join("lib", platform.system(), "libSvc_Sched." + ext),
    os.path.join("lib", platform.system(), "libSvc_Seq." + ext),
    os.path.join("lib", platform.system(), "libSvc_WatchDog." + ext),
    os.path.join("lib", platform.system(), "libSvc_AssertFatalAdapter." + ext),
    os.path.join("lib", platform.system(), "libSvc_PolyIf." + ext),
    os.path.join("lib", platform.system(), "libSvc_FileDownlink." + ext),
    os.path.join("lib", platform.system(), "libFw_ComFile." + ext),
    os.path.join("lib", platform.system(), "libRef_RecvBuffApp." + ext),
    os.path.join("lib", platform.system(), "libcodegen.a"),
    os.path.join("lib", platform.system(), "libSvc_Time." + ext),
    os.path.join("lib", platform.system(), "libFw_Cfg." + ext),
    os.path.join("lib", platform.system(), "libSvc_Fatal." + ext),
    os.path.join("lib", platform.system(), "libSvc_ActiveLogger." + ext),
    os.path.join("lib", platform.system(), "libSvc_BufferManager." + ext),
    os.path.join("lib", platform.system(), "libFw_Cmd." + ext),
    os.path.join("lib", platform.system(), "libCFDP_Checksum." + ext),
    os.path.join("lib", platform.system(), "libSvc_PrmDb." + ext),
    os.path.join("lib", platform.system(),
                 "libSvc_PassiveConsoleTextLogger." + ext),
]
cmake.register_test(__name__, "ref-shared")
Example #5
0
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libSvc_FileDownlink.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libFw_ComFile.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libRef_RecvBuffApp.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libSvc_Time.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(), "libFw_Cfg.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libSvc_Fatal.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libSvc_ActiveLogger.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libSvc_BufferManager.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(), "libFw_Cmd.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libCFDP_Checksum.a"),
    os.path.join(BUILD_DIR, "lib", "static", platform.system(),
                 "libSvc_PrmDb.a"),
    os.path.join(
        BUILD_DIR,
        "lib",
        "static",
        platform.system(),
        "libSvc_PassiveConsoleTextLogger.a",
    ),
]
TARGETS = ["install"]
cmake.register_test(__name__, "install-test")
Example #6
0
import cmake

# Test a normal build, with the ref executable and static libraries
BUILD_DIR = os.path.join("<FPRIME>")
OPTIONS = {"CMAKE_BUILD_TYPE": "TESTING"}
TARGETS = ["all", "check"]
EXPECTED = [
    os.path.join("bin", platform.system(), "CFDP_Checksum_ut_exe"),
    os.path.join("bin", platform.system(), "Fw_FilePacket_ut_exe"),
    os.path.join("bin", platform.system(), "Fw_Log_ut_exe"),
    os.path.join("bin", platform.system(), "Fw_SerializableFile_ut_exe"),
    os.path.join("bin", platform.system(), "Fw_Time_ut_exe"),
    os.path.join("bin", platform.system(), "Fw_Tlm_ut_exe"),
    os.path.join("bin", platform.system(), "Fw_Types_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_ActiveLogger_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_ActiveRateGroup_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_BufferManager_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_CmdDispatcher_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_CmdSequencer_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_ComLogger_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_FileDownlink_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_FileManager_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_FileUplink_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_LinuxTime_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_PolyDb_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_PrmDb_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_RateGroupDriver_ut_exe"),
    os.path.join("bin", platform.system(), "Svc_TlmChan_ut_exe"),
]
cmake.register_test(__name__, "fp-uts")
Example #7
0
    os.path.join("lib", platform.system(), "libSvc_ComLogger.a"),
    os.path.join("lib", platform.system(), "libFw_SerializableFile.a"),
    os.path.join("lib", platform.system(), "libFw_Buffer.a"),
    os.path.join("lib", platform.system(), "libFw_Comp.a"),
    os.path.join("lib", platform.system(), "libSvc_CmdDispatcher.a"),
    os.path.join("lib", platform.system(), "libFw_Log.a"),
    os.path.join("lib", platform.system(), "libFw_Tlm.a"),
    os.path.join("lib", platform.system(), "libOs.a"),
    os.path.join("lib", platform.system(), "libRef_SignalGen.a"),
    os.path.join("lib", platform.system(), "libSvc_Sched.a"),
    os.path.join("lib", platform.system(), "libSvc_Seq.a"),
    os.path.join("lib", platform.system(), "libSvc_WatchDog.a"),
    os.path.join("lib", platform.system(), "libSvc_AssertFatalAdapter.a"),
    os.path.join("lib", platform.system(), "libSvc_PolyIf.a"),
    os.path.join("lib", platform.system(), "libSvc_FileDownlink.a"),
    os.path.join("lib", platform.system(), "libFw_ComFile.a"),
    os.path.join("lib", platform.system(), "libRef_RecvBuffApp.a"),
    os.path.join("lib", platform.system(), "libcodegen.a"),
    os.path.join("lib", platform.system(), "libSvc_Time.a"),
    os.path.join("lib", platform.system(), "libFw_Cfg.a"),
    os.path.join("lib", platform.system(), "libSvc_Fatal.a"),
    os.path.join("lib", platform.system(), "libSvc_ActiveLogger.a"),
    os.path.join("lib", platform.system(), "libSvc_BufferManager.a"),
    os.path.join("lib", platform.system(), "libFw_Cmd.a"),
    os.path.join("lib", platform.system(), "libCFDP_Checksum.a"),
    os.path.join("lib", platform.system(), "libSvc_PrmDb.a"),
    os.path.join("lib", platform.system(),
                 "libSvc_PassiveConsoleTextLogger.a"),
]
cmake.register_test(__name__, "ref-standard")
Example #8
0
    os.path.join("awesome", "Svc_LinuxTime_is_awesome"),
    os.path.join("awesome", "Fw_Com_is_awesome"),
    os.path.join("awesome", "Drv_DataTypes_is_awesome"),
    os.path.join("awesome", "Svc_ComLogger_is_awesome"),
    os.path.join("awesome", "Fw_SerializableFile_is_awesome"),
    os.path.join("awesome", "Fw_Buffer_is_awesome"),
    os.path.join("awesome", "Fw_Comp_is_awesome"),
    os.path.join("awesome", "Svc_CmdDispatcher_is_awesome"),
    os.path.join("awesome", "Fw_Log_is_awesome"),
    os.path.join("awesome", "Fw_Tlm_is_awesome"),
    os.path.join("awesome", "Os_is_awesome"),
    os.path.join("awesome", "Svc_Sched_is_awesome"),
    os.path.join("awesome", "Svc_Seq_is_awesome"),
    os.path.join("awesome", "Svc_WatchDog_is_awesome"),
    os.path.join("awesome", "Svc_AssertFatalAdapter_is_awesome"),
    os.path.join("awesome", "Svc_PolyIf_is_awesome"),
    os.path.join("awesome", "Svc_FileDownlink_is_awesome"),
    os.path.join("awesome", "Fw_ComFile_is_awesome"),
    os.path.join("awesome", "Svc_Time_is_awesome"),
    os.path.join("awesome", "Fw_Cfg_is_awesome"),
    os.path.join("awesome", "Svc_Fatal_is_awesome"),
    os.path.join("awesome", "Svc_ActiveLogger_is_awesome"),
    os.path.join("awesome", "Svc_BufferManager_is_awesome"),
    os.path.join("awesome", "Fw_Cmd_is_awesome"),
    os.path.join("awesome", "CFDP_Checksum_is_awesome"),
    os.path.join("awesome", "Svc_PrmDb_is_awesome"),
    os.path.join("awesome", "Svc_PassiveConsoleTextLogger_is_awesome"),
]
TARGETS = ["awesome"]
cmake.register_test(__name__, "custom-target")
Example #9
0
####
# test_validation.py:
#
# Tests that validation steps can run.  Test that a validation test can fail the build is handled by
# test_tool_check.py.
#
####
import os
import platform
import cmake

# Test a normal build, with the ref executable and static libraries
BUILD_DIR = os.path.join(os.path.dirname(__file__), "..", "data",
                         "custom-validation")
EXPECTED = []
TARGETS = ["validate-nova"]
cmake.register_test(__name__, "custom-validation")