1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

3157 Commits

Author SHA1 Message Date
Vincent Dupont
c5376f3055 tests/conn_can: reduce size of pkt buffers 2019-09-10 13:01:28 +02:00
f6ba7797b1
tests/log_color: add test application 2019-09-09 20:37:07 +02:00
Leandro Lanzieri
563a053bc1
Merge pull request #10983 from skullbox305/driver_ph_oem
drivers/ph_oem: support for Atlas Scientific pH OEM sensor
2019-09-09 10:18:49 +02:00
4922d6072e
Merge pull request #12146 from jcarrano/usb-warnings-fix
tests,examples/usb: PID, VID warning only when building.
2019-09-09 09:59:11 +02:00
Sebastian Meiling
c78ae0e33c
Merge pull request #12074 from kb2ma/coap/options_iterate
net/nanocoap: iterate options
2019-09-09 10:51:23 +03:00
Kees Bakker
35c5869a2e
Merge pull request #12117 from maribu/arduino-println
sys/arduino: Extended Serial.print() / println()
2019-09-07 21:16:43 +02:00
benpicco
cf56f6a942
Merge pull request #12172 from bergzand/pr/pkg/cifra
Cifra: initial import of package
2019-09-07 16:37:29 +02:00
Marian Buschsieweke
ab5a6d6187
tests/sys_arduino: Added tests for Serial.print 2019-09-05 23:55:18 +02:00
Igor Knippenberg
16e0c2648d tests/driver_ph_oem: Added a test application for the pH OEM driver 2019-09-05 12:47:10 +02:00
1c9e9351ed
tests/cifra: Add test for aes-gcm validation 2019-09-05 10:25:54 +02:00
aa6f9e5b25
Merge pull request #12164 from keestux/driver_sht2x_cleanup
tests/driver_sht2x: avoid negative number after decimal dot
2019-09-04 07:58:18 +02:00
f750c3a474
tests/driver_hts221: cleanup temperature display logic
This saves 12 bytes when building for samr21-xpro
2019-09-03 21:36:26 +02:00
Kees Bakker
3d6b6d868d tests/driver_sht2x: avoid negative number after decimal dot
Also don't include printf_float
2019-09-03 20:50:25 +02:00
d0a8060ea6
tests/driver_bmx280: cleanup temperature value display 2019-09-03 12:58:56 +02:00
benpicco
7cbc239a00
Merge pull request #12140 from aabadie/pr/tests/driver_bmp180_cleanup
tests/driver_bmp180: cleanup application
2019-09-02 21:55:29 +02:00
db12eeb1a7
tests/driver_bmp180: remove useless printf_float module 2019-09-02 18:33:02 +02:00
73e1c563b4
tests/driver_bmp180: fix display with negative temperature 2019-09-02 18:33:02 +02:00
Gaëtan Harter
c59d263c61
tests/xtimer_periodic_wakeup: blacklist testing on native
The test randomly fails on `native` due to timers being not accurate but
it cannot be otherwise. So better disable it than raising fake errors.

    ...
    151 diff=3
    150 diff=4
    149 diff=3539
    148 diff=4
    147 diff=3
    ....
    min/max error: 1/3539
    too large difference.

    Test Failed.

    Timeout in expect script at "child.expect_exact("Test complete.")"
    (tests/xtimer_periodic_wakeup/tests/01-run.py:22)
2019-09-02 18:12:04 +02:00
Gaëtan Harter
52000b83be
tests/evtimer: blacklist testing on native
The test randomly fails on `native` due to timers being not accurate but
it cannot be otherwise. So better disable it than raising fake errors.

    main(): This is RIOT! (Version: buildtest)
    Testing generic evtimer
    This should list 2 items
    ev #1 offset=1000
    ev #2 offset=500
    This should list 4 items
    ev #1 offset=659
    ev #2 offset=341
    ev #3 offset=500
    ev #4 offset=2454
    Are the reception times of all 4 msgs close to the supposed values?
    At    662 ms received msg 0: "#2 supposed to be 659"
    At   1009 ms received msg 1: "#0 supposed to be 1000"
    At   1511 ms received msg 2: "#1 supposed to be 1500"

    Traceback (most recent call last):
      File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/tests/evtimer_msg/tests/01-run.py", line 33, in <module>
        sys.exit(run(testfunc))
      File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/dist/pythonlibs/testrunner/__init__.py", line 29, in run
        testfunc(child)
      File "/tmp/dwq.0.3125418833043728/ef3af88c4b3615788b164464a437df5c/tests/evtimer_msg/tests/01-run.py", line 26, in testfunc
        assert(actual in range(expected - ACCEPTED_ERROR, expected + ACCEPTED_ERROR))
    AssertionError
2019-09-02 16:37:05 +02:00
Juan Carrano
8b88666f3d tests,examples/usb: PID, VID warning only when building.
The warning issued when the PID and VID are set to the default values should
not be printed on `make clean` and other targets, only with `make all` and it
should be a proper target.

To do: replace shell echos with proper $(warning ..) calls.
2019-09-02 12:20:32 +02:00
fabian18
2edf153cf8 drivers/at86rf2xx: do not hang on no dev 2019-09-02 10:27:24 +02:00
benpicco
a10c3f09a4
Merge pull request #12136 from aabadie/pr/tests/driver_io1_xplained_printf_float
tests/driver_io1_xplained: remove printf_float dependency
2019-09-01 15:43:04 +02:00
6754f71c3a
tests/driver_io1_xplained: remove printf_float dependency
This saves a lot of ROM and is easily replaced with basic temperature computation
2019-09-01 15:16:32 +02:00
Juan I Carrano
866b126f36
Merge pull request #12119 from cladmi/pr/makefiles/utils/uppercase_function
makefiles/utils: functions for lowercase and uppercase
2019-08-29 16:04:58 +02:00
Gaëtan Harter
765f3e9327
makefiles/utils: functions for lowercase and uppercase
Add make only function to convert strings to lowercase and uppercase.
This can replace the `$(shell echo $(var) | tr 'a-z-' 'A-Z_')` pattern.
Using the 'make' implementation results in being around 100 times faster.
2019-08-29 13:59:31 +02:00
Martine Lenders
1f086932d5
Merge pull request #12046 from Harisanthosh/gnrc_udp_nullpointer
net/gnrc/udp: Adding Null pointer check in gnrc_netif_hdr_build
2019-08-29 13:01:18 +02:00
Hauke Petersen
16bbd2f864 tests/unittests/bluetil: adapt to byteorder fixes 2019-08-28 16:49:21 +02:00
Hauke Petersen
a237971cfd tests/l2util: adapt to changes for BLE 2019-08-28 16:49:21 +02:00
harisanthosh
f583368842 net/gnrc/udp: Adding Null pointer check in gnrc_netif_hdr_build 2019-08-26 12:46:26 -07:00
Kevin "Tristate Tom" Weiss
b9a01437be
Merge pull request #12072 from cladmi/pr/test_tools/shell_no_echo
tests/test_tools: add a test for the testing tools environment
2019-08-26 17:12:14 +02:00
Ken Bannister
47ef5c1656 net/nanocoap: add unit test for iterate options 2019-08-24 07:46:54 -04:00
570f95f2bb
tests/pkg_semtech-loramac: disable rx thread for arduino-mega2560
Otherwise the application cannot be linked for this platform
2019-08-23 21:08:35 +02:00
Kevin "Tristate Tom" Weiss
1b1c902dd3
Merge pull request #12022 from JannesVolkens/tmp00x
driver/tmp00x: make tmp006 more generic
2019-08-23 13:26:09 +02:00
cladmi
b3cb076286
tests/test_tools: add a test for the testing tools environment
Check the interaction with a board through make term.
It is using a shell without echo or prompt for reference.

It currently checks that there is no local echo.
2019-08-23 12:14:52 +02:00
Jannes
90c4ef04ef driver/tmp00x: Change tmp006 to tmp00x and add tmp007
Rename TMP006 to TMP00x
Add TMP007 sensor support to TMP00X
Change uint8_t reg to uint16_t
Add to doxygen documentation group
Expose compile time configurations
Move defines from .c to .h
Change double to float, because double is not needed
Add TMP007 register information
2019-08-23 12:11:16 +02:00
Juan I Carrano
647b0cdd29
Merge pull request #12040 from cladmi/pr/tests/unittests/move_cpp_test
tests/cpp_ctors: move tests-cpp_ctors out of unittests
2019-08-22 15:46:38 +02:00
349b83c117
Merge pull request #6927 from OTAkeys/pr/ncv7356
can: add ncv7356 SW transceiver driver
2019-08-22 15:18:35 +02:00
Gaëtan Harter
1e0ca7ca7f
tests/unittests: remove the 'DISABLE_TEST_FOR_ARCH'
Remove the arch disabling tests handling as now unused.

If something like this is necessary again the test must be put
outside of unittests.
2019-08-22 12:39:47 +02:00
Gaëtan Harter
5638881e5b
tests/cpp_ctors: move tests-cpp_ctors out of unittests
This moves 'unittests/tests-cpp_ctors' to its own test.
It prevents requiring 'cpp' in the 'unittests' that forced almost all
architectures to link the unittests with `g++`.
It also removes the need to have disabled tests for architectures.

Some boards were actually not big enough to compile unittests.
But were hidden by the 'cpp' missing feature.

Blacklist boards that were disabled for cpp test even though they
provide the 'cpp' feature.
2019-08-22 12:39:47 +02:00
Gaëtan Harter
1ec4e45f77
tests/unittests: blacklist 8/16bit boards as they do not compile
The boards do not compile the unittests due to issue with too long
integers and other issues.
2019-08-22 10:52:58 +02:00
Juan I Carrano
c35cbda1bf
Merge pull request #12038 from cladmi/pr/tests/crypto/add_rfc_nist_tests
tests/sys_crypto: add RFC3610 and NIST SP 800-38C tests
2019-08-21 18:46:43 +02:00
Gaëtan Harter
46c79018f3
tests/sys_crypto: add tests from NIST SP 800-38C
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
d61f3c23ca
tests/sys_crypto: add remaining tests from RFC 3610
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
1e7242ac82
tests/sys_crypto: change naming and formatting
* use names with RFC
* add terminating comma
* remove newlines between tests values

This prepares for the format of the next commit adding all RFC tests.
This will reduce the number of changes in upcoming commit.
2019-08-21 17:52:45 +02:00
Gaëtan Harter
330b9669a3
tests/sys_crypto: move tests-crypto out of unittests
This moves unittests/tests-crypto to its own test.
It should allow adding big test vectors without preventing boards from
running the tests.
2019-08-21 17:52:45 +02:00
Juan I Carrano
e7957e6d9b
Merge pull request #11688 from cladmi/pr/tests/pthread_rwlock/enable_in_ci
tests/pthread_rwlock: run the test in CI
2019-08-21 17:15:53 +02:00
Marian Buschsieweke
938b36a29c
Merge pull request #12054 from cladmi/pr/unittests/sht1x/limit_test_vectors_on_board
unittests/sht1x: decrease the amount of tested values on board
2019-08-21 16:03:04 +02:00
Gaëtan Harter
9cd08d4999
tests/pthread_rwlock: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-08-21 15:46:47 +02:00
Gaëtan Harter
0aae704fd4
tests/pthread_rwlock: lock around prints
The test assumes that 'printf/puts' are non interruptible operations.
Use a mutex to guarantee it.

Without this, the automated test was failing in some configurations with
lines being cut by others.
2019-08-21 15:46:19 +02:00
Gaëtan Harter
2a24c7ee20
unittests/sht1x: decrease the amount of tested values on board
Reduce the amount of tested values by a 100.
This makes the testing time go from 3 minutes to 2 seconds on
`frdm-kw41z`.

Testing that the integer calculation matches the float one does not need
to be performed on the full range on boards. Checking some values should
be enough to detect overflow issues.
The full range checking is kept on native.
2019-08-21 14:54:35 +02:00