Esempio n. 1
0
void test01TcpNotUdp(int testNoOffset, int tcpNotUdp)
{
    char testName[64];

    DWORD blocks01[1] = {32};
    generateTestName(tcpNotUdp, "echo    32 B", testName);
    test01(0x0101 + testNoOffset, testName, tcpNotUdp, &blocks01[0], 1);

    DWORD blocks02[3] = {250, 250, 250};
    generateTestName(tcpNotUdp, "echo   750 B", testName);
    test01(0x0102 + testNoOffset, testName, tcpNotUdp, &blocks02[0], 3);
    
    DWORD blocks03[3] = {511, 512, 513};
    generateTestName(tcpNotUdp, "echo  1536 B", testName);
    test01(0x0103 + testNoOffset, testName, tcpNotUdp, &blocks03[0], 3);

    DWORD blocks04[3] = {1000, 250, 1000};
    generateTestName(tcpNotUdp, "echo  2250 B", testName);
    test01(0x0104 + testNoOffset, testName, tcpNotUdp, &blocks04[0], 3);

    if(tcpNotUdp) {
        DWORD blocks05[4] = {500, 1000, 1500, 2000};
        generateTestName(tcpNotUdp, "echo 15000 B", testName);
        test01(0x0105 + testNoOffset, testName, tcpNotUdp, &blocks05[0], 4);

        DWORD blocks06[3] = {5000, 10000, 16000};
        generateTestName(tcpNotUdp, "echo 31000 B", testName);
        test01(0x0106 + testNoOffset, testName, tcpNotUdp, &blocks06[0], 3);
    }
}
Esempio n. 2
0
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for UNICYCLE_PRB.

  Discussion:

    UNICYCLE_PRB tests the UNICYCLE library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    17 June 2012

  Author:

    John Burkardt
*/
{
  timestamp ( );

  printf ( "\n" );
  printf ( "UNICYCLE_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the UNICYCLE library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
  test06 ( );
  test07 ( );
  test08 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "UNICYCLE_PRB\n" );
  printf ( "  Normal end of execution.\n" );

  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for CHEBYSHEV_INTERP_1D_PRB.

  Discussion:

    CHEBYSHEV_INTERP_1D_PRB tests the CHEBYSHEV_INTERP_1D library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    27 September 2012

  Author:

    John Burkardt
*/
{
  int prob;
  int prob_num;

  timestamp ( );
  printf ( "\n" );
  printf ( "CHEBYSHEV_INTERP_1D_PRB:\n" );
  printf ( "  C version\n" );
  printf ( "  Test the CHEBYSHEV_INTERP_1D library.\n" );
  printf ( "  The QR_SOLVE and R8LIB libaries are needed.\n" );
  printf ( "  The test needs the TEST_INTERP library.\n" );

  prob_num = p00_prob_num ( );
  for ( prob = 1; prob <= prob_num; prob++ )
  {
    test01 ( prob );
  }
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "CHEBYSHEV_INTERP_1D_PRB:\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 4
0
//Purpose: tests the ASA241 library.
void asa241Test ( )
{
  timestamp ( );
  printf ( "\n" );
  printf ( "  Test the ASA241 library.\n" );

  test01 ( );
  test02 ( );

  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );
}
Esempio n. 5
0
int MEKD_Test_Debug_Ghosts_Test0()
{
    /// TEST 0
    if (Show_Description)
        cout << "\n -- STARTING TEST 0 -- \n";
    const unsigned int Nr_of_models = 4;
    double ME[Nr_of_models];
    MEKD test01(8.0, ""), test02(8.0, "");

    string model[Nr_of_models];
    model[0] = "ggSpin2Mh"; // 8
    model[1] = "ggSpin2Pm"; // 10
    model[2] = "ggSpin2Pm"; // 8
    model[3] = "ggSpin2Mh"; // 10

    if (Show_Description)
        cout << "Testing ME ordering using int computeME( string, "
                "vector<double*>, vector<int>, double& );\n";

    if ((error_value =
             test01.computeME(model[0], Set_Of_Arrays, Set_Of_IDs, ME[0])) != 0)
        cout << "ERROR CODE in ME for " << model[0] << "; Err: " << error_value
             << endl;
    if ((error_value =
             test01.computeME(model[1], Set_Of_Arrays, Set_Of_IDs, ME[1])) != 0)
        cout << "ERROR CODE in ME for " << model[1] << "; Err: " << error_value
             << endl;
    if ((error_value =
             test02.computeME(model[2], Set_Of_Arrays, Set_Of_IDs, ME[2])) != 0)
        cout << "ERROR CODE in ME for " << model[2] << "; Err: " << error_value
             << endl;
    if ((error_value =
             test02.computeME(model[3], Set_Of_Arrays, Set_Of_IDs, ME[3])) != 0)
        cout << "ERROR CODE in ME for " << model[3] << "; Err: " << error_value
             << endl;

    if (Show_Basic_Data) {
        if (Show_Description)
            cout << "Initial results, before any permutation.\n";
        cout.width(20);
        cout << std::left << "Model" << std::right << "ME value\n\n";

        for (unsigned int count = 0; count < Nr_of_models; count++) {
            cout.width(20);
            cout << std::left << model[count] << std::right << ME[count]
                 << endl;
        }
    }

    return 0;
}
Esempio n. 6
0
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for SUPER_BLAS1_S_PRB.

  Discussion:

    SUPER_BLAS1_S_PRB tests the BLAS1 single precision real routines.

  Modified:

    29 March 2007

  Author:

    John Burkardt
*/
{
  timestamp ( );

  printf ( "\n" );
  printf ( "SUPER_BLAS1_S_PRB:\n" );
  printf ( "  C version\n" );
  printf ( "  Single precision real arithmetic.\n" );
  printf ( "  Test routines in the SUPER_BLAS library,\n" );
  printf ( "  the Level 1 Basic Linear Algebra Subprograms.\n" );
 
  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
  test06 ( );
  test07 ( );
  test08 ( );
  test09 ( );

  test11 ( );

  printf ( "\n" );
  printf ( "SUPER_BLAS1_S_PRB:\n" );
  printf ( "  Normal end of execution.\n" );

  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 7
0
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for TEST_MIN_PRB.

  Discussion:

    TEST_MIN_PRB calls the TEST_MIN tests.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    03 February 2012

  Author:

    John Burkardt
*/
{
  timestamp (  );

  printf ( "\n" );
  printf ( "TEST_MIN_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the TEST_MIN library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
  test06 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "TEST_MIN_PRB\n" );
  printf ( "  Normal end of execution.\n" );

  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for POLYGON_MONTE_CARLO_PRB.

  Discussion:

    POLYGON_MONTE_CARLO_PRB tests the POLYGON_MONTE_CARLO library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    09 May 2014

  Author:

    John Burkardt
*/
{
  int nv1 = 4;
  double v1[2*4] = {
    -1.0, -1.0, 
     1.0, -1.0, 
     1.0,  1.0, 
    -1.0,  1.0 };

  timestamp ( );
  printf ( "\n" );
  printf ( "POLYGON_MONTE_CARLO_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the POLYGON_MONTE_CARLO library.\n" );

  test01 ( nv1, v1 );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "POLYGON_MONTE_CARLO_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for TEST_INTERP_1D_PRB.

  Discussion:

      TEST_INTERP_1D_PRB tests the TEST_INTERP_1D library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    28 August 2012

  Author:

    John Burkardt
*/
{
  int nd;

  timestamp ( );

  printf ( "\n" );
  printf ( "TEST_INTERP_1D_TEST\n" );
  printf ( "  C version\n" );
  printf ( "  Test the TEST_INTERP_1D library.\n" );
  printf ( "  The R8LIB library is needed.\n" );

  test01 ( );

  nd = 11;
  test02 ( nd );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "TEST_INTERP_1D_TEST\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for SUPER_BLAS1_S_PRB.

  Discussion:

    SUPER_BLAS1_S_PRB tests the SUPER_BLAS library.

  Modified:

    29 March 2007

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "SUPER_BLAS1_S_PRB:\n" );
  printf ( "  C version\n" );
  printf ( "  Single precision real arithmetic.\n" );
  printf ( "  Test the SUPER_BLAS library.\n" );
 
  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
  test06 ( );
  test07 ( );
  test08 ( );
  test09 ( );

  test11 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "SUPER_BLAS1_S_PRB:\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 11
0
int main ( )

/******************************************************************************/
/*
  Purpose:

    COMPLEX_NUMBERS is a program which demonstrates the use of complex numbers.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    06 November 2010

  Author:

    John Burkardt
*/
{
    timestamp ( );
    printf ( "\n" );
    printf ( "COMPLEX_NUMBERS\n" );
    printf ( "  C version\n" );
    printf ( "  Demonstrate complex number usage.\n" );
    /*
      Single precision complex numbers: "complex".
    */
    test01 ( );
    test02 ( );
    test03 ( );
    /*
      Double precision complex numbers: "double complex".
    */
    test04 ( );
    test05 ( );
    test06 ( );
    /*
      Terminate.
    */
    printf ( "\n" );
    printf ( "COMPLEX_NUMBERS\n" );
    printf ( "  Normal end of execution.\n" );

    printf ( "\n" );
    timestamp ( );

    return 0;
}
Esempio n. 12
0
void parse_cmd(String str)
{
  if(str == "help") {printHelp();}
  else if(str == "t1") {test01(RUNTEST);}
  else if(str == "t2") {test02(RUNTEST);}
  else if(str == "t3") {test03(RUNTEST);}
  else if(str == "t4") {test04(RUNTEST);}
  else if(str == "t5") {test05(RUNTEST);}
  else if(str == "t6") {test06(RUNTEST);}
  else if(str == "t7") {test07(RUNTEST);}
  else if(str == "t8") {test08(RUNTEST);}
  else if(str == "t9") {test09(RUNTEST);}
  else if(str == "ta") {test10(RUNTEST);}
  else if(str == "tb") {test11(RUNTEST);}
  else if(str == "tc") {test12(RUNTEST);}
  else if(str == "td") {test13(RUNTEST);}
  else if(str == "te") {test14(RUNTEST);}
  else if(str == "tf") {test15(RUNTEST);}

  else if(str == "d1") {test01(DESCRIPTION);}
  else if(str == "d2") {test02(DESCRIPTION);}
  else if(str == "d3") {test03(DESCRIPTION);}
  else if(str == "d4") {test04(DESCRIPTION);}
  else if(str == "d5") {test05(DESCRIPTION);}
  else if(str == "d6") {test06(DESCRIPTION);}
  else if(str == "d7") {test07(DESCRIPTION);}
  else if(str == "d8") {test08(DESCRIPTION);}
  else if(str == "d9") {test09(DESCRIPTION);}
  else if(str == "da") {test10(DESCRIPTION);}
  else if(str == "db") {test11(DESCRIPTION);}
  else if(str == "dc") {test12(DESCRIPTION);}
  else if(str == "dd") {test13(DESCRIPTION);}
  else if(str == "de") {test14(DESCRIPTION);}
  else if(str == "df") {test15(DESCRIPTION);}

  else {Serial.print("\n\rBad Command: "); Serial.println(str);}
}
Esempio n. 13
0
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for QR_SOLVE_PRB.

  Discussion:

    QR_SOLVE_PRB tests the QR_SOLVE library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    04 October 2012

  Author:

    John Burkardt
*/
{
  timestamp ( );

  printf ( "\n" );
  printf ( "QR_SOLVE_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the QR_SOLVE library.\n" );
  printf ( "  QR_SOLVE needs the R8LIB library.\n" );
  printf ( "  This test also needs the TEST_LS library.\n" );
 
  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "QR_SOLVE_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for BERNSTEIN_POLYNOMIAL_PRB.

  Discussion:

    BERNSTEIN_POLYNOMIAL_PRB tests the BERNSTEIN_POLYNOMIAL library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    13 May 2013

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "BERNSTEIN_POLYNOMIAL_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the BERNSTEIN_POLYNOMIAL library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
  test06 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "BERNSTEIN_POLYNOMIAL_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( " \n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for HERMITE_TEST_INT_PRB.

  Discussion:

    HERMITE_TEST_INT_PRB tests the HERMITE_TEST_INT library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    11 September 2012

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "HERMITE_TEST_INT_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the HERMITE_TEST_INT library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
  test06 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "HERMITE_TEST_INT_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 16
0
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for OWENS_PRB.

  Discussion:

    OWENS_PRB calls the OWENS routines.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    23 November 2010

  Author:

    John Burkardt
*/
{
  timestamp ( );

  printf ( "\n" );
  printf ( "OWENS_PRB:\n" );
  printf ( "  C version\n" );
  printf ( "  Test the OWENS library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "OWENS_PRB:\n" );
  printf ( "  Normal end of execution.\n" );

  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    GEOMPACK_PRB tests routines from the GEOMPACK library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    23 October 2012

  Author:

    John Burkardt
*/
{
  timestamp ( );

  printf ( "\n" );
  printf ( "GEOMPACK_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the GEOMPACK library.\n" );

  test005 ( );
  test01 ( );
  test02 ( );
  test03 ( );
  test05 ( );
  test06 ( );
  test07 ( );
  test08 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "GEOMPACK_PRB\n" );
  printf ( "  Normal end of execution.\n" );

  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 18
0
void
_test (CIMClient & client)
{
  try
  {

    test01 (client);
  }
  catch (Exception & e)
  {
    cerr << "test failed: " << e.getMessage () << endl;
    exit (-1);
  }

  cout << "+++++ test completed successfully" << endl;
}
Esempio n. 19
0
int main(int argc, char** argv)
{
    verbose = getenv("PEGASUS_TEST_VERBOSE");

    try
    {
        test01();
    }
    catch (Exception& e)
    {
        cout << "Exception: " << e.getMessage() << endl;
    }

    cout << argv[0] << " +++++ passed all tests" << endl;
    return 0;
}
Esempio n. 20
0
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for BISECTION_RC_PRB.

  Discussion:

    BISECTION_RC_PRB tests the BISECTION_RC library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    17 January 2015

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "BISECTION_RC_PRB:\n" );
  printf ( "  C version.\n" );
  printf ( "  Test the BISECTION_RC library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
  test05 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "BISECTION_RC_PRB:\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB.

  Discussion:

    PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB tests the 
    PIECEWISE_LINEAR_PRODUCT_INTEGRAL library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    04 July 2013

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the PIECEWISE_LINEAR_PRODUCT_INTEGRAL_INTEGRAL library.\n" );
 
  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 22
0
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for PINK_NOISE_PRB.

  Discussion:

    PINK_NOISE_PRB tests the PINK_NOISE library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    31 May 2010

  Author:

    John Burkardt
*/
{
  timestamp ( );
  fprintf ( stdout, "\n" );
  fprintf ( stdout, "PINK_NOISE_PRB:\n" );
  fprintf ( stdout, "  C version\n" );
  fprintf ( stdout, "  Test the PINK_NOISE library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
/*
  Terminate.
*/
  fprintf ( stdout, "\n" );
  fprintf ( stdout, "PINK_NOISE_PRB:\n" );
  fprintf ( stdout, "  Normal end of execution.\n" );
  fprintf ( stdout, "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 23
0
int mainOriginal()

/******************************************************************************/
/*
Purpose:

MAIN is the main program for FFTW3_PRB.

Discussion:

FFTW3_PRB tests the FFTW3 library.

Licensing:

This code is distributed under the GNU LGPL license.

Modified:

05 November 2007

Author:

John Burkardt
*/
{
	timestamp();
	printf("\n");
	printf("FFTW3_PRB\n");
	printf("  C version\n");
	printf("  Test the FFTW3 library.\n");

	test01();
	test02();
	test03();
	test04();
	/*
	Terminate.
	*/
	printf("\n");
	printf("FFTW3_PRB\n");
	printf("  Normal end of execution.\n");
	printf("\n");
	timestamp();

	return 0;
}
Esempio n. 24
0
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAINI is the main program for RANDLC_PRB.

  Discussion:

    RANDLC_PRB tests the RANDLC library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    12 March 2010

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "RANDLC_PRB\n" );
  printf ( "  C version:\n" );
  printf ( "  Test the RANDLC library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "RANDLC_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 25
0
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for ST_TO_CC_PRB.

  Discussion:

    ST_TO_CC_PRB tests the ST_TO_CC library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    15 July 2014

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "ST_TO_CC_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the ST_TO_CC library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
  test04 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "ST_TO_CC_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 26
0
int
main(void)
{
    main_tid = thread_l4tid(env_thread(iguana_getenv("MAIN")));

    printf("\nKernel counter example\n");
    printf("----------\n");

    test01();
    test02();
    test03();

    printf("Kernel counter example finished\n");
    L4_KDB_Enter("done");

    return 0;
}
Esempio n. 27
0
int main ( void )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for TEST_INTERP_PRB.

  Discussion:

    TEST_INTERP_PRB tests the TEST_INTERP library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    06 February 2012

  Author:

    John Burkardt
*/
{
  timestamp (  );
  printf ( "\n" );
  printf ( "TEST_INTERP_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the TEST_INTERP library.\n" );
  printf ( "  This test also requires the R8LIB library.\n" );

  test01 ( );
  test02 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "TEST_INTERP_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for COLLATZ_RECURSIVE_PRB.

  Discussion:

    COLLATZ_RECURSIVE_PRB tests the COLLATZ_RECURSIVE library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    09 March 2012

  Author:

    John Burkardt
*/
{
  timestamp ( );

  printf ( "\n" );
  printf ( "COLLATZ_RECURSIVE_PRB\n" );
  printf ( "  C version\n" );
  printf ( "  Test the COLLATZ_RECURSIVE library.\n" );

  test01 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "COLLATZ_RECURSIVE_PRB\n" );
  printf ( "  Normal end of execution.\n" );

  printf ( "\n" );
  timestamp ( );

  return 0;
}
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for HIGH_CARD_SIMULATION_PRB.

  Discussion:

    HIGH_CARD_SIMULATION_PRB tests the HIGH_CARD_SIMULATION library.

  Licensing:

    This code is distributed under the GNU LGPL license.

  Modified:

    25 February 2014

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "HIGH_CARD_SIMULATION_PRB\n" );
  printf ( "  C version.\n" );
  printf ( "  Test the HIGH_CARD_SIMULATION library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "HIGH_CARD_SIMULATION_PRB\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}
Esempio n. 30
0
int main ( )

/******************************************************************************/
/*
  Purpose:

    MAIN is the main program for ASA245_PRB.

  Discussion:

    ASA245_PRB tests the ASA245 library.

  Licensing:

    This code is distributed under the GNU LGPL license. 

  Modified:

    25 September 2014

  Author:

    John Burkardt
*/
{
  timestamp ( );
  printf ( "\n" );
  printf ( "ASA245_PRB:\n" );
  printf ( "  C version\n" );
  printf ( "  Test the ASA245 library.\n" );

  test01 ( );
  test02 ( );
  test03 ( );
/*
  Terminate.
*/
  printf ( "\n" );
  printf ( "ASA245_PRB:\n" );
  printf ( "  Normal end of execution.\n" );
  printf ( "\n" );
  timestamp ( );

  return 0;
}