[root@host-218 ~]# smp-tester 

SMP Server - Basic Request 1 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Server - Basic Request 1 - setup
  Powering on controller
  Controller powered on
SMP Server - Basic Request 1 - setup complete
SMP Server - Basic Request 1 - run
  Test condition added, total 1
  New SMP client connection with handle 0x002a
  Sending SMP PDU
  Received SMP opcode 0x02
  Received SMP opcode 0x03
  Received SMP opcode 0x04
  Test condition complete, 0 left
SMP Server - Basic Request 1 - test passed
  Received SMP opcode 0x06
  Test condition complete, -1 left
SMP Server - Basic Request 1 - test passed
  Received SMP opcode 0x07
  Test condition complete, -2 left
SMP Server - Basic Request 1 - test passed
  Received SMP opcode 0x0a
  Test condition complete, -3 left
SMP Server - Basic Request 1 - test passed
SMP Server - Basic Request 1 - teardown
  Index Removed callback
    Index: 0x0001
SMP Server - Basic Request 1 - teardown complete
SMP Server - Basic Request 1 - done

SMP Server - Invalid Request 1 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Server - Invalid Request 1 - setup
  Powering on controller
  Controller powered on
SMP Server - Invalid Request 1 - setup complete
SMP Server - Invalid Request 1 - run
  Test condition added, total 1
  New SMP client connection with handle 0x002a
  Sending SMP PDU
  Received SMP opcode 0x05
  Test condition complete, 0 left
SMP Server - Invalid Request 1 - test passed
SMP Server - Invalid Request 1 - teardown
  Index Removed callback
    Index: 0x0001
SMP Server - Invalid Request 1 - teardown complete
SMP Server - Invalid Request 1 - done

SMP Server - Invalid Request 2 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Server - Invalid Request 2 - setup
  Powering on controller
  Controller powered on
SMP Server - Invalid Request 2 - setup complete
SMP Server - Invalid Request 2 - run
  Test condition added, total 1
  New SMP client connection with handle 0x002a
  Sending SMP PDU
  Received SMP opcode 0x05
  Test condition complete, 0 left
SMP Server - Invalid Request 2 - test passed
SMP Server - Invalid Request 2 - teardown
  Index Removed callback
    Index: 0x0001
SMP Server - Invalid Request 2 - teardown complete
SMP Server - Invalid Request 2 - done

SMP Server - Invalid Request 3 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Server - Invalid Request 3 - setup
  Powering on controller
  Controller powered on
SMP Server - Invalid Request 3 - setup complete
SMP Server - Invalid Request 3 - run
  Test condition added, total 1
  New SMP client connection with handle 0x002a
  Sending SMP PDU
  Received SMP opcode 0x05
  Test condition complete, 0 left
SMP Server - Invalid Request 3 - test passed
SMP Server - Invalid Request 3 - teardown
  Index Removed callback
    Index: 0x0001
SMP Server - Invalid Request 3 - teardown complete
SMP Server - Invalid Request 3 - done

SMP Client - Basic Request 1 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Client - Basic Request 1 - setup
  Powering on controller
  Controller powered on
  Client set connectable status 0x00
SMP Client - Basic Request 1 - setup complete
SMP Client - Basic Request 1 - run
  Test condition added, total 1
  Pairing in progress
  New SMP client connection with handle 0x002a
  Received SMP opcode 0x01
  Pairing failed: Authentication Failed
  Received SMP opcode 0x03
  Received SMP opcode 0x05
  Unexpected SMP PDU length (2 != 17)
SMP Client - Basic Request 1 - test failed
SMP Client - Basic Request 1 - teardown
  Index Removed callback
    Index: 0x0001
SMP Client - Basic Request 1 - teardown complete
SMP Client - Basic Request 1 - done

SMP Client - Basic Request 2 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Client - Basic Request 2 - setup
  Powering on controller
  Controller powered on
  Client set connectable status 0x00
SMP Client - Basic Request 2 - setup complete
SMP Client - Basic Request 2 - run
  Test condition added, total 1
  Pairing in progress
  New SMP client connection with handle 0x002a
  Received SMP opcode 0x01
  Received SMP opcode 0x03
  Pairing failed: Authentication Failed
  Received SMP opcode 0x05
  Unexpected SMP PDU length (2 != 17)
SMP Client - Basic Request 2 - test failed
SMP Client - Basic Request 2 - teardown
  Index Removed callback
    Index: 0x0001
SMP Client - Basic Request 2 - teardown complete
SMP Client - Basic Request 2 - done

SMP Client - SC Request 1 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Client - SC Request 1 - setup
  Powering on controller
  Controller powered on
  Client set connectable status 0x00
SMP Client - SC Request 1 - setup complete
SMP Client - SC Request 1 - run
  Test condition added, total 1
  Pairing in progress
  New SMP client connection with handle 0x002a
  Received SMP opcode 0x01
  Received SMP opcode 0x03
  Received SMP opcode 0x04
  Test condition complete, 0 left
SMP Client - SC Request 1 - test passed
  Pairing failed: Authentication Failed
  Received SMP opcode 0x05
  Test condition complete, -1 left
SMP Client - SC Request 1 - test passed
SMP Client - SC Request 1 - teardown
  Index Removed callback
    Index: 0x0001
SMP Client - SC Request 1 - teardown complete
SMP Client - SC Request 1 - done

SMP Client - SC Request 2 - init
  Read Index List callback
    Status: 0x00
  New hciemu instance created
  Index Added callback
    Index: 0x0001
  Read Info callback
    Status: 0x00
    Address: 00:AA:01:00:00:01
    Version: 0x09
    Manufacturer: 0x05f1
    Supported settings: 0x0001beff
    Current settings: 0x00000080
    Class: 0x000000
    Name: 
    Short name: 
SMP Client - SC Request 2 - setup
  Powering on controller
  Controller powered on
  Client set connectable status 0x00
SMP Client - SC Request 2 - setup complete
SMP Client - SC Request 2 - run
  Test condition added, total 1
  Pairing in progress
  New SMP client connection with handle 0x002a
  Received SMP opcode 0x01
  Received SMP opcode 0x0c
  Received SMP opcode 0x04
  Test condition complete, 0 left
SMP Client - SC Request 2 - test passed
SMP Client - SC Request 2 - teardown
  Pairing failed: Invalid Index
  Index Removed callback
    Index: 0x0001
SMP Client - SC Request 2 - teardown complete
SMP Client - SC Request 2 - done


Test Summary
------------
SMP Server - Basic Request 1                         Passed       0.022 seconds
SMP Server - Invalid Request 1                       Passed       0.025 seconds
SMP Server - Invalid Request 2                       Passed       0.019 seconds
SMP Server - Invalid Request 3                       Passed       0.014 seconds
SMP Client - Basic Request 1                         Failed       2.056 seconds
SMP Client - Basic Request 2                         Failed       2.047 seconds
SMP Client - SC Request 1                            Passed       0.024 seconds
SMP Client - SC Request 2                            Passed       0.038 seconds
Total: 8, Passed: 6 (75.0%), Failed: 2, Not Run: 0
Overall execution time: 4.25 seconds

