From: asterix Date: Wed, 11 Jan 2012 14:40:30 +0000 (+0000) Subject: Fix building error and warnings to add fletcher32 algo at nightly test. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b4adc85632c9ed2631b5fdec961ee75eb5ebd3bf;p=bertos.git Fix building error and warnings to add fletcher32 algo at nightly test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5250 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/algo/fletcher32.h b/bertos/algo/fletcher32.h index e5c61f89..800c3476 100644 --- a/bertos/algo/fletcher32.h +++ b/bertos/algo/fletcher32.h @@ -50,4 +50,8 @@ void fletcher32_init(Fletcher32 *f); void fletcher32_update(Fletcher32 *f, const void *_buf, size_t len); uint32_t fletcher32_final(Fletcher32 *f); +int fletcher32_testSetup(void); +int fletcher32_testTearDown(void); +int fletcher32_testRun(void); + #endif /* ALGO_FLETCHER32_H */ diff --git a/bertos/algo/fletcher32_test.c b/bertos/algo/fletcher32_test.c index 7f13fdce..4f0fe618 100644 --- a/bertos/algo/fletcher32_test.c +++ b/bertos/algo/fletcher32_test.c @@ -520,7 +520,7 @@ int fletcher32_testRun(void) tot += strlen(tstbufs[t]); //kdump(tstbufs[t], strlen(tstbufs[t])); - kprintf("f1 %08X, f2 %08X\n", f1, f2); + kprintf("f1 %04lX, f2 %04lX\n", f1, f2); ASSERT(f1 == f2); } @@ -536,7 +536,7 @@ int fletcher32_testRun(void) uint32_t ft1 = fletcher32_final(&ft); //kdump(start, tot); free(start); - kprintf("ft1 %08X, ft2 %08X\n", ft1, ft2); + kprintf("ft1 %04lX, ft2 %04lX\n", ft1, ft2); ASSERT(ft1 == ft2); return 0; } diff --git a/test/run_tests.sh b/test/run_tests.sh index b6ffe005..13934186 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -31,6 +31,9 @@ TESTS=${TESTS:-`find . \ TESTOUT="testout" SRC_LIST=" bertos/algo/ramp.c + bertos/algo/crc_ccitt.c + bertos/algo/crc.c + bertos/algo/fletcher32.c bertos/drv/kdebug.c bertos/drv/timer.c bertos/kern/monitor.c @@ -54,8 +57,6 @@ SRC_LIST=" bertos/emul/switch_ctx_emul.S bertos/mware/ini_reader.c bertos/emul/kfile_posix.c - bertos/algo/crc_ccitt.c - bertos/algo/crc.c bertos/struct/kfile_mem.c bertos/net/ax25.c bertos/net/afsk.c