1 : /*
2 : * Copyright (c) 2010 The Native Client Authors. All rights reserved.
3 : * Use of this source code is governed by a BSD-style license that can be
4 : * found in the LICENSE file.
5 : */
6 :
7 : #include <stdarg.h>
8 : #include <stdio.h>
9 : #include <stdlib.h>
10 : #include <string.h>
11 :
12 : #include "native_client/src/trusted/debug_stub/platform.h"
13 : #include "native_client/src/trusted/debug_stub/test.h"
14 :
15 1 : int main(int argc, const char *argv[]) {
16 1 : int errs = 0;
17 :
18 : (void) argc;
19 : (void) argv;
20 :
21 1 : printf("Testing Utils.\n");
22 1 : errs += TestUtil();
23 :
24 1 : printf("Testing ABI.\n");
25 1 : errs += TestAbi();
26 :
27 1 : printf("Testing Packets.\n");
28 1 : errs += TestPacket();
29 :
30 1 : printf("Testing Session.\n");
31 1 : errs += TestSession();
32 :
33 1 : if (errs) printf("FAILED with %d errors.\n", errs);
34 1 : return errs;
35 1 : }
36 :
|