| 1 |
/* |
| 2 |
* FCML - Free Code Manipulation Library. |
| 3 |
* Copyright (C) 2010-2020 Slawomir Wojtasiak |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <stdlib.h> |
| 21 |
|
| 22 |
#include <fcml_stf.h> |
| 23 |
|
| 24 |
// Include mnemonics and register definitions into the destination image file. |
| 25 |
#include <fcml_registers.cpp> |
| 26 |
#include <fcml_gas_mnemonics.cpp> |
| 27 |
#include <fcml_intel_mnemonics.cpp> |
| 28 |
|
| 29 |
#include "dialect_t.hpp" |
| 30 |
#include "common_t.hpp" |
| 31 |
#include "assembler_t.hpp" |
| 32 |
#include "disassembler_t.hpp" |
| 33 |
#include "errors_t.hpp" |
| 34 |
#include "parser_t.hpp" |
| 35 |
|
| 36 |
fcml_stf_test_suite *fcml_arr_cpp_suites[] = { |
| 37 |
&fcml_si_cpp_dialect, |
| 38 |
&fcml_si_cpp_common, |
| 39 |
&fcml_si_cpp_assembler, |
| 40 |
&fcml_si_cpp_disassembler, |
| 41 |
&fcml_si_cpp_errors, |
| 42 |
&fcml_si_cpp_parser, |
| 43 |
&fcml_si_cpp_assembler, |
| 44 |
FCML_STF_NULL_SUITE |
| 45 |
}; |
| 46 |
|
| 47 |
#include <fcml_common.hpp> |
| 48 |
|
| 49 |
using namespace fcml; |
| 50 |
|
| 51 |
int main(int argc, char **argv) { |
| 52 |
|
| 53 |
/* Run tests.*/ |
| 54 |
|
| 55 |
fcml_bool result = fcml_stf_run_tests( FCML_TEXT("CPP wrappers tests"), fcml_arr_cpp_suites ); |
| 56 |
|
| 57 |
exit( result ? 0 : 1 ); |
| 58 |
} |
| 59 |
|
| 60 |
|