-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: ztest
Are you sure you want to change the base?
Bluetooth tests #6
Commits on Nov 11, 2021
-
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>
Configuration menu - View commit details
-
Copy full SHA for e4dae09 - Browse repository at this point
Copy the full SHA e4dae09View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 7414e29 - Browse repository at this point
Copy the full SHA 7414e29View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for cb9f83b - Browse repository at this point
Copy the full SHA cb9f83bView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 48a97c3 - Browse repository at this point
Copy the full SHA 48a97c3View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 135e8e8 - Browse repository at this point
Copy the full SHA 135e8e8View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 2f589ba - Browse repository at this point
Copy the full SHA 2f589baView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 762f1e1 - Browse repository at this point
Copy the full SHA 762f1e1View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 08054ab - Browse repository at this point
Copy the full SHA 08054abView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 60923f5 - Browse repository at this point
Copy the full SHA 60923f5View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 7b63b4e - Browse repository at this point
Copy the full SHA 7b63b4eView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 2cb7376 - Browse repository at this point
Copy the full SHA 2cb7376View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 53ec3d0 - Browse repository at this point
Copy the full SHA 53ec3d0View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for c1f193b - Browse repository at this point
Copy the full SHA c1f193bView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 815fd66 - Browse repository at this point
Copy the full SHA 815fd66View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for aa78678 - Browse repository at this point
Copy the full SHA aa78678View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fd15fd1 - Browse repository at this point
Copy the full SHA fd15fd1View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a16b33e - Browse repository at this point
Copy the full SHA a16b33eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1e7f076 - Browse repository at this point
Copy the full SHA 1e7f076View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c62d431 - Browse repository at this point
Copy the full SHA c62d431View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8bef102 - Browse repository at this point
Copy the full SHA 8bef102View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0a79be2 - Browse repository at this point
Copy the full SHA 0a79be2View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bef8209 - Browse repository at this point
Copy the full SHA bef8209View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7a76928 - Browse repository at this point
Copy the full SHA 7a76928View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6b3897b - Browse repository at this point
Copy the full SHA 6b3897bView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1f328f0 - Browse repository at this point
Copy the full SHA 1f328f0View commit details
Commits on Nov 12, 2021
-
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
Configuration menu - View commit details
-
Copy full SHA for 17f8a5c - Browse repository at this point
Copy the full SHA 17f8a5cView commit details
Commits on Nov 15, 2021
-
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
Configuration menu - View commit details
-
Copy full SHA for 859818f - Browse repository at this point
Copy the full SHA 859818fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for eb47a08 - Browse repository at this point
Copy the full SHA eb47a08View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6795e21 - Browse repository at this point
Copy the full SHA 6795e21View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 897713f - Browse repository at this point
Copy the full SHA 897713fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 070b2aa - Browse repository at this point
Copy the full SHA 070b2aaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7aa4807 - Browse repository at this point
Copy the full SHA 7aa4807View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d17471c - Browse repository at this point
Copy the full SHA d17471cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 48ff23c - Browse repository at this point
Copy the full SHA 48ff23cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bd120f7 - Browse repository at this point
Copy the full SHA bd120f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ac75ce - Browse repository at this point
Copy the full SHA 9ac75ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f976b0 - Browse repository at this point
Copy the full SHA 8f976b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bc04ba - Browse repository at this point
Copy the full SHA 7bc04baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 736ca5b - Browse repository at this point
Copy the full SHA 736ca5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fa7173 - Browse repository at this point
Copy the full SHA 7fa7173View commit details -
Configuration menu - View commit details
-
Copy full SHA for 046dd99 - Browse repository at this point
Copy the full SHA 046dd99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3761b6a - Browse repository at this point
Copy the full SHA 3761b6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e58039f - Browse repository at this point
Copy the full SHA e58039fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6753a03 - Browse repository at this point
Copy the full SHA 6753a03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2594bfe - Browse repository at this point
Copy the full SHA 2594bfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31227d5 - Browse repository at this point
Copy the full SHA 31227d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for da67ded - Browse repository at this point
Copy the full SHA da67dedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a7f163 - Browse repository at this point
Copy the full SHA 8a7f163View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c40790 - Browse repository at this point
Copy the full SHA 7c40790View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03d20e2 - Browse repository at this point
Copy the full SHA 03d20e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8690287 - Browse repository at this point
Copy the full SHA 8690287View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2542d4 - Browse repository at this point
Copy the full SHA c2542d4View commit details