Ludwig Ortmann
a7f7d7e516
Revert "tests: don't build test/libfixmath on Travis CI"
...
This reverts commit f061d0214e
.
2014-12-17 09:47:43 +01:00
Martine Lenders
17ef92eade
Merge pull request #2181 from phiros/tests_sha256_transform_into_unittest
...
tests: transformed tests/sha256 into a unittest
2014-12-12 16:29:16 +01:00
Philipp Rosenkranz
f5d941ac22
tests: transformed tests/bloom into an unittest
2014-12-11 22:56:40 +01:00
Philipp Rosenkranz
1024e0b8be
tests: transformed tests/sha256 into an unittest
2014-12-11 21:57:01 +01:00
Ludwig Ortmann
122d488a42
Merge pull request #2165 from haukepetersen/fix_test_uart
...
test/periph_uart_xx: switched to feature based whitelisting
2014-12-09 14:44:15 +01:00
Ludwig Ortmann
e850078769
Merge pull request #2162 from cgundogan/vtimer_set_msg_param_type
...
vtimer: set custom msg_t.type with vtimer_set_msg
2014-12-09 11:12:52 +01:00
Cenk Gündoğan
6ee5e737f9
vtimer: set custom msg_t.type with vtimer_set_msg
...
Currently, when using vtimer_set_msg the corresponding msg_t is filled
with the MSG_TIMER ("12345") type.
This approach makes it difficult to differentiate between incoming
messages via vtimer_set_msg.
In this PR I introduce another parameter for the vtimer_set_msg
function to specify a custom msg_t type.
2014-12-09 10:07:26 +01:00
Hauke Petersen
e859d74ea4
tests: fixed blacklisting for UART tests
...
changed from explicit blacklisting to feature based approach
2014-12-08 18:08:49 +01:00
Hauke Petersen
934f7b6b33
Merge pull request #2161 from haukepetersen/fix_test_nrf24
...
test/driver_nrf24l01p: changed default GPIOs
2014-12-08 16:16:37 +01:00
Hauke Petersen
ec62cbf7ac
test/driver_nrf24l01p: changed default GPIOs
...
not all boards have GPIO_x > GPIO_7, so the new values are
safer to use.
2014-12-08 15:41:54 +01:00
Philipp Rosenkranz
536c910980
Merge pull request #2157 from LudwigOrtmann/unittests-lib
...
tests/unittests: merge lib-ringbuffer into core
2014-12-08 15:36:41 +01:00
Ludwig Ortmann
0027f90be4
Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
...
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Ludwig Ortmann
4feec9243f
tests/unittests: merge lib-ringbuffer into core
...
Fixup for https://github.com/RIOT-OS/RIOT/pull/2017
2014-12-08 10:15:48 +01:00
René Kijewski
6b559faf88
tests: add UBJSON unittests
2014-12-03 20:42:51 +01:00
Ludwig Ortmann
e6c808d5fa
Merge pull request #1970 from Kijewski/optimize-cib
...
core: inline `cib.c`
2014-12-03 17:12:48 +01:00
PeterKietzmann
91c5620a84
Initial import of a DAC test application
2014-12-03 08:38:05 +01:00
Oleg Hahm
0c967c4d3f
cpu: msp430: renamed msp430x16x to msp430fxyz
2014-12-02 17:46:57 +01:00
Fabian Nack
eebfd5011a
drivers - cc110x: Initial import of new cc110x driver
2014-12-01 17:14:02 +01:00
Ludwig Ortmann
6b95159632
tests/hwtimer_spin: revert behavior, fix doc
2014-11-28 16:23:24 +01:00
Ludwig Ortmann
ac8f51cb52
tests/hwtimer_wait: test smallest value possible
...
By selecting the start value as a multiple of HWTIMER_SPIN_BARRIER+1, the
test now includes the smallest non-spinning value.
2014-11-28 13:48:25 +01:00
Oleg Hahm
565d70cab3
Merge pull request #2094 from OlegHahm/fix_bitarithm
...
core: Fix bitarithm and unittests
2014-11-27 13:02:44 +01:00
Hauke Petersen
b7b03aced7
test/hwtimer_spin: test slightly wider range
...
test is now also testing for values slightly above SPIN_BARRIER
2014-11-26 18:54:07 +01:00
Oleg Hahm
3cf43db63e
unittests: test full 16 bit range for bitarithm
...
Also uses a better pseudo random number.
2014-11-26 16:52:51 +01:00
PeterKietzmann
d8a26d5aa6
Initial import of nrf24l01p lowlevel functions
2014-11-26 13:50:29 +01:00
Ludwig Ortmann
685acd8a54
Merge pull request #2070 from jfischer-phytec-iot/wip@hdc1000
...
Sensor Driver for HDC1000
2014-11-26 10:32:17 +01:00
Martine Lenders
21adda9370
[SQUASH ME] pktqueue: fix unittests
2014-11-25 21:52:28 +01:00
Ludwig Ortmann
8ef2257796
test/coap: update blacklist for features
...
Boards that don't have a transceiver are automatically filtered out already.
2014-11-24 16:07:09 +01:00
Johann F
5b1a519875
add test app for hdc1000 sensor
2014-11-24 13:15:58 +01:00
René Kijewski
89ab9f720f
Merge pull request #2066 from N8Fear/lint
...
lint: tests: fix improper use of format specifiers
2014-11-21 15:42:17 +01:00
Hinnerk van Bruinehsen
12d0c5bbf2
lint: tests: fix improper use of format specifiers
2014-11-21 15:25:56 +01:00
Martine Lenders
03654d74ef
Merge pull request #2027 from authmillenon/netdev-proto
...
netdev: Add protocol field to netdev_hlist_t struct + cppcheck suppressions
2014-11-21 14:44:16 +01:00
René Kijewski
09b274fef7
tests: fix tests/posix_semaphore
2014-11-21 14:33:28 +01:00
Thomas Eichinger
e7ae2f6bfb
tests: define random default GPIOs to pass Travis builds
2014-11-21 13:26:41 +01:00
Martine Lenders
8ee3edcb13
netdev: Add protocol to header list nodes
2014-11-21 12:37:48 +01:00
PeterKietzmann
f207b114e4
Initial import of the updated srf02 driver with general i2c interface
2014-11-21 09:21:27 +01:00
Ludwig Ortmann
6eaaac6372
Merge pull request #2041 from LudwigOrtmann/native-random
...
native: peripheral random interface
2014-11-19 06:25:39 -08:00
Ludwig Ortmann
3d9003f18a
tests/periph_random: fix warnings, conventions
2014-11-19 14:26:58 +01:00
9ce0b676b4
core: sys: move ringbuffer to core
2014-11-19 14:18:39 +01:00
René Kijewski
f23771c6fe
tests: extend cib unittest
2014-11-11 17:39:40 +01:00
René Kijewski
08810d605b
embunit: fix macros
2014-11-10 20:50:50 +01:00
Martine Lenders
1138360a14
unittests: make test macros save for strict aliasing
2014-11-08 19:13:23 +01:00
Martine Lenders
f6795b461c
unittests: Add missing semicolons to macro calls
2014-11-08 13:45:11 +01:00
Hauke Petersen
71568466b5
Merge pull request #1826 from PeterKietzmann/extend_test_periph_spi
...
tests/periph_spi: print rx-buffer on slave
2014-11-06 16:47:12 +01:00
Hauke Petersen
1a9e19cc6c
tests/periph_adc: added test for adc driver
2014-11-06 15:19:36 +01:00
Hauke Petersen
d484255bf7
tests: added test for L3G4200 device driver
2014-11-06 10:36:41 +01:00
56924f28a8
Merge pull request #1944 from authmillenon/msg_send_receive-test
...
tests: Add automatic test for msg_send_receive
2014-11-05 14:49:07 +01:00
Martine Lenders
30c7f37e68
tests: Add automatic test for msg_send_receive
2014-11-05 14:45:25 +01:00
Hauke Petersen
900e01bc26
Merge pull request #1912 from thomaseichinger/lsm303dlhc
...
lsm303dlhc: initial import of lsm303dlhc driver
2014-11-05 14:16:13 +01:00
benpicco
cedc588d77
Merge pull request #1782 from benpicco/fix_malloc
...
check if the requested memory is really available in _sbrk_r
2014-11-05 13:21:40 +01:00
Thomas Eichinger
88fce936e9
lsm303dlhc: initial import of lsm303dlhc driver
...
TODO: Accelerometer does not return valid values yet
2014-11-05 13:04:47 +01:00
Benjamin Valentin
39d73d753c
resurrect malloc test
2014-11-05 12:11:24 +01:00
Christian Mehlis
2114a8267d
added board airfy beacon
2014-11-02 18:26:42 +01:00
Christian Mehlis
f3b1753ac7
added spark core board
2014-11-02 14:36:42 +01:00
Hauke Petersen
7d8e9def20
tests/periph_uart_int: fixed formatting
2014-10-30 21:51:31 +01:00
Thomas Eichinger
44dcd0e631
Merge pull request #1817 from haukepetersen/add_driver_lps331ap
...
drivers: added driver for LPS331AP pressure sensor
2014-10-30 21:05:50 +01:00
Martine Lenders
3bfbc60a48
Merge pull request #1731 from authmillenon/netdev-test-dummy
...
netdev: Provide test network device with netdev interface
2014-10-30 20:37:37 +01:00
Martine Lenders
0de78831f9
unittests: Provide unittests for net_dev_dummy
...
* tests if net_dev_dummy is correct and if driver part of net_dev is
correct
2014-10-30 20:37:21 +01:00
Martine Lenders
cf3fdaabb6
unittests: add test network device
...
The reasoning behind this commit is twofold:
1. test the "lower" part (the device part) of netdev
2. provide a well defined testing infrastructure for modules that utilise
netdev
The actual tests that represent 1. are provided in the following commit
2014-10-30 20:37:20 +01:00
Hauke Petersen
f06eeeaaef
tests: added test for LPS331AP sensor driver
2014-10-30 20:24:51 +01:00
Oleg Hahm
9a61d8cf1c
core: move optional tcb members to DEVELHELP
2014-10-30 16:37:10 +01:00
Hauke Petersen
d3f207c8be
tests: added test for MQ-3 alcohol sensor driver
2014-10-30 14:05:34 +01:00
PeterKietzmann
7aec98c57d
Added a function for the slave to print received data.
2014-10-24 15:43:01 +02:00
René Kijewski
677d690e2b
core: introduce thread_yield_higher(), yield less
...
Fixes #1708 .
Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.
This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.
Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.
`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.
This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
2014-10-24 00:09:56 +02:00
5146c66786
core: adapt to msg_try_send
2014-10-22 12:37:33 +02:00
Oleg Hahm
94824026cd
tests: use correct PID for main thread
...
Since PIDs are not beginning at 0 any more, this test was failing.
2014-10-17 23:17:02 +02:00
BytesGalore
6dc157208a
c++: tests: add extern "C"
in header files, i.e. only present in ./unittests
2014-10-17 13:58:10 +02:00
Ludwig Ortmann
801928df4d
tests/periph_cpuid: let test fail w/o CPUID_ID_LEN
2014-10-16 19:35:47 +02:00
Ludwig Ortmann
a20e287a96
make: introduce and use periph_cpuid feature
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
b9d17e38f3
tests/periph_rtt: let build fail w/o RTT
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
4cafe7c5a9
make: introduce and use periph_rtt feature
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
d9dd5b1913
tests/periph_random: let build fail w/o RANDOM
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
3b52057fe5
make: introduce and use periph_random feature
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
95884c1a30
tests/periph_pwm: let build fail w/o PWM
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
b3ecfd0a6e
make: introduce and use periph_pwm feature
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
2cb8ea672a
tests/periph_gpio_exti: let build fail w/o GPIO
2014-10-16 19:35:41 +02:00
Ludwig Ortmann
7cea2f536e
tests/periph_gpio: let build fail without GPIO
2014-10-16 19:02:18 +02:00
Martine Lenders
a569f2b92c
net: Initial import of a global packet buffer
2014-10-16 11:52:30 +02:00
Hauke Petersen
8409cb04c0
tests: added test for ISL29020 light sensor driver
2014-10-15 14:54:07 +02:00
Hauke Petersen
4ef34af9b8
tests: added i2c driver test
2014-10-15 14:50:19 +02:00
Ludwig Ortmann
92079312e2
make: introduce and use periph_spi feature
2014-10-13 18:18:19 +02:00
Ludwig Ortmann
1e73bbb961
tests/periph_spi: let build fail without SPI
2014-10-13 18:16:57 +02:00
Martine Lenders
36f8e3c5c3
Merge pull request #1640 from authmillenon/packetqueue
...
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:12:28 +02:00
Martine Lenders
e7e62cffdb
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:11:50 +02:00
Martine Lenders
42f96b0d60
Merge pull request #1699 from Kijewski/issue-1586
...
core: Provide functions for different byte orders
2014-10-10 07:38:57 +02:00
Martine Lenders
bf21a9eb0b
netdev.tests: Remove unneccessary #ifndef path
2014-10-09 09:40:58 +02:00
Martine Lenders
e93faa289b
netdev.tests: Kill processes properly
2014-10-08 11:12:59 +02:00
Martine Lenders
37678505a9
netdev.tests: Add fixes for environment variables
...
+ minor include fix
2014-10-08 09:48:04 +02:00
Oleg Hahm
9cf21545fa
make: fix dependencies
...
uart0 depends on POSIX, not the other way around.
2014-10-07 12:14:14 +02:00
Ludwig Ortmann
9e15a34a81
tests/driver_pir: set default GPIO
2014-10-06 18:55:54 +02:00
Ludwig Ortmann
6262c4427e
make: add gpio feature
2014-10-06 18:55:54 +02:00
René Kijewski
f49bd3e660
make: add Makefile.features telling the BOARDs' features
...
Please see #1715 .
Closes #1715 .
This PR implements the new Makefile variables "FEATURES_PROVIDED" and
"FEATURES_REQUIRED". A board *can* have a new file `Makefile.features`
which looks like:
```make
FEATURES_PROVIDED = transceiver
```
An application can have a corresponding line
```make
FEATURES_REQUIRED = transceiver
```
If the selected BOARD does not fulfil the requirements of the
application, then a *warning* is issued at compile time.
This change only includes the feature "transceiver", further features
are expected to be listed in further PRs. The requirement "transceiver"
is automatically added if the application uses the module
"defaulttransceiver".
`make buildtest` understands the new feature listing, so the user won't
need to add boards to `BOARD_BLACKLIST` manually.
Part of the change are the added Make targets
* `info-features-missing`, which prints the required features
`\setminus` the provided features. The output is empty if there are no
features missing.
* `info-boards-features-missing`, the same as `info-features-missing`
but as a table for all boards, but heeded `BOARD_WHITELIST` and
`BOARD_BLACKLIST`.
Applications don't have to use this new feature. This change does not
break existing Makefile.
2014-10-06 17:42:11 +02:00
Martine Lenders
0afc3ac6f1
tests: fix netdev test
2014-10-02 13:14:31 +02:00
Martine Lenders
0d33a00d36
Merge pull request #1492 from authmillenon/net-dev-base
...
drivers: Introduce a general interface for network device drivers
2014-10-02 12:29:59 +02:00
Martine Lenders
5596af697d
tests: Add functionality test for netdev_base
2014-10-01 23:22:54 +02:00
Ludwig Ortmann
19cb5bd153
tests: adopt for hwtimer_spin_barrier
...
also clean out unneeded headers
2014-10-01 19:53:43 +02:00
Hinnerk van Bruinehsen
84d48fa476
tests: fix mutex_unlock_and_sleep pids
2014-10-01 12:28:13 +02:00
Martine Lenders
2fc0ae28cf
Merge pull request #1645 from authmillenon/unittests-empty-dirs
...
unittests: make: Fix unittests for branch changes
2014-10-01 12:01:41 +02:00
René Kijewski
bc0f5ebf4c
tests: fix bad copy+paste in tests-core.h
2014-09-29 21:07:02 +02:00
René Kijewski
0c3bc4a58d
tests: Add unittests for byteorder.h
2014-09-29 21:07:02 +02:00
Ludwig Ortmann
e75dd40eea
drivers: import PIR motion sensor driver
...
Includes an application for manual testing.
2014-09-26 18:07:46 +02:00
Thomas Eichinger
bf256f63a3
samr21-xpro: initial import for the samr21-xpro board
2014-09-25 14:37:47 +02:00
Thomas Eichinger
89608b613e
tests/periph_spi: fix usage of board specific LED define
2014-09-25 13:59:12 +02:00
Hauke Petersen
934eb44c13
Merge pull request #1488 from haukepetersen/add_stm32f0_spi
...
board/cpu: added SPI driver for the stm32f0discovery
2014-09-25 11:59:11 +02:00
Ian Martin
505ced492a
tests/bloom: Un-blacklist boards mbed_lpc1768, stm32f3discovery, pca10000, pca10005, and yunjia-nrf51822.
2014-09-24 16:55:04 -04:00
Ian Martin
853640afbc
tests/bloom: Prevent word lists from being copied into RAM.
2014-09-24 16:51:53 -04:00
Hauke Petersen
1f1360eff9
[SQUASH ME] test: fixed according to updated GPIO interface
2014-09-24 15:41:48 +02:00
Hauke Petersen
1020d90b2b
[SQUASH ME] test: guard if no SPI device defined
2014-09-24 15:41:48 +02:00
Hauke Petersen
faf930e36b
[SQUASH ME] tests/periph_spi: rewrote test
2014-09-24 15:41:48 +02:00
Hauke Petersen
969b8401d8
tests: added periph_spi test
2014-09-24 15:41:48 +02:00
Hinnerk van Bruinehsen
bef32717bf
test:cbor: supress warnings about nan/infty
2014-09-19 23:59:49 +02:00
Christian Mehlis
88ae531ef9
Merge pull request #1679 from cgundogan/bloom_t_as_typedef
...
sys: use typedef for `struct bloom_t`
2014-09-19 13:18:39 +02:00
Hauke Petersen
905c97db5d
tests/examples: blacklisted yunjia-nrf51822
2014-09-18 18:02:46 +02:00
Cenk Gündoğan
0a4ea07daa
sys: use typedef for struct bloom_t
...
`bloom_t` is defined as a struct.
`_t` can mislead the user to think of bloom_t
as a typedef (see our coding conventions) instead of a struct.
Thus, I modified `struct bloom_t` to be a *typedefed* struct.
Another solution would be to rename bloom_t to sth. like bloom_s
everywhere and use `struct bloom_s` instead of `bloom_t`.
2014-09-17 19:54:40 +02:00
René Kijewski
0cc699c0ce
lint: reduce scope
...
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
René Kijewski
f061d0214e
tests: don't build test/libfixmath on Travis CI
...
Very often the build unexplainably hangs.
2014-09-11 13:13:59 +02:00
Ludwig Ortmann
95a1a3f324
tests/hwtimer: add self as author
2014-09-09 13:45:33 +02:00
Ludwig Ortmann
97c0ddbc92
tests: hwtimer shorten wait period
...
A sub-two-second period is needed for 16 bit timers.
2014-09-09 13:45:33 +02:00
Martine Lenders
4c6e17b39b
unittests: make: Fix unittests for branch changes
...
Changing between branches in git typically leaves directories empty and
does not remove them. If you have different unittests in different
branches this leads to an error in building them, since the current
configuration expects a Makefile in all `tests-*` directory. This change
configures Make to search for a Makefile in `tests-*` rather than just
assuming that there is one.
2014-09-08 12:36:15 +02:00
Ludwig Ortmann
942ce1b29d
Merge pull request #1628 from LudwigOrtmann/hwtimer_wait_fixup_2
...
tests: improve calculation in hwtimer_wait
2014-09-04 01:08:57 -07:00
Fabian Nack
7650ef412f
tests/examples: blacklisted msbiot for some tests
2014-09-02 15:45:50 +02:00
Ludwig Ortmann
31391622a3
tests: improve calculation in hwtimer_wait
...
Kudos to @Kijewski
2014-08-29 18:51:18 +02:00
Ludwig Ortmann
377c7a4136
tests: remove need for pow,log2 in hwtimer_wait
...
Default to precalculated value for geometric series, so pow and log2
are not needed.
2014-08-28 18:37:10 +02:00
Ludwig Ortmann
77794c041e
tests: print expected duration in hwtimer_wait
2014-08-28 12:39:58 +02:00
Ludwig Ortmann
457be31b6f
Merge pull request #1616 from krf/fix-warnings
...
Fix comment
2014-08-27 19:38:27 +02:00
Hauke Petersen
ae23d813b1
Merge pull request #1621 from haukepetersen/add_nrf_cpuid
...
cpu/nrf51822: added cpuid driver
2014-08-27 19:11:04 +02:00
Hinnerk van Bruinehsen
4ca3a49a5d
tests: blacklist failing test on arduino-mega2560
2014-08-27 17:47:24 +02:00
Martine Lenders
1c25af18e2
Merge pull request #1620 from authmillenon/unittests-easy
...
unittests: Simplify module-wise rebuild
2014-08-27 15:41:08 +02:00
Hauke Petersen
69ab0c5d32
test/periph_cpuid: renamed cpuid test application
2014-08-27 15:13:03 +02:00
Martine Lenders
9745a78c02
Merge pull request #1612 from authmillenon/tests_nativenet_expect
...
tests: Add expect script for nativenet tests
2014-08-27 14:22:09 +02:00
Martine Lenders
67fcd0d71b
unittests: Simplify module-wise rebuild
2014-08-27 14:04:33 +02:00
Kevin Funk
554e431746
Fix comments
2014-08-27 11:36:36 +02:00
Martine Lenders
0ee8758422
tests: nativenet: Add README.md
2014-08-27 11:32:33 +02:00
Martine Lenders
c1971fb5a9
tests: nativenet: Add return for radio thread
2014-08-27 11:23:35 +02:00
Ludwig Ortmann
3d611679ee
Merge pull request #1599 from LudwigOrtmann/issue-1597
...
sys/cbor,tests: fix cbor daylight saving time
2014-08-27 11:11:49 +02:00
Martine Lenders
5bad5a0fda
unittests: Fix coding conventions
2014-08-27 10:48:10 +02:00
Martine Lenders
2709d95e1a
unittests: Fix -Wunused-parameter warnings
2014-08-27 10:48:09 +02:00
Martine Lenders
4960c57153
unittests: Fix -Waddress warnings
2014-08-27 10:48:05 +02:00
Ludwig Ortmann
40a81e4f4c
tests: fix cbor unittest
...
Some member of `struct tm val` were not set, resulting in undefined
behavior.
2014-08-27 10:25:23 +02:00
Ludwig Ortmann
ea26ebbaa9
tests: fix lifo unittest
...
The API was violated resulting in an array overrun.
2014-08-26 18:06:31 +02:00
Martine Lenders
93cff41607
tests: Add expect script for nativenet tests
2014-08-26 10:54:09 +02:00
Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
2014-08-23 16:16:26 +02:00
Hauke Petersen
addfaefe8a
Merge pull request #1598 from haukepetersen/add_nrf_rtt
...
cpu/board: added RTT driver for NRF51822
2014-08-22 02:13:43 +02:00
Hauke Petersen
9fb37be0aa
tests/periph_rtt: added test for RTT drivers
2014-08-22 00:54:10 +02:00
René Kijewski
eaed2f1b89
Merge pull request #1594 from authmillenon/unittests-no-auto-init
...
unittests: do not use auto_init
2014-08-21 23:51:48 +02:00
Martine Lenders
2bbe92a75a
tests: Fix tests that were defect
...
* I used pexpect instead of when expect script was not working expect, since
TCL confuses me
* I deleted the thread_exit test since it was completely invalid
2014-08-21 23:21:06 +02:00
René Kijewski
27e393621a
core: clist is a cyclic list
2014-08-21 21:10:03 +02:00
Martine Lenders
b1035acc98
unittests: do not use auto_init
2014-08-21 20:45:36 +02:00
Hauke Petersen
8f75521bc8
test/periph_random: added test for RNG driver
2014-08-21 20:21:47 +02:00
René Kijewski
89a26b7331
Merge pull request #1562 from Kijewski/the-first-two-commits-of-the-branch-issue-198
...
posix: minor pthread_barrier clean up
2014-08-15 14:44:54 +02:00
Hauke Petersen
9da0abc14d
tests/periph_gpio: added test cases for GPIO driver
2014-08-15 12:24:24 +02:00
René Kijewski
46c669f455
tests: clean up test_pthread_barrier Makefile
2014-08-11 16:22:43 +02:00
Hauke Petersen
477bc5a73d
tests/periph_uart: added two UART driver tests
...
- test for UART driver in blocking mode
- test for UART driver in interrupt driven mode
2014-08-11 15:08:41 +02:00
Oleg Hahm
1de5c2b4a0
fixed remaining variables to kernel_pid_t
2014-08-07 17:29:53 +02:00
Oleg Hahm
2e396af248
tests: combine declaration and definition
2014-08-07 16:31:34 +02:00
Oleg Hahm
0ad7b170ed
make kernel_pid_t comparisons consistent
2014-08-07 16:31:27 +02:00
Oleg Hahm
aa2ecf6216
initialize kernel_pid_t correctly
2014-08-07 16:31:27 +02:00
Hauke Petersen
b0d3a55989
tests: added test for low-level PWM driver
2014-08-07 16:16:06 +02:00
Oleg Hahm
6c2b2cea61
Merge pull request #1415 from krf/cbor
...
cbor: CBOR implementation for RIOT-OS (SWP)
2014-08-05 21:32:31 +02:00
Kevin Funk
e8141ca5d8
cbor: CBOR implementation for RIOT-OS
...
This is a malloc-free implementation of the Concise Binary Object
Representation (CBOR) data format for the RIOT-OS.
This implementation mostly stand-alone, and it should be pretty easy to
port to other platforms. We're only using the C STL and some custom
network-related functionaliy which could be easily replaced by depending
on arpa/inet.h.
The CBOR API is straight-forward to use and provides encoding/decoding
functionality for all major C types, such as:
- int
- uint64_t
- int64_t
- float
- double
- char*
- struct tm
- time_t
It is possible to conditionally compile this module via CFLAGS:
- CBOR_NO_SEMANTIC_TAGGING: All semantic-tagging features removed
- CBOR_NO_CTIME: All ctime related features removed
- CBOR_NO_FLOAT: All floating-point related features removed
- CBOR_NO_PRINT: All features depending on printf removed
2014-08-05 19:49:51 +02:00
René Kijewski
c5ac8332de
"tests": print tcb_t size
...
The "test" should aid #303 .
2014-08-05 19:15:35 +02:00
Ludwig Ortmann
3912e5e632
Merge pull request #1529 from LudwigOrtmann/cpuid_fixup
...
tests, native: fixup for cpuid
2014-08-05 18:40:49 +02:00
Ludwig Ortmann
4c6ba818ed
Merge pull request #1534 from LudwigOrtmann/queue-cleanup-two
...
core/queue: queue -> priority_queue && dynamic initializers
2014-08-05 18:33:54 +02:00
Ludwig Ortmann
1efdf99dfe
core/priority_queue: add dynamic initializers
...
- priority_queue_init
- priority_queue_node_init
2014-08-05 17:57:45 +02:00
Ludwig Ortmann
c2b2e4554b
core/queue: queue -> priority_queue
...
Rename queue to priority queue, because that's what it is.
2014-08-05 17:57:45 +02:00
Ludwig Ortmann
d667c4964a
tests: fix cppcheck findings
...
- bitarithm_timings: use more void, decrease range
- struct_tm_utility: add cppcheck-suppress invalidscanf
2014-08-05 17:54:19 +02:00
Ludwig Ortmann
1c3f481702
tests, native: fixup for cpuid
...
- adopt test name to new scheme
- make cppcheck happy / dont overwrite the target memory location twice
- fix license header
- don't redefine define if it already exists
- don't write more cpuid than is defined as size
2014-08-05 16:55:42 +02:00
epiktet
1154bd5a50
cpu/nrf51822: squash added support for nrf51822 cpu
2014-08-04 13:42:06 +02:00
Oleg Hahm
983d056c75
core: harmonizes the data type for the process ID
...
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
René Kijewski
9cf5ece44f
Merge pull request #1460 from Kijewski/issue-1457
...
pkg: add USEPKG module "libfixmath"
2014-08-01 00:05:56 +02:00
René Kijewski
d7b4f1a5ba
pkg: add USEPKG module "libfixmath"
...
This PR adds the USEPKG module "libfixmath".
It integrates https://code.google.com/p/libfixmath/ into RIOT, cmp. #1457 .
2014-08-01 00:04:48 +02:00
Hauke Petersen
938c61a5a2
Merge pull request #1456 from haukepetersen/board_stm32f3discovery
...
board/cpu: Added support for the stm32f3discovery board and stm32f3 cpu
2014-07-31 23:55:05 +02:00
Martine Lenders
7516c94dd8
Merge pull request #854 from authmillenon/cpu-id
...
drivers/cpu: add function to get CPU id/serial number
2014-07-31 23:23:21 +02:00
Ludwig Ortmann
d55da67fb6
Merge pull request #1329 from LudwigOrtmann/riot_license
...
RIOT default license header change
2014-07-31 23:12:47 +02:00
Martin Lenders
239f2e0f24
Implement CPU id getter for native
2014-07-31 23:05:15 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
1200c3bc46
doc: fix comment indentation
2014-07-31 22:57:19 +02:00
Cenk Gündoğan
b8009f1be5
converting tabs to spaces in tests ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:53:32 +02:00
Martin Lenders
3a6adcc92c
Implement CPU serial number getter.
2014-07-31 19:51:14 +02:00
Hauke Petersen
f2c8997acc
examples/tests: blacklisted stm32f3discovery
2014-07-31 19:42:05 +02:00
René Kijewski
8854e8989a
tests: fix APPLICATION name
2014-07-31 07:34:11 +02:00
René Kijewski
d46c7e00d4
tests: remove test_
prefix
...
Closes #1485 .
2014-07-31 07:34:11 +02:00
René Kijewski
4032a22719
queue: add queue_t root type
2014-07-30 21:10:22 +02:00
René Kijewski
7035ae0051
queue: remove inttypes clutter from core header
2014-07-30 21:08:15 +02:00
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
René Kijewski
6fae042a60
core: remove unneeded calls to mutex_init()
2014-07-29 09:33:24 +02:00
René Kijewski
0ab1b86e5f
Add generic char
pipe implementation
2014-07-28 23:21:27 +02:00
René Kijewski
faf9bb5073
tests: add ringbuffer unittest
2014-07-28 20:56:12 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
Hauke Petersen
a49fc062bf
test/examples: blacklisted stm32f4discovery
2014-07-16 17:20:53 +02:00
Hauke Petersen
082e970251
tests/examples: added stm32f0discovery to ignorelists
2014-07-16 15:21:33 +02:00
Oleg Hahm
e01ac410a5
Merge pull request #1430 from LudwigOrtmann/test-cleaning
...
tests,examples: remove unneeded headers, fix style
2014-07-15 19:24:00 +02:00
Ludwig Ortmann
fcd6e4c154
tests: add libcoap compilation test
2014-07-15 18:57:52 +02:00
Ludwig Ortmann
1c825e2524
tests,examples: remove unneeded headers, fix style
2014-07-15 18:54:45 +02:00
René Kijewski
ac9c80f417
make: don't use export on example makefiles
2014-07-10 15:23:31 +02:00
René Kijewski
ba1a15535b
core: remove extra thread_create_arg() function
2014-07-09 10:28:23 +02:00
Ludwig Ortmann
c7e793dca7
test: remove superfluous stack size defines
2014-07-09 07:41:54 +02:00
Ludwig Ortmann
1a8967cb45
tests&examples: apply coding conventions to sizeof
2014-07-09 07:41:54 +02:00
Ludwig Ortmann
06a86aef20
tests&examples: use sizeof(stack) in thread_create
...
fixes #1392
2014-07-09 07:41:54 +02:00
Oleg Hahm
13028b41bf
applications: set stack size correctly
...
The correct stack size for all examples and test applications correctly.
KERNEL_CONF_STACKSIZE_MAIN is the correct stack size for any thread
using printf.
Also adapted black lists accordingly.
2014-07-04 15:39:43 +02:00
René Kijewski
63dd8546af
Merge pull request #1335 from Kijewski/fix-all-warnings-for-native-and-qemu-i386
...
Fix all warnings for native and qemu-i386
2014-07-02 10:58:48 +02:00
René Kijewski
b17028bb46
tests/Travis: run unittests on x86, too
2014-06-24 21:07:20 +02:00
René Kijewski
3063e3c2b1
Fix all warnings for native and qemu-i386
...
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
René Kijewski
d19fc447ed
make: make DIRS usable for applications
2014-06-23 15:50:10 +02:00
Oleg Hahm
6f17f0c60a
Merge pull request #1105 from Kijewski/shell-print-not-found
...
shell: print command if not found
2014-06-22 21:03:30 +02:00
Ludwig Ortmann
de4677eb60
make: s/PROJDEPS/APPDEPS/
...
fixes https://github.com/RIOT-OS/RIOT/issues/1284
2014-06-21 18:28:34 +02:00
René Kijewski
20163e1452
tests: test_bloom: fix PROJDEPS concurrency
...
Our buildtests build one project concurrently for multiple boards.
The current creation of the `PROJDEPS` for `test_bloom` might fail if
* board `A` notices that the dependency is missing and gets preempted,
* board `B` creates the dependency and gets preempted,
* board `A` starts the creation but gets preempted in the middle of the process,
* board `B` works with a half complete created file.
This PR creates the dependency in the individual `BINDIR`.
2014-06-21 17:51:24 +02:00
René Kijewski
4142d87bbe
Merge pull request #1278 from kaspar030/test_vtimer_msg_diff
...
tests: add test_vtimer_msg_diff
2014-06-21 00:39:33 +02:00
René Kijewski
14601c0c38
Merge pull request #1299 from phiros/timex_bugfix_and_improvement
...
Timex bugfix and improvement
2014-06-19 13:18:15 +02:00
Philipp Rosenkranz
0bf6ce22f3
added conv function from uint64 to timex_t and one minor bug fix
2014-06-19 12:40:24 +02:00
Martine Lenders
6d1365c5d8
Merge pull request #1324 from Kijewski/make-automatic-module-name
...
make: much less clutter for "standard layout" modules
2014-06-18 23:52:49 +02:00
Ludwig Ortmann
2075eeef01
make: %s/PROJECT/APPLICATION/g Part III
2014-06-18 15:24:14 +02:00
Hauke Petersen
ece3f867b2
tests: fixed Makefile for test_ipc_pingpong
2014-06-18 14:19:16 +02:00
René Kijewski
840c0f0a57
make: detect their module name automatically
...
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.
This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
René Kijewski
be1e6d1616
Add bitarithm measuring
2014-06-05 20:19:10 +02:00
René Kijewski
9775a3d199
Add test_ipc_pingpong
2014-06-05 20:19:10 +02:00
René Kijewski
f3bbec633b
unittests: core: add test_bitarithm_[ml]sb_all
2014-06-05 20:19:10 +02:00
f7913e31a8
tests: test_vtimer_msg_diff: Makefile s/PROJECT/APPLICATION/g
2014-06-05 14:35:37 +02:00
9ee346c9d3
tests: test_vtimer_msg_diff: add some timers, change max values
2014-06-05 12:51:26 +02:00
8d9569d8b0
tests: test_vtimer_msg_diff: use array for timers, change first to 1s
2014-06-05 12:43:16 +02:00
40c939882d
tests: add test_vtimer_msg_diff
...
This test sets three timers and renews them periodically, showing the
difference they accumulate.
2014-06-05 12:35:06 +02:00
Martine Lenders
e84cdd67b7
Merge pull request #1238 from authmillenon/makefile-unittests
...
unittests: Force execution of $(UNITTEST_LIBS) build target
2014-06-03 17:56:09 +02:00
René Kijewski
fa76383700
tests: add missing license to test_struct_tm_utility
2014-06-02 16:54:46 +02:00
René Kijewski
bd2fbd161b
Add struct tm
utility "test"
2014-05-28 00:43:41 +02:00
Martin Lenders
f201ceed99
unittests: Force execution of $(UNITTEST_LIBS) build target
2014-05-27 10:41:28 +02:00
Martin Lenders
2362623490
Fix trailing whitespaces
...
Fixes #1138
2014-05-26 14:54:23 +02:00
Martine Lenders
62139bd0d2
Merge pull request #1207 from Kijewski/unittests-makefile.include
...
unittests: support Makefile.include in test suites
2014-05-26 14:51:12 +02:00
Thomas Eichinger
1e983c9670
s/PROJECT/APPLICATION/g
...
fixes #548
2014-05-26 13:21:09 +02:00
René Kijewski
4e4f908379
Initial import of the x86 port
...
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
René Kijewski
49778752b3
Use BOARD_INSUFFICIENT_RAM
in examples and tests
2014-05-23 14:29:52 +02:00
René Kijewski
f3eeb98a01
msp/tests: remove blacklist from test_bloom_bytes
...
Issue #1061 was fixed.
2014-05-22 15:40:25 +02:00
Martin Lenders
3daa80124e
Fix application name for test_bloom_byte application
2014-05-19 16:16:19 +02:00
René Kijewski
4df2f4b4da
unittests: support Makefile.include in test suites
...
This change will pull in the `Makefile.include` for every test suite
that is compiled in.
Fixes #1205 .
2014-05-18 16:20:35 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Oleg Hahm
127801d18d
tests: added a thread_sleep() at the end
...
Letting the main thread exit could cause failing test if thread_exit()
is broken for the tested platform, preventing the actual testing of the
hwtimer.
2014-05-17 00:30:38 +02:00
Kévin Roussel
988de6b2cd
Merge pull request #893 from rousselk/z1-port
...
Zolertia Z1 port for RIOT OS
2014-05-16 12:08:56 +02:00
Kévin Roussel
2a3033b3ca
boards/z1: initial import
2014-05-16 11:02:06 +02:00
Martin
4c2aaa6321
fixed initializer and Wformat warnings
2014-05-15 19:30:02 +02:00
Jan S
ba907471f3
fixed printf specifiers
2014-05-15 17:42:57 +02:00
René Kijewski
6b4d2de74e
Merge pull request #961 from authmillenon/core-unittests
...
unittests: Unittests for core module data strutures
2014-05-15 15:57:56 +02:00
Hauke Petersen
cbd4f91656
examples/tests: blacklisted udoo board
...
blacklisted for:
- ccn-lite-client
- ccn-lite-relay
- rpl_udp
- test_net_if
- test_pnet
2014-05-15 11:53:14 +02:00
René Kijewski
beb91163ab
unittests: Move tests-core into subdirectoy
2014-05-15 11:07:11 +02:00
Martin Lenders
1b042e75c4
Implement core unittests
2014-05-15 11:07:11 +02:00
René Kijewski
8950ab49a5
make: Remove Makefile.unsupported
...
This mechanism was replaced by #535 . It was only used in one project.
2014-05-14 22:58:25 +02:00
Martine Lenders
991a5dccf1
Merge pull request #1168 from Kijewski/unittests-use-subfolders-and-dark-magic
...
unittests: separate test suites from main.c
2014-05-14 17:56:53 +02:00
René Kijewski
ccc934856f
Merge pull request #1124 from Kijewski/consolidate-crypto
...
sys:crypto: put ciphers into one module
2014-05-14 13:12:21 +02:00
René Kijewski
0246329050
unittests: separate test suites from main.c
...
This change removes the need to patch the main.c if you add or remove a
test suite. A test suite in `tests/unittests/tests-XXX` needs to export
the function `void tests_XXX(void)`, which gets called by `main()`.
The `tests-XXX/Makefile` looks like your average module:
```
MODULE = tests-XXX
include $(RIOTBASE)/Makefile.base
```
2014-05-14 12:57:52 +02:00
Martine Lenders
4359429168
Merge pull request #1164 from Kijewski/unittests-use-subfolders
...
unittests: use subfolders for different tests
2014-05-14 12:54:21 +02:00
René Kijewski
297bc52062
unittests: use subfolders for different tests
...
Unittests for e.g. different libraries can be put into
`tests/unittests/tests-XXX`, where `XXX` is your test suite.
If `unittests` is made with `make all` (or any explicit argument), then
all test suites get built. If you use `make tests-XXX tests-YYY …` then
only the test suites `XXX` and `YYY` get built.
2014-05-14 12:48:56 +02:00
René Kijewski
5e6bf869b0
unittests: exit(1) or error
2014-05-14 10:31:22 +02:00
Ludwig Ortmann
2314915ff2
license: fix license header grammar
...
insert missing "is"
2014-05-14 09:49:09 +02:00