File: main.cpp

package info (click to toggle)
fcml 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,536 kB
  • sloc: ansic: 57,510; cpp: 21,835; sh: 4,410; lex: 834; makefile: 508; yacc: 317
file content (60 lines) | stat: -rw-r--r-- 1,721 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * FCML - Free Code Manipulation Library.
 * Copyright (C) 2010-2020 Slawomir Wojtasiak
 *
 * This library 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; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * 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 library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <stdlib.h>

#include <fcml_stf.h>

// Include mnemonics and register definitions into the destination image file.
#include <fcml_registers.cpp>
#include <fcml_gas_mnemonics.cpp>
#include <fcml_intel_mnemonics.cpp>

#include "dialect_t.hpp"
#include "common_t.hpp"
#include "assembler_t.hpp"
#include "disassembler_t.hpp"
#include "errors_t.hpp"
#include "parser_t.hpp"

fcml_stf_test_suite *fcml_arr_cpp_suites[] = {
    &fcml_si_cpp_dialect,
    &fcml_si_cpp_common,
    &fcml_si_cpp_assembler,
    &fcml_si_cpp_disassembler,
    &fcml_si_cpp_errors,
    &fcml_si_cpp_parser,
    &fcml_si_cpp_assembler,
    FCML_STF_NULL_SUITE
};

#include <fcml_common.hpp>

using namespace fcml;

int main(int argc, char **argv) {

    /* Run tests.*/

    fcml_bool result = fcml_stf_run_tests( FCML_TEXT("CPP wrappers tests"), fcml_arr_cpp_suites );

    exit( result ? 0 : 1 );
}