示例#1
0
文件: test_main.c 项目: liva/nci
int main(int argc, char **argv) {
  test_list();
  test_ast();
  test_ir();
  printf("test passed!\n");
  return 0;
}
int main(int argc, char **argv)
{
    dsp_enable_flush_denormal_to_zero();
    if (dsp_util_has_denormal())
        printf("denormal still supported?\n");
    else
        printf("denormal disabled\n");
    dsp_util_clear_fp_exceptions();

    if (argc == 1)
        test_ir();
    else if (argc == 3)
        test_file(argv[1], argv[2]);
    else
        printf("Usage: eq_test [input.raw output.raw]\n");

    dsp_util_print_fp_exceptions();
    return 0;
}
示例#3
0
int main() 
{ 
    static int i; 
select:    printf("Please select device:\n0.KeyBoard\n1.IR\n2.TouchScreen\n"); 
    scanf("%d",&i); 
    switch(i){ 
        case 0: 
            test_key(); 
            break; 
        case 1: 
            test_ir(); 
            break; 
        case 2: 
            test_touch_screen(); 
            break; 
        default: 
            printf("Wrong device, Please select again!\n\n"); 
            break;        
    } 
    goto select; 
        return 0; 
}