00001 /* 00002 * This file is part of testrunner-lite 00003 * 00004 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00005 * 00006 * Contact: Sampo Saaristo <ext-sampo.2.saaristo@nokia.com> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 * 00022 */ 00023 00024 #ifndef TESTRUNNERLITE_H 00025 #define TESTRUNNERLITE_H 00026 00027 /* ------------------------------------------------------------------------- */ 00028 /* INCLUDES */ 00029 /* None */ 00030 00031 /* ------------------------------------------------------------------------- */ 00032 /* CONSTANTS */ 00033 /* None */ 00034 00035 /* ------------------------------------------------------------------------- */ 00036 /* MACROS */ 00037 #define LOCAL static 00038 #define PROGNAME "testrunner-lite" 00039 /* ------------------------------------------------------------------------- */ 00040 /* DATA TYPES */ 00041 /* ------------------------------------------------------------------------- */ 00043 typedef enum { 00044 OUTPUT_TYPE_XML = 1, 00045 OUTPUT_TYPE_TXT 00046 } result_output; 00047 00049 typedef enum { 00050 TESTRUNNER_LITE_OK = 0, 00051 TESTRUNNER_LITE_INVALID_ARGUMENTS, 00052 TESTRUNNER_LITE_SSH_FAIL, 00053 TESTRUNNER_LITE_XML_PARSE_FAIL, 00054 TESTRUNNER_LITE_XML_VALIDATION_FAIL, 00055 TESTRUNNER_LITE_OUTPUT_FOLDER_CREATE_FAIL, 00056 TESTRUNNER_LITE_XML_READER_FAIL, 00057 TESTRUNNER_LITE_RESULT_LOGGING_FAIL 00058 } testrunner_lite_return_code; 00059 00061 typedef struct { 00062 char *input_filename; 00063 char *output_filename; 00064 char *output_folder; 00065 char *environment; 00066 char *remote_logger; 00067 long remote_logger_port; 00068 int syslog_output; 00069 int disable_schema; 00070 int semantic_schema; 00071 result_output output_type; 00072 int run_automatic; 00073 int run_manual; 00074 int skip_hwinfo; 00075 int log_level; 00076 char *target_address; 00077 } testrunner_lite_options; 00078 /* ------------------------------------------------------------------------- */ 00079 /* FORWARD DECLARATIONS */ 00080 /* None */ 00081 00082 /* ------------------------------------------------------------------------- */ 00083 /* STRUCTURES */ 00084 /* None */ 00085 00086 /* ------------------------------------------------------------------------- */ 00087 /* FUNCTION PROTOTYPES */ 00088 /* None */ 00089 00090 /* ------------------------------------------------------------------------- */ 00091 #endif /* TESTRUNNERLITE_H */ 00092 /* End of file */