Changeset 258bda3 in rtems for testsuites/support


Ignore:
Timestamp:
Apr 3, 2017, 10:11:24 PM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
b3bfc242
Parents:
d2a45a58
git-author:
Chris Johns <chrisj@…> (04/03/17 22:11:24)
git-committer:
Chris Johns <chrisj@…> (04/03/17 22:24:22)
Message:

testsuite: Add a common test configuration. Fix configure.ac and Makefile.am errors.

  • Add a top level test configuration file for test states that are common to all BSPs. This saves adding a test configuration (tcfg) file for every BSP.
  • Add the test states 'user-input' and 'benchmark'. This lets 'rtems-test' stop the test rather than waiting for a timeout or letting a benchmark run without the user asking for it to run.
  • Implement rtems-test-check in Python to make it faster. The shell script had grown to a point it was noticably slowing the build down.
  • Fix the configure.ac and Makefile.am files for a number of the test directories. The files are difficiult to keep in sync with the number of tests and mistakes can happen such as tests being left out of the build. The test fsrofs01 is an example. Also a there was a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be used.
  • Fix the test fsrofs01 so it compiles.

Closes #2963.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/buffer_test_io.h

    rd2a45a58 r258bda3  
    2424 * Test states. No state string is an expected pass.
    2525 */
    26 #if TEST_STATE_EXPECTED_FAIL && \
    27     TEST_INDETERMINATE_FAIL
     26#if (TEST_STATE_EXPECTED_FAIL && TEST_STATE_USER_INPUT) || \
     27    (TEST_STATE_EXPECTED_FAIL && TEST_STATE_INDETERMINATE) || \
     28    (TEST_STATE_EXPECTED_FAIL && TEST_STATE_BENCHMARK) || \
     29    (TEST_STATE_USER_INPUT    && TEST_STATE_INDETERMINATE) || \
     30    (TEST_STATE_USER_INPUT    && TEST_STATE_BENCHMARK) || \
     31    (TEST_STATE_INDETERMINATE && TEST_STATE_BENCHMARK)
    2832  #error Test states must be unique
    2933#endif
     
    3135#if TEST_STATE_EXPECTED_FAIL
    3236  #define TEST_STATE_STRING "*** TEST STATE: EXPECTED-FAIL\n"
    33 #elif TEST_INDETERMINATE_FAIL
     37#elif TEST_STATE_USER_INPUT
     38  #define TEST_STATE_STRING "*** TEST STATE: USER_INPUT\n"
     39#elif TEST_STATE_INDETERMINATE
    3440  #define TEST_STATE_STRING "*** TEST STATE: INDETERMINATE\n"
     41#elif TEST_STATE_BENCHMARK
     42  #define TEST_STATE_STRING "*** TEST STATE: BENCHMARK\n"
    3543#endif
    3644
Note: See TracChangeset for help on using the changeset viewer.