Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth tests #6

Open
wants to merge 52 commits into
base: ztest
Choose a base branch
from

Commits on Nov 11, 2021

  1. Update ztest with more powerful testing APIs

    1. Test suites in prior ztest serve no purpose other than logical
    ordering of tests into a named-group. Move the construct of setup and
    teardown into the test suite and away from individual tests.
    Additionally, add the constructs of before/after to the test suites.
    This model more closely resembels other testing frameworks such as gTest
    and Junit.
    2. Test can be added to a suite by using ZTEST() or ZTEST_F() where _F
    stands for fixture. In the case where _F is used, the argument `this`
    will be provided with the type `struct suite_name##_fixture*`. Again,
    this models other modern testing frameworks and allows the test to
    directly access the already set up data related to the test suite.
    3. Add the concept of test rules (from Junit). Rules are similar to the
    before/after functions of the test suites but are global and run on all
    suites. An example of a test rule can be to check that nothing was
    logged to ERROR. The rule can cause the test to fail if anything was
    logged to ERROR during an integration test. Another example would be a
    rule that verifies that tests ran within some defined timeout.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    e4dae09 View commit details
    Browse the repository at this point in the history
  2. tests: app_dev: gen_inc_file: Update tests to use new ztest APIs

    Note, the test_main function is no longer needed since the default
    already runs all tests.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    7414e29 View commit details
    Browse the repository at this point in the history
  3. tests: dlist_perf: Update to use new ztest APIs

    Note this change removes the test_main function since the default
    already runs all the tests suites with no state.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    cb9f83b View commit details
    Browse the repository at this point in the history
  4. tests: rbtree_perf: Update to use new ztest APIs

    Note this change keeps the test_main function since some threading
    configurations need to run. These could also be done in the setup
    function for the suite.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    48a97c3 View commit details
    Browse the repository at this point in the history
  5. tests: msgq_api: Update to use new ztest APIs

    Split the test suite into 2:
    1. Default with no changes
    2. Adds before/after function to account for 1cpu tests
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    135e8e8 View commit details
    Browse the repository at this point in the history
  6. test: msgq_usage: Update to new ztest APIs

    Note the main test_main function was kept to allow thread config,
    though this can also be done in the suite's setup.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    2f589ba View commit details
    Browse the repository at this point in the history
  7. test: mutex_api: Update to use new ztest APIs

    Note this keeps the test_main function for thread access setup,
    though that could also be done in the suite's setup.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    762f1e1 View commit details
    Browse the repository at this point in the history
  8. tests: sys_mutex: Update to use new ztest APIs

    Convert the tests to use various ZTEST unit test declarations based
    on the Kconfig CONFIG_USERSPACE. Some tests run in both modes, others
    only in one.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    08054ab View commit details
    Browse the repository at this point in the history
  9. tests: pipe: Update to use new ztest APIs

    Remove test_main in favor of new default one.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    60923f5 View commit details
    Browse the repository at this point in the history
  10. tests: pipe: Update to use new ztest APIs

    Allow self registering functions which gets rid of the need to
    include all the functions as externs and have alternate
    implementations.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    7b63b4e View commit details
    Browse the repository at this point in the history
  11. tests: pipe_api: Update to new ztest APIs

    Update to self registering test functions which gets rid of extern
    inclusion and the need to have different implementations.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    2cb7376 View commit details
    Browse the repository at this point in the history
  12. tests: fifo_usage: Update to new ztest APIs

    Use the 1CPU test rule and migrate to new APIs for attaching the tests
    to the suite.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    53ec3d0 View commit details
    Browse the repository at this point in the history
  13. tests: fifo_timeout: Update to new ztest APIs

    Create new test suites for 1cpu and normal tests and make use of
    the setup function hook for the suite.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    c1f193b View commit details
    Browse the repository at this point in the history
  14. tests: fifo_api: Update to new ztest APIs

    Migrate tests to new api and fix mismatching function signature for
    test_fifo_get_fail.
    
    Signed-off-by: Yuval Peress <peress@google.com>
    yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    815fd66 View commit details
    Browse the repository at this point in the history
  15. tests: arm_hardfault_validation: ztest refactor

    Update arm_hardfault_validation to new ztest API.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: If6a7d7c0d6e0e65a8f1a1ba434521b33b6874517
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    aa78678 View commit details
    Browse the repository at this point in the history
  16. tests: arm_interrupt: Refactor to new ztest API

    Update arm_interrupt tests to new ztest API.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I3570c902f67068505a0031b7890a2b03c36e14d4
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    fd15fd1 View commit details
    Browse the repository at this point in the history
  17. test: arm_irq_advanced_features: update to new api

    Update tests to new ztest API
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: If51829e0ddb5dfe41061c6ade7dcde875275a214
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    a16b33e View commit details
    Browse the repository at this point in the history
  18. tests: arm_irq_vector_table: refactor to new api

    Update test suite to new ZTEST api.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I15f67e4592e7d1594530adcc9b3528b3778bfab0
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    1e7f076 View commit details
    Browse the repository at this point in the history
  19. tests: arm_mem_protect: Update to new ZTEST api

    Update test to new ZTEST API.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Icb5326bfc7c2e47a0c4e458f7d98273680a14156
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    c62d431 View commit details
    Browse the repository at this point in the history
  20. tests: arm_ramfunc: Update to new ztest api

    Refactor tests to new ZTEST api.
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I18451cbcb1d08777b6a0658e9c79e0fcf5238561
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    8bef102 View commit details
    Browse the repository at this point in the history
  21. tests: arm_runtime_nmi: update to new ztest api

    Refactor tests to use new ZTEST apis.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: If388fddc2d75b24ef58eb85f0925648e40bd5667
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    0a79be2 View commit details
    Browse the repository at this point in the history
  22. tests: arm_sw_vector_relay: update ztest apie use

    Refactor to use new ZTEST apis.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Ibc37d835ed7496da8e355052c0982aa1ff2c8480
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    bef8209 View commit details
    Browse the repository at this point in the history
  23. tests: arm_thread_swap_tz: update to new ztest api

    Refactor tests to use new ZTEST apis.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Iae09c675d7ed6de201d0e85fc6a061bbe4c129e1
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    7a76928 View commit details
    Browse the repository at this point in the history
  24. tests: arm_thread_swap: update use of ztest API

    Refactor tests to use the new ZTEST api, removing now unnecessary #else.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I828874335556041b3f27e1c89be561c3c71def01
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    6b3897b View commit details
    Browse the repository at this point in the history
  25. tests: arm_tz_wrap_func: update to new ztest API

    Refactor tests to use new ZTEST APIs.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I2d9343e219cd37ba3a2f4bff3676f9b9a2100e86
    aaronemassey authored and yperess committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    1f328f0 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. tests: basicmath: update to new ZTEST APIs

    Updates tests to use the new ZTEST APIs
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Ic85339dabbb508ce2e62e6eed60e24f2925271f6
    aaronemassey authored and yperess committed Nov 12, 2021
    Configuration menu
    Copy the full SHA
    17f8a5c View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. tests: arm64_gicv3_its: update to new ztest API

    Refactor tests to use new ZTEST APIs.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I4b614ba1add3bc374f7a2f00f14be69717df70b5
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    859818f View commit details
    Browse the repository at this point in the history
  2. tests: cpu_scrubs_regs: update to new ztest apis

    Update tests to use new ZTEST APIs.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Ib50f6e165986fe77a9d2cc4c6caed926c4936471
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    eb47a08 View commit details
    Browse the repository at this point in the history
  3. tests: nmi: update to use new ZTEST APIs

    Update tests to use the new ZTEST APIs.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I05f666e6a77d2b886773138666f01fc507a15038
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    6795e21 View commit details
    Browse the repository at this point in the history
  4. tests: pagetables: update to use new ZTEST APIs

    Update tests to use the new ZTEST API.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Idbfdf87c91628b9381eccf6e0ff689db9fc177e2
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    897713f View commit details
    Browse the repository at this point in the history
  5. tests: static_idt: update to use new ZTEST APIs

    Update static_idt tests to use the new ZTEST API.
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I83bffdb1999f31f9b669945970478540e29b0c85
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    070b2aa View commit details
    Browse the repository at this point in the history
  6. tests: mbedtls: update to new ZTEST APIs

    Updates tests to use the new ZTEST APIs
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I792468fc2bd4304100c98c67f4e18f19292ce12f
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    7aa4807 View commit details
    Browse the repository at this point in the history
  7. tests: rand32: update to new ZTEST APIs

    Updates tests to use the new ZTEST APIs
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: I28a2c6ca06c651bf08abaaac94346dbf332809a8
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    d17471c View commit details
    Browse the repository at this point in the history
  8. tests: tinycrypt_hmac_prng: update ZTEST APIs

    Updates tests to use the new ZTEST APIs
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: Ieae3df129ff8a24112e0fec4b708bcf49880649a
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    48ff23c View commit details
    Browse the repository at this point in the history
  9. tests: tinycrypt: update to new ZTEST APIs

    Updates tests to use the new ZTEST APIs
    
    Signed-off-by: Aaron Massey <aaronmassey@google.com>
    Change-Id: If1e98180394d7f5041be93a60dcd8af9ed298349
    aaronemassey authored and yperess committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    bd120f7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9ac75ce View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8f976b0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7bc04ba View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    736ca5b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7fa7173 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    046dd99 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3761b6a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e58039f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6753a03 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2594bfe View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    31227d5 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    da67ded View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    8a7f163 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7c40790 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    03d20e2 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    8690287 View commit details
    Browse the repository at this point in the history
  26. tests/bluetooth/uuid

    tristan-google committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    c2542d4 View commit details
    Browse the repository at this point in the history