Skip to content

Commit

Permalink
tests/pthread*: enable pthread tests on avr
Browse files Browse the repository at this point in the history
'pthread' is now compatible with 'avr' so enable them in tests.
All the tests ran on 'arduino-mega2560' when supported.
  • Loading branch information
cladmi committed Sep 11, 2019
1 parent 5c405b5 commit 9ee84c6
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 62 deletions.
7 changes: 0 additions & 7 deletions tests/pthread/Makefile
@@ -1,12 +1,5 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno jiminy-mega256rfr2 mega-xplained \
waspmote-pro
# arduino mega2560 uno duemilanove : unknown type name: clockid_t
# jiminy-mega256rfr2: unknown type name: clockid_t
# mega-xplained: unknown type name: clockid_t

USEMODULE += posix_headers
USEMODULE += pthread

Expand Down
12 changes: 5 additions & 7 deletions tests/pthread_barrier/Makefile
@@ -1,12 +1,10 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno i-nucleo-lrwan1 jiminy-mega256rfr2 \
mega-xplained stm32l0538-disco waspmote-pro
# AVR platform: unknown type name: clockid_t

# exclude boards with insufficient memory
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6
BOARD_INSUFFICIENT_MEMORY = \
i-nucleo-lrwan1 \
nucleo-f031k6 \
stm32l0538-disco \
#

# Modules to include.
USEMODULE += pthread
Expand Down
7 changes: 0 additions & 7 deletions tests/pthread_cleanup/Makefile
@@ -1,12 +1,5 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno jiminy-mega256rfr2 mega-xplained \
waspmote-pro
# arduino mega2560 uno duemilanove : unknown type name: clockid_t
# jiminy-mega256rfr2: unknown type name: clockid_t
# mega-xplained: unknown type name: clockid_t

USEMODULE += pthread

include $(RIOTBASE)/Makefile.include
7 changes: 0 additions & 7 deletions tests/pthread_condition_variable/Makefile
@@ -1,12 +1,5 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno jiminy-mega256rfr2 mega-xplained \
waspmote-pro
# arduino mega2560 uno duemilanove : unknown type name: clockid_t
# jiminy-mega256rfr2: unknown type name: clockid_t
# mega-xplained: unknown type name: clockid_t

BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6

USEMODULE += posix_headers
Expand Down
26 changes: 19 additions & 7 deletions tests/pthread_cooperation/Makefile
@@ -1,13 +1,25 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno hifive1 hifive1b i-nucleo-lrwan1 \
jiminy-mega256rfr2 mega-xplained stm32l0538-disco waspmote-pro
BOARD_INSUFFICIENT_MEMORY := \
arduino-duemilanove \
arduino-nano \
arduino-uno \
nucleo-f031k6 \
hifive1 \
hifive1b \
i-nucleo-lrwan1 \
stm32l0538-disco \
#

# AVR platform: unknown type name: clockid_t
# hifive1: not enough memory for thread stacks

BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6
# The test reboots on 'arduino-mega2560' because it mallocs too much memory.
# So I disabled all the other avr boards. Re-enable after success test.
BOARD_INSUFFICIENT_MEMORY += \
arduino-leonardo \
arduino-mega2560 \
jiminy-mega256rfr2 \
mega-xplained \
waspmote-pro \
#

USEMODULE += posix_headers
USEMODULE += pthread
Expand Down
14 changes: 6 additions & 8 deletions tests/pthread_flood/Makefile
@@ -1,13 +1,11 @@
include ../Makefile.tests_common

BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno jiminy-mega256rfr2 mega-xplained \
waspmote-pro
# arduino mega2560 uno duemilanove : unknown type name: clockid_t
# jiminy-mega256rfr2: unknown type name: clockid_t
# mega-xplained: unknown type name: clockid_t
BOARD_INSUFFICIENT_MEMORY = \
arduino-duemilanove \
arduino-nano \
arduino-uno \
nucleo-f031k6 \
#

USEMODULE += posix_headers
USEMODULE += pthread
Expand Down
31 changes: 19 additions & 12 deletions tests/pthread_rwlock/Makefile
@@ -1,21 +1,28 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno jiminy-mega256rfr2 mega-xplained \
waspmote-pro
# arduino mega2560 uno duemilanove : unknown type name: clockid_t
# jiminy-mega256rfr2: unknown type name: clockid_t
# mega-xplained: unknown type name: clockid_t

USEMODULE += pthread
USEMODULE += xtimer
USEMODULE += random

BOARD_INSUFFICIENT_MEMORY += chronos i-nucleo-lrwan1 \
msb-430 msb-430h nucleo-f031k6 \
nucleo-f042k6 nucleo-l031k6 nucleo-f030r8 \
nucleo-f303k8 nucleo-f334r8 nucleo-l053r8 \
stm32f0discovery stm32l0538-disco
BOARD_INSUFFICIENT_MEMORY = \
arduino-duemilanove \
arduino-leonardo \
arduino-nano \
arduino-uno \
chronos \
i-nucleo-lrwan1 \
msb-430 \
msb-430h \
nucleo-f030r8 \
nucleo-f031k6 \
nucleo-f042k6 \
nucleo-f303k8 \
nucleo-f334r8 \
nucleo-l031k6 \
nucleo-l053r8 \
stm32f0discovery \
stm32l0538-disco \
#

# HACK Blacklist native as `murdock` fails on utf-8 characters for native tests
TEST_ON_CI_BLACKLIST += native
Expand Down
13 changes: 6 additions & 7 deletions tests/pthread_tls/Makefile
@@ -1,13 +1,12 @@
include ../Makefile.tests_common

BOARD_BLACKLIST := arduino-duemilanove arduino-leonardo arduino-mega2560 \
arduino-nano arduino-uno jiminy-mega256rfr2 mega-xplained \
waspmote-pro
# arduino mega2560 uno duemilanove : unknown type name: clockid_t
# jiminy-mega256rfr2: unknown type name: clockid_t
# mega-xplained: unknown type name: clockid_t

USEMODULE += posix_headers
USEMODULE += pthread

BOARD_INSUFFICIENT_MEMORY = \
arduino-duemilanove \
arduino-nano \
arduino-uno \
#

include $(RIOTBASE)/Makefile.include

0 comments on commit 9ee84c6

Please sign in to comment.