test/testautomation.c
author Andreas Schiffler <aschiffler@ferzkopp.net>
Sat, 15 Dec 2012 21:50:17 -0800
changeset 6757 9935f71c8c81
parent 6756 398073b195bb
child 6763 9cbd31a3450b
permissions -rw-r--r--
Fixes in harness and fuzzer test lib components; improve harness driver; add rect test suite
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
  Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
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
  This software is provided 'as-is', without any express or implied
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
  warranty.  In no event will the authors be held liable for any damages
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
  arising from the use of this software.
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
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
  Permission is granted to anyone to use this software for any purpose,
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
  including commercial applications, and to alter it and redistribute it
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
  freely.
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
    11
*/
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
    12
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
    13
#include <stdlib.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
    14
#include <stdio.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
    15
#include <time.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
    16
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
    17
#include "SDL.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
    18
#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
    19
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
    20
#include "tests/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
    21
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
    22
static SDLTest_CommonState *state;
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
    23
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
    24
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
    25
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
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
    26
static void
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
    27
quit(int rc)
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
    28
{
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
    29
    SDLTest_CommonQuit(state);
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
    exit(rc);
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
    31
}
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
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
    33
int
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
    34
main(int argc, char *argv[])
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
    35
{
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
    36
    int result;
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
    37
    int testIterations = 1;
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
    38
    Uint64 userExecKey = 0;
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
    39
    char *userRunSeed = 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
    40
    int i;
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
    41
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
    42
    /* Initialize test framework */
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
    43
    state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
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
    44
    if (!state) {
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
    45
        return 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
    46
    }
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
    47
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
    48
    // Needed?
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
    49
    // state->window_flags |= SDL_WINDOW_RESIZABLE;
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
    50
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
    51
    /* Parse commandline */
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
    for (i = 1; i < argc;) {
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
        int consumed;
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
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
    55
        consumed = SDLTest_CommonArg(state, i);
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
    56
        if (consumed == 0) {
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
    57
            consumed = -1;
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
    58
            if (SDL_strcasecmp(argv[i], "--iterations") == 0) {
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
    59
                if (argv[i + 1]) {
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
    60
                    testIterations = SDL_atoi(argv[i + 1]);
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
    61
                    if (testIterations < 1) testIterations = 1;
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
    62
                    consumed = 2;                    
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
    63
                }
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
    64
            } 
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
    65
            else if (SDL_strcasecmp(argv[i], "--execKey") == 0) {
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
    66
                if (argv[i + 1]) {
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
    67
                    SDL_sscanf(argv[i + 1], "%llu", &userExecKey);
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
    68
                    consumed = 2;                    
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
    69
                }
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
    70
            } 
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
    71
            else if (SDL_strcasecmp(argv[i], "--seed") == 0) {
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
    72
                if (argv[i + 1]) {
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
    73
                    userRunSeed = SDL_strdup(argv[i + 1]);
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
    74
                    consumed = 2;
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
    75
                }
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
    76
            } 
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
    77
        }
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
    78
        if (consumed < 0) {
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
    79
            fprintf(stderr,
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
    80
                    "Usage: %s %s [--iterations #] [--execKey #] [--seed string]\n",
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
    81
                    argv[0], SDLTest_CommonUsage(state));
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
    82
            quit(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
    83
        }
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
    84
        
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
    85
        i += consumed;
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
    86
    }
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
    87
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
    88
    /* Initialize common state */    
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
    89
    if (!SDLTest_CommonInit(state)) {
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
    90
        quit(2);
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
    91
    }
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
    92
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
    93
    /* Create the windows, initialize the renderers */
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
    94
    for (i = 0; i < state->num_windows; ++i) {
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
    95
        SDL_Renderer *renderer = state->renderers[i];
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
    96
        SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
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
    97
        SDL_RenderClear(renderer);
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
    98
    }
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
    99
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
   100
    /* Call Harness */
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
   101
    result = SDLTest_RunSuites(testSuites, userRunSeed, userExecKey, testIterations);
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
   102
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
   103
    /* Clean up */
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
   104
    if (userRunSeed != NULL) {
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
   105
        SDL_free(userRunSeed);
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
   106
    }
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
   107
        
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
   108
    /* Shutdown everything */
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
   109
    quit(result);        
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
   110
    return(result);
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
   111
}
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
   112
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
   113
/* vi: set ts=4 sw=4 expandtab: */