test/main.c

Thu, 05 Jan 2012 14:53:54 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 05 Jan 2012 14:53:54 +0100
changeset 20
db7d9860dbbd
parent 13
98ac89e3aa37
child 21
d599fefc7620
permissions
-rw-r--r--

added some map functions

olaf@0 1 /*
olaf@0 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
olaf@0 3 *
olaf@0 4 * Copyright 2011 Olaf Wintermann. All rights reserved.
olaf@0 5 *
olaf@0 6 * Redistribution and use in source and binary forms, with or without
olaf@0 7 * modification, are permitted provided that the following conditions are met:
olaf@0 8 *
olaf@0 9 * 1. Redistributions of source code must retain the above copyright
olaf@0 10 * notice, this list of conditions and the following disclaimer.
olaf@0 11 *
olaf@0 12 * 2. Redistributions in binary form must reproduce the above copyright
olaf@0 13 * notice, this list of conditions and the following disclaimer in the
olaf@0 14 * documentation and/or other materials provided with the distribution.
olaf@0 15 *
olaf@0 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
olaf@0 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
olaf@0 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
olaf@0 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
olaf@0 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
olaf@0 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
olaf@0 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
olaf@0 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
olaf@0 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
olaf@0 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
olaf@0 26 * POSSIBILITY OF SUCH DAMAGE.
olaf@0 27 */
olaf@0 28
olaf@0 29 #include <stdio.h>
olaf@0 30 #include <stdlib.h>
olaf@0 31
olaf@9 32 #include "list_tests.h"
olaf@13 33 #include "mpool_tests.h"
olaf@20 34 #include "map_tests.h"
olaf@9 35
olaf@0 36 int main(int argc, char **argv) {
olaf@13 37 printf("UCX Tests\n---------\n");
olaf@9 38
olaf@13 39 printf("\nUcxDlist Tests\n");
olaf@12 40 if(dlist_tests()) {
olaf@13 41 fprintf(stderr, "dlist_tests failed\n");
olaf@13 42 }
olaf@13 43
olaf@13 44 printf("\nUcxList Tests\n");
olaf@13 45 if(list_tests()) {
olaf@12 46 fprintf(stderr, "list_tests failed\n");
olaf@12 47 }
olaf@13 48
olaf@13 49 printf("\nUcxMemPool Tests\n");
olaf@13 50 if(mpool_tests()) {
olaf@13 51 fprintf(stderr, "mpool_tests failed\n");
olaf@9 52 }
olaf@20 53
olaf@20 54 printf("\nUcxMap Tests\n");
olaf@20 55 if(map_tests()) {
olaf@20 56 fprintf(stderr, "map_tests failed\n");
olaf@20 57 }
olaf@0 58
olaf@0 59 return EXIT_SUCCESS;
olaf@0 60 }
olaf@0 61

mercurial