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

    IMAGE_INSTALL_append += " \
        dlt-daemon-test \
        "
  2. test of dlt-file-transfer

    root@qemux86:/opt/tests/dlt-daemon# ls /opt/tests/dlt-daemon/data/
    dlt-test-filetransfer-file       dlt-test-filetransfer-image.png
    root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-filetransfer 
    testFile1Run1 successful
    testFile1Run2 successful
    testFile2Run1 successful
    testFile2Run2 successful
    testFile3Run1 successful
    testFile3Run2 successful
    testFile3Run3 successful
  3. test of dlt-test-stress

    Starting stress test1... (press "Enter" to terminate test) 
    * Register   3000 contexts...
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| INFO:      Buffer: Size increased to 100000 bytes
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| CRITICAL:  Could not request resending.: Resource temporarily unavailable 
    DLT| INFO:      Buffer: Buffer minimized.
    * Unregister 3000 contexts...
    Finished stress test1 
    root@qemux86:/opt/tests/dlt-daemon# 
    root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-stress -2
    Starting stress test2... 
    * Creating 64 Threads, each of them registers one context,
      sending one log message, then unregisters the context
    Finished stress test2 
    root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-stress -3
    Starting stress test3... 
    * Logging raw data, up to a size of 512
    Finished stress test3 
  4. test of dlt-test-stress (2)
    1. run server at console 1

      root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-stress-user 
      Tests starting
      
      
    2. run client at console 2

      root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-stress-client localhost
      Received 365830 Bytes/s
      Received 96040 Bytes/s
      Received 92960 Bytes/s
      Received 96460 Bytes/s
      Received 96040 Bytes/s
      Received 96320 Bytes/s
      Received 96040 Bytes/s
      Received 96320 Bytes/s
      Received 95760 Bytes/s
      Received 95900 Bytes/s
      Received 95340 Bytes/s
      PASSED: 10000 Msg received, 0 not received
      Received 96180 Bytes/s
      Received 92680 Bytes/s
      Received 96040 Bytes/s
      Received 96040 Bytes/s
      Received 96460 Bytes/s
      Received 95620 Bytes/s
      Received 95480 Bytes/s
      Received 95480 Bytes/s
      Received 96180 Bytes/s
      Received 96180 Bytes/s
      Received 95200 Bytes/s
      Received 93660 Bytes/s
      Received 95480 Bytes/s
      Received 95900 Bytes/s
      Received 96040 Bytes/s
      PASSED: 10000 Msg received, 0 not received
      Received 95900 Bytes/s
      Received 96180 Bytes/s
      Received 95620 Bytes/s
      Received 96040 Bytes/s
      Received 96040 Bytes/s
      Received 96040 Bytes/s
      Received 92960 Bytes/s
      Received 95900 Bytes/s
      Received 95200 Bytes/s
      Received 95760 Bytes/s
      Received 95620 Bytes/s
      Received 96040 Bytes/s
      Received 95060 Bytes/s
      Received 95900 Bytes/s
      Received 95620 Bytes/s
      PASSED: 10000 Msg received, 0 not received
      Received 96040 Bytes/s
      Received 95200 Bytes/s
      ^C
  5. test of dlt-test
    1. run server at console 1

      rroot@qemux86:/opt/tests/dlt-daemon# ./dlt-test-user 
      Tests starting
      Test1m: (Macro IF) Test all log levels
      Test2m: (Macro IF) Test all variable types (verbose)
      Test3m: (Macro IF) Test all variable types (non-verbose)
      Test4m: (Macro IF) Test different message sizes
      Test5m: (Macro IF) Test high-level API
      Test6m: (Macro IF) Test local printing
      2016/03/04 07:29:58.582156    6423329 000 ECU1 DIFT TM6- log info V 1 [Message (visible: locally printed)]
      Test7m: (Macro IF) Test network trace
      Test8m: (Macro IF) Test truncated network trace
      Test9m: (Macro IF) Test segmented  network trace
      Test1f: (Function IF) Test all log levels
      Test2f: (Function IF) Test all variable types (verbose)
      Test3f: (Function IF) Test all variable types (non-verbose)
      Test4f: (Function IF) Test different message sizes
      Test5f: (Function IF) Test high-level API
      Test6f: (Function IF) Test local printing
      2016/03/04 07:30:22.646999    6663977 000 ECU1 DIFT TF6- log info V 1 [Message (visible: locally printed)]
      Test7f: (Function IF) Test network trace
      Test8f: (Function IF) Test truncated network trace
      Test9f: (Function IF) Test segmented network trace
      Tests finished
    2. run client at console 2

      root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-client localhost
      Tests starting
      Test1m: (Macro IF) Test all log levels
      Test1m PASSED
      Test2m: (Macro IF) Test all variable types (verbose)
      Test2m PASSED
      Test3m: (Macro IF) Test all variable types (non-verbose)
      Test3m PASSED
      Test4m: (Macro IF) Test different message sizes
      Test4m PASSED
      Test5m: (Macro IF) Test high-level API
      Test5m PASSED
      Test6m: (Macro IF) Test local printing
      Message (visible: locally printed)
      Message (invisible: not locally printed)
      Test6m PASSED
      Test7m: (Macro IF) Test network trace
      Test7m PASSED
      Test8m: (Macro IF) Test truncated network trace
      Test8m FAILED
      Test9m: (Macro IF) Test segmented network trace
      Test9m FAILED
      Test1f: (Function IF) Test all log levels
      Test1f PASSED
      Test2f: (Function IF) Test all variable types (verbose)
      Test2f PASSED
      Test3f: (Function IF) Test all variable types (non-verbose)
      Test3f PASSED
      Test4f: (Function IF) Test different message sizes
      Test4f PASSED
      Test5f: (Function IF) Test high-level API
      Test5f PASSED
      Test6f: (Function IF) Test local printing
      Message (visible: locally printed)
      Message (invisible: not locally printed)
      Test6f PASSED
      Test7f: (Function IF) Test network trace
      Test7f PASSED
      Test8f: (Function IF) Test truncated network trace
      Test8f FAILED
      Test9f: (Function IF) Test segmented network trace
      Test9f FAILED
      Tests finished
      14 tests passed
      4 tests failed
  6. test of multi-process
    1. run server at console 1

      root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-multi-process
      Setup done. Listening. My pid: 535
      
      
    2. run client at console 2

      root@qemux86:/opt/tests/dlt-daemon# ./dlt-test-multi-process-client localhost
      Statistics:
       Messages received             : 765
       Broken messages received      : 0
       Bytes received                : 71910
       Time running (seconds)        : 35
       Throughput (msgs/sec)/(B/sec) : 21/1997
      ^C
  • No labels