Greg Shue
7f7b419411
Fix decode_signed32(); Add unit/bacnet/bacint tests ( #392 )
...
Fix decode_signed32() length for -8388608 and NULL apdu handling.
Add comprehensive unit tests for bacint.c functionality.
Verified by:
1. (Pass) From $bacnet-stack/test:
make clean test
2. (Pass) From $workspace (above $bacnet-stack):
west build -p always -b unit_testing \
bacnet-stack/zephyr/tests/unit/bacnet/bacint/ && \
./build/testbinary
3. (Pass) From $workspace (above $bacnet-stack):
./zephyr/scripts/twister -p unit_testing \
-T bacnet-stack/zephyr/tests/unit/bacnet/bacint/
Signed-off-by: Gregory Shue <gregory.shue@legrand.com >
Co-authored-by: Gregory Shue <gregory.shue@legrand.com >
2023-02-03 09:47:42 -06:00
Greg Shue
338d445b99
unit/bacnet/bits test ( #391 )
...
Co-authored-by: Gregory Shue <gregory.shue@legrand.com >
2023-02-02 11:45:47 -08:00
Greg Shue
eb36033fd8
[OSCBS-41] Update to Zephyr v3.2.0 ( #382 )
...
Updating to integrate with Zephyr v3.2.0 required:
- Update `west.yml` to import Zephyr v3.2.0 manifest
- Prefix include pathname of ztest.h with `zephyr/`
- Prefix every Zephyr header included pathname with `zephyr/`
- Change all Zephyr tests/samples to use `find_package`
- For unit_testing, use a distinct prj.conf which only references
Kconfigs defined in the Zephyr repo. (Zephyr constraint.)
- Move ztest headers into a zephyr-prefixed pathname
Co-authored-by: Gregory Shue <gregory.shue@legrand.com >
2023-01-18 08:50:31 -08:00
Greg Shue
35fa602bc6
[OSCbS-42] skip tests failing unit_testing (temp) ( #378 )
...
Co-authored-by: Gregory Shue <gregory.shue@legrand.com >
2023-01-09 08:47:02 -06:00
Greg Shue
b8d345679b
Oscbs 33 ci zephyr port ( #375 )
...
* zephyr: twister build fixes/patches
* zephyr: hack: suppress bvlc test (build failures)
Co-authored-by: Gregory Shue <gregory.shue@legrand.com >
2023-01-05 16:53:29 -08:00
Mikhail Antropov
32a312f974
Fix regressive zephyr unit tests ( #339 )
2022-09-21 09:08:37 -05:00
Mikhail Antropov
4b742effe1
Fix tests: ( #314 )
...
- misprint in ports/zephyr/bip-init.c
- error processing PROP_TRACKING_VALUE for the Color Temperature object in
src/bacnet/bacapp.c
- misprint MSV test
- add hostnport.c for each zephyr tests
- fix colors and ms-input tests - remove mocking Device_Inc_Database_Revision()
for zephyr tests
- debug the color temperature test
2022-07-30 03:31:38 -05:00
Greg Shue
183f6d9f6b
Merge pull request #253 from Michail-Antropov/OSCBC-15-testing-datalink-by-mock
...
Oscbc 15 testing datalink by mock
2022-04-26 07:14:56 -07:00
Mikhail Antropov
30bdb89040
Remove rx62n testing
2022-04-25 02:36:33 +03:00
Mikhail Antropov
c5304699bc
Fix datalink/mock test for non-unit_testing board
2022-04-21 17:08:12 +03:00
Mikhail Antropov
c85eeba2da
Fix code review.
...
Added datalink_receive test using ports/rx62n/bacnet.c as an example.
2022-04-21 16:34:38 +03:00
Mikhail Antropov
5d1eb03069
Add datalink/cobs unit test
2022-04-20 11:38:58 +03:00
Mikhail Antropov
183938cac7
Add test datalink using mock functions
2022-04-20 11:38:58 +03:00
Mikhail Antropov
584003bb0a
Extend Zephyr tests for the unit_testing board
...
Fix tests: basic/object/ai, basic/object/av, basic/object/access_credential
2022-04-20 11:35:57 +03:00
Greg Shue
8b8ef8f338
Issue 187 enable skipped ztest suites ( #189 )
...
* Fix some ztests that were skipped
* Expose bacapp_same_value()
* Fix bacapp, ptransfer tests
* Fix bugs in Load_Control object & tests
* refactor days functions from datetime module
* fix legacy ctests
* Add bacnet/basic/sys/days.[ch] to Zephyr build
* Update ztest to match from Zephyr v2.6.0; update ringbuf, datetime to build
* Fixup ztest test for object/acc
* Fix bvlc_address_from_ascii; enable/fix bvlc test
* Comment cleanup
* test/bacnet/basic/object/lc partially enabled
* Fix bacapp_decode_data_len return status on erroneous input
* fix ztest include fatal error
* fix ztest strsignal reference fatal error
* fix zassert_mem_equal reference syntax error
* fix zassert_mem_equal reference syntax error
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-08-16 17:29:40 -05:00
Greg Shue
c5f59af14b
Zephyr cleanup (fix date-time.c, cleanout device.c, use full C lib) ( #124 )
...
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-23 14:27:52 -05:00
Greg Shue
a95b7d597e
Zephyr core bacnet server port; bacnet/device test ( #123 )
...
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-22 09:24:38 -05:00
Greg Shue
5c2f198fd8
Issue 121 zephyr module cleanup west 0 8 0a1 ( #122 )
...
* Rm top-level west.yml; Cleanup manifests; Fix unit testing
* Cleanup sample
* Cleanup test CMakeLists
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-17 09:58:06 -05:00
Greg Shue
19869dccdb
Feature/zephyr ztest ( #118 )
...
* Leverage (older) embedded unit tests into external unit tests build upon copy of Zephyr's ztest library and CMake.
* Expand top-level CMake build to run external unit tests.
* Expand Zephyr module extension to run external unit tests via west or sanitycheck.
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-16 07:33:34 -05:00