opensaf  5.21.09
About: OpenSAF is a project focused on Service Availability (SA) that develops middleware based on open and industry standard interfaces for applications requiring uninterrupted 24x7 service.
  Fossies Dox: opensaf-5.21.09.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

amftest.c
Go to the documentation of this file.
1/* -*- OpenSAF -*-
2 *
3 * (C) Copyright 2008 The OpenSAF Foundation
4 * Copyright (C) 2017, Oracle and/or its affiliates. All rights reserved.
5 *
6 * This program is distributed in the hope that it will be useful, but
7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8 * or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
9 * under the GNU Lesser General Public License Version 2.1, February 1999.
10 * The complete license can be accessed from the following location:
11 * http://opensource.org/licenses/lgpl-license.php
12 * See the Copying file included with the OpenSAF distribution for full
13 * licensing terms.
14 *
15 *
16 */
17
18#include "amftest.h"
19
23SaVersionT amfVersion_B41 = { 'B', 0x04, 0x01 };
25
26int main(int argc, char **argv)
27{
28 int test_case = ALL_TESTS, test_suite = ALL_SUITES;
29
30 if (argc > 1)
31 test_suite = atoi(argv[1]);
32 if (argc > 2)
33 test_case = atoi(argv[2]);
34 if (test_suite == 0) {
35 test_list();
36 return 0;
37 }
38 return test_run(test_suite, test_case);
39}
int main(int argc, char **argv)
Definition: amftest.c:26
SaAisErrorT rc
Definition: amftest.c:20
SaAmfCallbacksT_4 amfCallbacks_4
Definition: amftest.c:24
SaVersionT amfVersion_B41
Definition: amftest.c:23
SaSelectionObjectT selectionObject
Definition: amftest.c:22
SaAmfHandleT amfHandle
Definition: amftest.c:21
SaAisErrorT
Definition: saAis.h:96
SaUint64T SaSelectionObjectT
Definition: saAis.h:60
SaUint64T SaAmfHandleT
Definition: saAmf.h:49
int test_run(unsigned int suite, unsigned int tcase)
Run all test cases, all test cases in a suite or a specific test case.
Definition: utest.c:192
void test_list(void)
List all test cases.
Definition: utest.c:245
#define ALL_TESTS
Definition: utest.h:29
#define ALL_SUITES
Definition: utest.h:28