Add a simple heap test.
[bertos.git] / test / run_tests.sh
index ee5163a9c04e73cb2f8c48b49b78c5fcb0c198ae..ed6ee007a9566b107ba553ba00c0aa38eaf46d8a 100755 (executable)
@@ -17,7 +17,8 @@ VERBOSE=${VERBOSE:-1}
 
 CC=gcc
 #FIXME: -Ibertos/emul should not be needed
-CFLAGS="-W -Wall -Wextra -O0 -g3 -ggdb -Ibertos -Ibertos/emul -std=gnu99 -fno-builtin -D_DEBUG -DARCH=(ARCH_EMUL|ARCH_UNITTEST) \
+CFLAGS="-W -Wall -Wextra -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wsign-compare -Wmissing-noreturn \
+-O0 -g3 -ggdb -Ibertos -Ibertos/emul -std=gnu99 -fno-builtin -D_DEBUG -DARCH=(ARCH_EMUL|ARCH_UNITTEST) \
 -DCPU_FREQ=(12288000UL) -ffunction-sections -fdata-sections -Wl,--gc-sections"
 
 CXX=g++
@@ -46,6 +47,7 @@ SRC_LIST="
        bertos/mware/sprintf.c
        bertos/os/hptime.c
        bertos/struct/kfile_fifo.c
+       bertos/struct/heap.c
        bertos/fs/fatfs/ff.c
        bertos/emul/diskio_emul.c
        bertos/fs/fat.c