X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-shabea-test.c;h=471881eac18c81fb40cb68cbf39e703e71f0d9a9;hb=a45c328791dc391e6432051ee0c7972ef7fd8d9a;hp=8605640271c9b2127df660567944091f9ffc8de8;hpb=302f07c97444e2f5f5560dc2fd9af58d4b591d45;p=avr-crypto-lib.git diff --git a/test_src/main-shabea-test.c b/test_src/main-shabea-test.c index 8605640..471881e 100644 --- a/test_src/main-shabea-test.c +++ b/test_src/main-shabea-test.c @@ -25,20 +25,13 @@ * GPLv3 or later * */ -#include "config.h" -#include "uart_i.h" -#include "debug.h" +#include "main-test-common.h" #include "shabea.h" #include "nessie_bc_test.h" -#include "cli.h" #include "performance_test.h" -#include -#include -#include - char* algo_name = "Shabea"; /***************************************************************************** @@ -171,7 +164,7 @@ const char test_str[] PROGMEM = "test"; const char performance_str[] PROGMEM = "performance"; const char echo_str[] PROGMEM = "echo"; -cmdlist_entry_t cmdlist[] PROGMEM = { +const cmdlist_entry_t cmdlist[] PROGMEM = { { nessie_str, NULL, testrun_nessie_shabea}, { test_str, NULL, testrun_shabea}, { performance_str, NULL, testrun_performance_shabea}, @@ -180,14 +173,10 @@ cmdlist_entry_t cmdlist[] PROGMEM = { }; int main (void){ - DEBUG_INIT(); - - cli_rx = (cli_rx_fpt)uart0_getc; - cli_tx = (cli_tx_fpt)uart0_putc; - for(;;){ - cli_putstr_P(PSTR("\r\n\r\nCrypto-VS (")); - cli_putstr(algo_name); - cli_putstr_P(PSTR(")\r\nloaded and running\r\n")); - cmd_interface(cmdlist); + main_setup(); + + for(;;){ + welcome_msg(algo_name); + cmd_interface(cmdlist); } }