Fabio Baltieri
def230187b
test: fix more legacy #include paths
...
Add a bunch of missing "zephyr/" prefixes to #include statements in
various test and test framework files.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2022-08-02 16:41:41 +01:00
Hu Zhenyu
4fd935b6ef
test: Update the new ZTEST APIs tests/net/socket/misc
...
TEST=twister -T tests/net/socket/misc
Signed-off-by: Hu Zhenyu <zhenyu.hu@intel.com>
2022-07-25 11:08:26 -04:00
Gerard Marull-Paretas
ade7ccb918
tests: migrate includes to <zephyr/...>
...
In order to bring consistency in-tree, migrate all tests to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to #45388 for more details.
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 20:02:14 +02:00
Nazar Kazakov
f483b1bc4c
everywhere: fix typos
...
Fix a lot of typos
Signed-off-by: Nazar Kazakov <nazar.kazakov.work@gmail.com>
2022-03-18 13:24:08 -04:00
Robert Lubos
cea2c8de3d
tests: net: socket: Add getpeername() tests
...
Add tests for new getpeername() function.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-03-16 16:23:16 +01:00
Jukka Rissanen
0106e83c74
tests: net: socket: Add userspace tests to SO_BINDTODEVICE
...
Change the SO_BINDTODEVICE tests so that we test also userspace
mode.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2021-06-07 10:37:22 +03:00
Gerard Marull-Paretas
5899b8a190
tests: net: remove usage of device_pm_control_nop
...
device_pm_control_nop is now deprecated in favour of NULL.
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2021-04-28 12:53:09 -04:00
Robert Lubos
71532eb8c2
tests: net: sockets: Implement SO_BINDTODEVICE option tests
...
Add tests for SO_BINDTODEVCIE socket option.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2021-04-02 07:23:17 -04:00
Kumar Gala
a1b77fd589
zephyr: replace zephyr integer types with C99 types
...
git grep -l 'u\(8\|16\|32\|64\)_t' | \
xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
git grep -l 's\(8\|16\|32\|64\)_t' | \
xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00
Paul Sokolovsky
b2bfcc27b9
tests: socket: misc: Add tests for inet_pton()
...
Basic testcases for accepting correct input and rejecting invalid.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-05-07 08:30:32 +03:00
Andrew Boie
ce6b80470d
net: add missing syscall for gethostname()
...
We need all the socket APIs to work from user mode.
tests/net/socket/misc now runs in userspace.
Fixes : #15227
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-04-06 14:30:42 -04:00
Paul Sokolovsky
36e437f537
tests: socket: misc: Add test for gethostname()
...
Just a basic test.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2019-02-08 10:39:30 +02:00