/* * Copyright (C) 2006, Intel Corporation * * This file is part of the Linux-ready Firmware Developer Kit * * This program file is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundation;version 2.1 of the License. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program in a file named COPYING; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA */ #define _GNU_SOURCE #include #include #include #include #include #include /* Example of a standalone exe test. * * In this case, the name of the test is 'example-exe', so the directory it resides in * should be called 'example-exe', as well as the main file itself. * The possible results are: * * PASS = successful * INFO = information given (neither pass nor fail) * WARN = warning, not severe, but notable * FAIL = failure, probably something serious or important * * * The plugin itself returns: * EXIT_SUCCESS upon success of running this plugin * EXIT_FAILURE upon failure of running this plugin */ int main(int argc, char **argv) { start_test("example-exe", "Short description of example-exe plugin", "Here is a little more wordy description about the plugin"); report_result("example-exe", PASS, "This is the result msg", NULL, NULL); report_result("example-exe", WARN, "This is the result msg", "This is the more detailed result msg", NULL); report_result("example-exe", FAIL, "This is the result msg", "This is the more detailed result msg related to the pci:// resource", "pci://"); finish_test("example-exe"); return EXIT_SUCCESS; }