Skip to content
LinHUniX edited this page Dec 1, 2018 · 7 revisions

Check or lnxmcpChk(). is a standalone, indipendent test suite based on lnxmcp logic.

  • by cli

cli.sh lnxmcp-chk <my test stuite>

  • by web

mioserver/webcheck.php?chk=<my test suite>

  • by code

lnxmcpChk(<my testsuite>);

the lib is on mcp_modules (is not primary library )

and the test need to be include in mcp_test

any test is a json with this specific arguments :

as options

  • mcp_include_libs : libs to include before test
  • mcp_include_class : as alternative class load (instanceof mcpCheckModel) before test
  • mcp_check_in :input arguments

as required:

  • mcp_check_name : name of module to be check
  • mcp_check_ctl : module that need to check
  • mcp_check_type :type of check the type is
    • cfg : general config
    • command : run command
    • sequence : run sequence
    • menu : run menu
    • tag : run tag
  • mcp_check_out : array of value to be checked for any values check
    • mcp_check_isset : check only if is setted
    • mcp_check_array : check if an array
    • mcp_check_false : if is false
    • mcp_check_true : if is true
    • mcp_check_num : if is number
    • by default : if the res is the same of the request