test/testautomation_suites.h
author Ryan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2016 19:59:00 -0400
changeset 10266 c09f06c4e8c8
parent 8645 d69fdbefeecf
permissions -rw-r--r--
emscripten: send fake mouse events for touches, like other targets do. (This really should be handled at the higher level and not in the individual targets, but this fixes the immediate bug.)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6756
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     1
/**
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     2
 * Reference to all test suites.
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     3
 *
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     4
 */
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     5
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     6
#ifndef _testsuites_h
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     7
#define _testsuites_h
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     8
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
     9
#include "SDL_test.h"
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    10
7663
53fe1b64eb2d More non C89 compliant comments
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7216
diff changeset
    11
/* Test collections */
6772
5229a117ef97 Added audio test suite; minor code cleanups in test lib
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6769
diff changeset
    12
extern SDLTest_TestSuiteReference audioTestSuite;
6760
04dcce3081e6 Port clipboard and rwops test suites from GSOC code; minor updates to harness and fuzzer in test lib
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6757
diff changeset
    13
extern SDLTest_TestSuiteReference clipboardTestSuite;
6800
26c6795ec1a4 Add new test suites (events, keyboard, syswm, video) with a few new tests each
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6773
diff changeset
    14
extern SDLTest_TestSuiteReference eventsTestSuite;
26c6795ec1a4 Add new test suites (events, keyboard, syswm, video) with a few new tests each
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6773
diff changeset
    15
extern SDLTest_TestSuiteReference keyboardTestSuite;
6866
e74a4b282450 Don't clobber refcounting in SDL_Init.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 6839
diff changeset
    16
extern SDLTest_TestSuiteReference mainTestSuite;
7216
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    17
extern SDLTest_TestSuiteReference mouseTestSuite;
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    18
extern SDLTest_TestSuiteReference pixelsTestSuite;
6756
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    19
extern SDLTest_TestSuiteReference platformTestSuite;
6757
9935f71c8c81 Fixes in harness and fuzzer test lib components; improve harness driver; add rect test suite
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6756
diff changeset
    20
extern SDLTest_TestSuiteReference rectTestSuite;
6763
9cbd31a3450b Test lib updates: updated harness to support filtering, added surface comparer, updated interface to test images; added Render test suite from GSOC project
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6760
diff changeset
    21
extern SDLTest_TestSuiteReference renderTestSuite;
6760
04dcce3081e6 Port clipboard and rwops test suites from GSOC code; minor updates to harness and fuzzer in test lib
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6757
diff changeset
    22
extern SDLTest_TestSuiteReference rwopsTestSuite;
7216
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    23
extern SDLTest_TestSuiteReference sdltestTestSuite;
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    24
extern SDLTest_TestSuiteReference stdlibTestSuite;
6773
5ebc5a9e35b4 Add surface test suite; minor improvements to render suite; refactor image saving into test lib compare function; fix for Haiku build
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6772
diff changeset
    25
extern SDLTest_TestSuiteReference surfaceTestSuite;
6800
26c6795ec1a4 Add new test suites (events, keyboard, syswm, video) with a few new tests each
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6773
diff changeset
    26
extern SDLTest_TestSuiteReference syswmTestSuite;
7216
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    27
extern SDLTest_TestSuiteReference timerTestSuite;
6800
26c6795ec1a4 Add new test suites (events, keyboard, syswm, video) with a few new tests each
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 6773
diff changeset
    28
extern SDLTest_TestSuiteReference videoTestSuite;
8645
d69fdbefeecf Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 7663
diff changeset
    29
extern SDLTest_TestSuiteReference hintsTestSuite;
6756
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    30
7663
53fe1b64eb2d More non C89 compliant comments
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7216
diff changeset
    31
/* All test suites */
6756
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    32
SDLTest_TestSuiteReference *testSuites[] =  {
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    33
    &audioTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    34
    &clipboardTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    35
    &eventsTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    36
    &keyboardTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    37
    &mainTestSuite,
7216
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    38
    &mouseTestSuite,
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    39
    &pixelsTestSuite,
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    40
    &platformTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    41
    &rectTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    42
    &renderTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    43
    &rwopsTestSuite,
7216
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    44
    &sdltestTestSuite,
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    45
    &stdlibTestSuite,
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    46
    &surfaceTestSuite,
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    47
    &syswmTestSuite,
7216
3586fc0ba156 Added the beginning of automated tests for the standard C library routines.
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    48
    &timerTestSuite,
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    49
    &videoTestSuite,
8645
d69fdbefeecf Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
Andreas Schiffler <aschiffler@ferzkopp.net>
parents: 7663
diff changeset
    50
    &hintsTestSuite,
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7134
diff changeset
    51
    NULL
6756
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    52
};
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    53
398073b195bb Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
diff changeset
    54
#endif