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 */
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);
}
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;
}
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
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