Skip to end of metadata
Go to start of metadata
  1. install *-test at build/conf/local.conf

    IMAGE_INSTALL_append += " \
        node-health-monitor-test \
        "
  2. set up test environment
    1. run node-state-manager:

      root@qemux86:~# systemctl start node-startup-controller
      root@qemux86:~# 
    2. create an own dbus instance:

      root@qemux86:/usr/lib# dbus-launch
      DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ELaodyB01D,guid=66fd87514356c51bb6fbcd0b56d97edb
      DBUS_SESSION_BUS_PID=638
    3. the command will print a DBUS_SESSION_BUS_ADDRESS. Copy/paste and export it as system bus:

      root@qemux86:/usr/lib# export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ELaodyB01D,guid=66fd87514356c51bb6fbcd0b56d97edb
    4. start the node-health-monitor (in background)

      root@qemux86:~# node-health-monitor &
      root@qemux86:~#
  3. run nhm-main-test

    root@qemux86:/opt/tests/node-health-monitor# ./nhm-main-test 
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:615): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
  4. run nhm-systemd-test

    root@qemux86:/opt/tests/node-health-monitor# ./nhm-systemd-test 
    (process:633): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:633): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:633): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:633): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:633): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:633): GLib-WARNING **: (/storage/src/CCCP/genivi-baseline_10.w19/build/tmp/work/i586-poky-linux/glib-2.0/1_2.44.1-r0/glib-2.44.1/glib/gerror.c:384):g_error_new_valist: runtime check failed: (format != NULL)
    (process:633): GLib-CRITICAL **: the GVariant format string '&s' has a type of 's' but the given value has a type of 'v'
    (process:633): GLib-CRITICAL **: g_variant_get_child: assertion 'valid_format_string (format_string, TRUE, child)' failed
  • No labels