|
libabigail
|
The task that performs the tests. More...
#include <test-read-common.h>
Public Member Functions | |
| test_task (const InOutSpec &s, string &a_out_abi_base, string &a_in_elf_base, string &a_in_abi_base) | |
| Constructor. | |
| bool | run_abidw (const string &extargs="") |
Spawn `abidw –abidiff` tool appending extargs argument. | |
| bool | run_diff () |
| Spawn external `diff` command. | |
| bool | serialize_corpus (const string &out_abi_path, corpus_sptr corp) |
Serialize the abixml out_abi_path file. | |
| void | set_in_abi_path () |
| A setter for `in_abi_path` field. The `in_abi_path` is the full path for the expected abixml file. | |
| void | set_in_elf_path () |
| A setter for `in_elf_path` field. The `in_elf_path` is the full path for input object in the tests container InOutSpec. | |
| void | set_in_public_headers_path () |
| A setter for `in_public_headers_path` field. The `in_public_headers_path` is the full path for headers entry in the tests container InOutSpec. | |
| void | set_in_suppr_spec_path () |
| A setter for `in_suppr_spec_path` field. The `in_suppr_spec_path` is the full path for suppression entry in the tests container InOutSpec. | |
| bool | set_out_abi_path () |
| A setter for `out_abi_path` field. The `out_abi_path` is the full path for output of abixml file. | |
Public Member Functions inherited from task | |
| virtual void | perform ()=0 |
Public Attributes | |
| string | error_message |
| string | in_abi_base |
| string | in_abi_path |
| string | in_elf_base |
| string | in_elf_path |
| string | in_public_headers_path |
| string | in_suppr_spec_path |
| bool | is_ok |
| string | out_abi_base |
| string | out_abi_path |
| InOutSpec | spec |
The task that performs the tests.
Definition at line 47 of file test-read-common.h.
| test_task | ( | const InOutSpec & | s, |
| string & | a_out_abi_base, | ||
| string & | a_in_elf_base, | ||
| string & | a_in_abi_base ) |
Constructor.
Task to be executed for each test entry in InOutSpec.
| InOutSpec | the set of tests. |
| a_out_abi_base | the output base directory for abixml files. |
| a_in_elf_base | the input base directory for object files. |
| a_in_elf_base | the input base directory for expected abixml files. |
Definition at line 44 of file test-read-common.cc.
|
inlinevirtual |
Definition at line 141 of file test-read-common.h.
| bool run_abidw | ( | const string & | extargs = "" | ) |
Spawn `abidw –abidiff` tool appending extargs argument.
Thew input file object used by `abidw` will be specified by `in_elf_path'.
| extargs | the extra argument(s) passed to `abidw` tool. |
Definition at line 95 of file test-read-common.cc.
| bool run_diff | ( | ) |
Spawn external `diff` command.
The files to be compared are: abixml generated by the input object file and the expected abixml file stored in `in_abi_path`.
Definition at line 127 of file test-read-common.cc.
| bool serialize_corpus | ( | const string & | out_abi_path, |
| corpus_sptr | corp ) |
Serialize the abixml out_abi_path file.
| out_abi_path | the abixml path file. |
| corp | the ABI corpus. |
out_abi_path and false is returned. Definition at line 64 of file test-read-common.cc.
|
inline |
A setter for `in_abi_path` field. The `in_abi_path` is the full path for the expected abixml file.
Definition at line 122 of file test-read-common.h.
|
inline |
A setter for `in_elf_path` field. The `in_elf_path` is the full path for input object in the tests container InOutSpec.
Definition at line 68 of file test-read-common.h.
|
inline |
A setter for `in_public_headers_path` field. The `in_public_headers_path` is the full path for headers entry in the tests container InOutSpec.
Definition at line 91 of file test-read-common.h.
|
inline |
A setter for `in_suppr_spec_path` field. The `in_suppr_spec_path` is the full path for suppression entry in the tests container InOutSpec.
Definition at line 78 of file test-read-common.h.
|
inline |
A setter for `out_abi_path` field. The `out_abi_path` is the full path for output of abixml file.
Definition at line 103 of file test-read-common.h.
| string error_message |
Definition at line 51 of file test-read-common.h.
| string in_abi_base |
Definition at line 54 of file test-read-common.h.
| string in_abi_path |
Definition at line 57 of file test-read-common.h.
| string in_elf_base |
Definition at line 53 of file test-read-common.h.
| string in_elf_path |
Definition at line 56 of file test-read-common.h.
| string in_public_headers_path |
Definition at line 59 of file test-read-common.h.
| string in_suppr_spec_path |
Definition at line 58 of file test-read-common.h.
| bool is_ok |
Definition at line 49 of file test-read-common.h.
| string out_abi_base |
Definition at line 52 of file test-read-common.h.
| string out_abi_path |
Definition at line 60 of file test-read-common.h.
| InOutSpec spec |
Definition at line 50 of file test-read-common.h.