blob: 2919bf621798b275897bf8bfc8ac12a8e6abc98e [file] [log] [blame]
Laurence Lundblade624405d2018-09-18 20:10:47 -07001/*
2 cmd_line_mainc.c -- basic tests for qcbor encoder / decoder
3
4 This is governed by the MIT license.
5
6 Copyright 2018 Laurence Lundblade
7
8 Permission is hereby granted, free of charge, to any person obtaining
9 a copy of this software and associated documentation files (the
10 "Software"), to deal in the Software without restriction, including
11 without limitation the rights to use, copy, modify, merge, publish,
12 distribute, sublicense, and/or sell copies of the Software, and to
13 permit persons to whom the Software is furnished to do so, subject to
14 the following conditions:
15
16 The above copyright notice and this permission notice shall be included
17 in all copies or substantial portions of the Software.
18
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
23 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 SOFTWARE.
27 */
Laurence Lundblade74f68412018-09-13 12:18:49 -070028
29#include <stdio.h>
30
31#include "basic_test.h"
32
33int main(int argc, const char * argv[]) {
Laurence Lundblade74f68412018-09-13 12:18:49 -070034
Laurence Lundbladea954db92018-09-28 19:27:31 -070035 int x = cose_sign1_tbs_test();
36
37 x = bstr_wrap_nest_test();
38
39 x = bstr_wrap_error_test();
40
41 x = bstrwraptest();
42
43 printf("Test Result %d\n", basic_test_one());
Laurence Lundblade74f68412018-09-13 12:18:49 -070044
45 return 0;
46}