Add missing text_color_init to test programs

This commit is contained in:
ars-ka0s 2023-04-17 14:09:36 -05:00
parent b395acfd87
commit 6c62d30416
13 changed files with 19 additions and 3 deletions

View File

@ -2078,6 +2078,7 @@ static void check_result (void)
int main (int argc, char *argv[]) int main (int argc, char *argv[])
{ {
text_color_init (1, 0);
aprs_tt_init (NULL, 0); aprs_tt_init (NULL, 0);
error_count = 0; error_count = 0;

View File

@ -792,6 +792,8 @@ int main ()
strcpy (addrs[1], "WB2OSZ-15"); strcpy (addrs[1], "WB2OSZ-15");
num_addr = 2; num_addr = 2;
text_color_init (1, 0);
/* U frame */ /* U frame */
for (ftype = frame_type_U_SABME; ftype <= frame_type_U_TEST; ftype++) { for (ftype = frame_type_U_SABME; ftype <= frame_type_U_TEST; ftype++) {

View File

@ -765,6 +765,7 @@ int main (int argc, char *argv[])
strlcpy(mycall, "WB2OSZ-9", sizeof(mycall)); strlcpy(mycall, "WB2OSZ-9", sizeof(mycall));
dedupe_init (4); dedupe_init (4);
text_color_init (1, 0);
/* /*
* Compile the patterns. * Compile the patterns.

View File

@ -532,6 +532,7 @@ int main ()
my_audio_config.chan_medium[c] = MEDIUM_RADIO; my_audio_config.chan_medium[c] = MEDIUM_RADIO;
my_audio_config.achan[c].dtmf_decode = DTMF_DECODE_ON; my_audio_config.achan[c].dtmf_decode = DTMF_DECODE_ON;
text_color_init (1, 0);
dtmf_init(&my_audio_config, 50); dtmf_init(&my_audio_config, 50);
text_color_set(DW_COLOR_INFO); text_color_set(DW_COLOR_INFO);

View File

@ -853,6 +853,7 @@ int main (int argc, char *argv[])
char result[100]; char result[100];
int errors = 0; int errors = 0;
text_color_init (1, 0);
/*********** Position ***********/ /*********** Position ***********/

View File

@ -73,6 +73,7 @@ static int fx25_test_count = 0;
int main () int main ()
{ {
text_color_init(1, 0);
fx25_init(3); fx25_init(3);
for (int i = CTAG_MIN; i <= CTAG_MAX; i++) { for (int i = CTAG_MIN; i <= CTAG_MAX; i++) {

View File

@ -55,6 +55,7 @@ static unsigned char preload[] = {
int main () int main ()
{ {
text_color_init(1, 0);
text_color_set(DW_COLOR_ERROR); text_color_set(DW_COLOR_ERROR);
dw_printf("fxsend - FX.25 unit test.\n"); dw_printf("fxsend - FX.25 unit test.\n");
dw_printf("This generates 11 files named fx01.dat, fx02.dat, ..., fx0b.dat\n"); dw_printf("This generates 11 files named fx01.dat, fx02.dat, ..., fx0b.dat\n");

View File

@ -265,6 +265,8 @@ int main(int argc, char **argv)
strlcpy (output_file, "", sizeof(output_file)); strlcpy (output_file, "", sizeof(output_file));
text_color_init (1, 0);
/* /*
* Parse the command line options. * Parse the command line options.
*/ */

View File

@ -899,6 +899,8 @@ int main (int argc, char *argv[])
double dlat, dlon; double dlat, dlon;
double d, b; double d, b;
text_color_init (1, 0);
/* Latitude to APRS format. */ /* Latitude to APRS format. */
latitude_to_str (45.25, 0, result); latitude_to_str (45.25, 0, result);

View File

@ -1527,6 +1527,7 @@ static void pftest (int test_num, char *filter, char *packet, int expected);
int main () int main ()
{ {
text_color_init (1, 0);
dw_printf ("Quick test for packet filtering.\n"); dw_printf ("Quick test for packet filtering.\n");
dw_printf ("Some error messages are normal. Look at the final success/fail message.\n"); dw_printf ("Some error messages are normal. Look at the final success/fail message.\n");

View File

@ -1069,6 +1069,7 @@ int main ( )
strlcpy (comment, "", sizeof(comment)); strlcpy (comment, "", sizeof(comment));
text_color_init(1, 0);
text_color_set(DW_COLOR_INFO); text_color_set(DW_COLOR_INFO);
dw_printf ("Unit test for telemetry decoding functions...\n"); dw_printf ("Unit test for telemetry decoding functions...\n");

View File

@ -1782,6 +1782,7 @@ static void test_tt2text (char *buttons, char *expect_mp, char *expect_2k, char
int main (int argc, char *argv[]) int main (int argc, char *argv[])
{ {
text_color_init (1, 0);
text_color_set (DW_COLOR_INFO); text_color_set (DW_COLOR_INFO);
dw_printf ("Test conversions between normal text and DTMF representation.\n"); dw_printf ("Test conversions between normal text and DTMF representation.\n");
dw_printf ("Some error messages are normal. Just look for number of errors at end.\n"); dw_printf ("Some error messages are normal. Just look for number of errors at end.\n");

View File

@ -653,6 +653,7 @@ int main (int argc, char *argv[]) {
unsigned char info[40]; // Currently max of 27 but things can change. unsigned char info[40]; // Currently max of 27 but things can change.
char desc[150]; // I've seen 109. char desc[150]; // I've seen 109.
text_color_init (1, 0);
/* parse example. */ /* parse example. */