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

    IMAGE_INSTALL_append += " \
        persistence-client-library-test \
        "
  2. run system services

    systemctl restart dlt
    systemctl start dlt-dbus
    systemctl start dlt-example-user
    systemctl start pas-daemon
    systemctl start node-startup-controller
  3. prepare data

    root@qemux86:~# persadmin_tool install /Data/Data.tar.gz 
    2016/02/26 13:42:35.576384    2703828 000 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: Called with:]
    2016/02/26 13:42:35.578843    2703852 001 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: command        = <<install>>]
    2016/02/26 13:42:35.580092    2703865 002 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: path           = <</Data/Data.tar.gz>>]
    2016/02/26 13:42:35.581077    2703875 003 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: selection type = <<-1>>]
    2016/02/26 13:42:35.582301    2703887 004 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: application    = <<Not Applicable>>]
    2016/02/26 13:42:35.583532    2703899 005 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: user_no        = <<-1>>]
    2016/02/26 13:42:35.584548    2703910 006 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: seat_no        = <<-1>>]
    persAdminResourceConfigAdd:</Data/Data.tar.gz>
    persAdminResourceConfigAdd: request result=108 !!!
    2016/02/26 13:42:41.510540    2763169 007 ECU1 0037 PASt log info V 2 [[Persadmin_Tool]: persAdminResourceConfigAdd(/Data/Data.tar.gz) returned <<108>>]
  4. run test program

    root@qemux86:~# dbus-run-session -- sh 
    root@qemux86:~# /opt/tests/persistence-client-library/persistence_client_library_test 
    data_setupBlacklist => Wrong size written: -1Running suite(s): Persistency_client_library
    2016/02/26 16:00:50.350147    2211532 000 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: Called with:]
    2016/02/26 16:00:50.352009    2211551 001 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: command        = <<export>>]
    2016/02/26 16:00:50.352794    2211559 002 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: path           = <</tmp/myBackup>>]
    2016/02/26 16:00:50.353607    2211567 003 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: selection type = <<0>>]
    2016/02/26 16:00:50.354454    2211576 004 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: application    = <<Not Applicable>>]
    2016/02/26 16:00:50.355376    2211585 005 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: user_no        = <<-1>>]
    2016/02/26 16:00:50.356197    2211593 006 ECU1 0037 PASt log error V 2 [[Persadmin_Tool]: seat_no        = <<-1>>]
    persAdminDataFolderExport: 0 </tmp/myBackup>
    persAdminDataFolderExport: request result=-1310719 !!!
    2016/02/26 16:00:50.411216    2212143 007 ECU1 0037 PASt log info V 2 [[Persadmin_Tool]: persAdminDataFolderExport(<<0>>, <</tmp/myBackup>>) returned <<-1310719>>]
    50%: Checks: 28, Failures: 14, Errors: 0
    persistence_client_library_test.c:339:F:SetData:test_SetData:0: Wrong write size
    persistence_client_library_test.c:122:F:GetData:test_GetData:0: Assertion 'ret == strlen("CACHE_ +48 10' 38.95, +8 44' 39.06")' failed
    persistence_client_library_test.c:239:F:GetDataHandle:test_GetDataHandle:0: Buffer not correctly read => 1
    persistence_client_library_test.c:476:F:SetDataNoPRCT:test_SetDataNoPRCT:0: Wrong write size
    persistence_client_library_test.c:519:F:GetDataSize:test_GetDataSize:0: Invalid size
    persistence_client_library_test.c:547:F:DeleteData:test_DeleteData:0: Failed to delete key
    persistence_client_library_test.c:985:F:DataHandle:test_DataHandle:0: Buffer not correctly read => mediaDB_write_01.db
    persistence_client_library_test.c:1115:P:DataHandleOpen:test_DataHandleOpen:0: Passed
    persistence_client_library_test.c:1219:P:ReadDefault:test_ReadDefault:0: Passed
    persistence_client_library_test.c:1249:P:ReadConfDefault:test_ReadConfDefault:0: Passed
    persistence_client_library_test.c:1293:F:WriteConfDefault:test_WriteConfDefault:0: Buffer not correctly read
    persistence_client_library_test.c:737:F:DataFile:test_DataFile:0: 1. Failed backup => backup available, but should not
    persistence_client_library_test.c:866:P:DataFileBackupCreation:test_DataFileBackupCreation:0: Passed
    persistence_client_library_test.c:938:F:DataFileRecovery:test_DataFileRecovery:0: Could not open file ==> /media/mediaDB_DataRecovery.db
    persistence_client_library_test.c:1326:P:GetPath:test_GetPath:0: Passed
    persistence_client_library_test.c:1444:P:NegHandle:test_NegHandle:0: Passed
    persistence_client_library_test.c:1467:F:UTF-8:test_utf8_string:0: Wrong read size
    persistence_client_library_test.c:1477:P:Notifications:test_Notifications:0: Passed
    persistence_client_library_test.c:1137:F:Plugin:test_Plugin:0: Assertion 'ret == strlen("Custom plugin -> plugin_get_data: secure!")' failed
    persistence_client_library_test.c:1560:P:VerifyROnly:test_VerifyROnly:0: Passed
    persistence_client_library_test.c:795:F:DataFileConfDefault:test_DataFileConfDefault:0: Buffer not correctly read => mediaData_01.configurable
    persistence_client_library_test.c:1667:F:SharedAccess:test_SharedAccess:0: Failed to write shared data 
    persistence_client_library_test.c:1777:P:VO722:test_VO722:0: Passed
    persistence_client_library_test.c:1879:P:FileTest:test_FileTest:0: Passed
    persistence_client_library_test.c:1898:P:InvalidPluginfConf:test_InvalidPluginfConf:0: Passed
    persistence_client_library_test.c:1392:P:InitDeinit:test_InitDeinit:0: Passed
    persistence_client_library_test.c:1892:P:NoRct:test_NoRct:0: Passed
    persistence_client_library_test.c:1578:P:PAS_DbusInterface:test_PAS_DbusInterface:0: Passed
    Running automated tests
    DLT| WARNING:   dlt_user_atexit_handler dlt_user_initialised==0

 

  • No labels