libabigail
|
This file implements the common functionality for the tests in CTF and DWARF readers, it does the abstraction in the `act` test stage. More...
Go to the source code of this file.
Namespaces | |
namespace | abigail |
Toplevel namespace for libabigail. | |
Typedefs | |
typedef shared_ptr< write_context > | write_context_sptr |
A convenience typedef for a shared pointer to write_context. | |
Functions | |
write_context_sptr | create_write_context (const environment &env, ostream &default_output_stream) |
Create a write_context object that can be used to emit abixml files. | |
void | display_usage (const string &prog_name, ostream &out) |
Write the usage message to out stream object. | |
ostream & | emit_prefix (const string &prog_name, ostream &out) |
Emit a prefix made of the name of the program which is emitting a message to an output stream. | |
bool | parse_command_line (int argc, char *argv[], options &opts) |
Parse and process test options. | |
bool | run_tests (const size_t num_tests, const InOutSpec *specs, const options &opts, create_new_test new_test) |
The main entry point to execute the testsuite. | |
bool | write_corpus (write_context &ctxt, const corpus_sptr &corpus, unsigned indent, bool member_of_group) |
Serialize an ABI corpus to a single native xml document. The root note of the resulting XML document is 'abi-corpus'. | |
This file implements the common functionality for the tests in CTF and DWARF readers, it does the abstraction in the `act` test stage.
Definition in file test-read-common.cc.
typedef shared_ptr<write_context> write_context_sptr |
A convenience typedef for a shared pointer to write_context.
Definition at line 36 of file abg-writer.h.
write_context_sptr create_write_context | ( | const environment & | env, |
ostream & | default_output_stream ) |
Create a write_context object that can be used to emit abixml files.
env | the environment for the write_context object to use. |
default_output_stream | the default output stream to use. |
Definition at line 2212 of file abg-writer.cc.
void display_usage | ( | const string & | prog_name, |
ostream & | out ) |
Write the usage message to out
stream object.
prog_name | the program name. |
out | the stream object to which want to write. |
Definition at line 152 of file test-read-common.cc.
ostream & emit_prefix | ( | const string & | prog_name, |
ostream & | out ) |
Emit a prefix made of the name of the program which is emitting a message to an output stream.
The prefix is a string which looks like:
"<program-name> : "
prog_name | the name of the program to use in the prefix. |
out | the output stream where to emit the prefix. |
Definition at line 886 of file abg-tools-utils.cc.
bool parse_command_line | ( | int | argc, |
char * | argv[], | ||
options & | opts ) |
Parse and process test options.
argc | the arguments number. |
argv | the pointer to the arguments. |
opts | the valid options to be processed/parsed. |
Definition at line 173 of file test-read-common.cc.
bool run_tests | ( | const size_t | num_tests, |
const InOutSpec * | specs, | ||
const options & | opts, | ||
create_new_test | new_test ) |
The main entry point to execute the testsuite.
num_tests | the number of tests to be executed. |
specs | the InOutSpec tests container. |
opts | the test execution options. |
new_test | the create_new_test callback function to create a new test task object. |
Definition at line 208 of file test-read-common.cc.
bool write_corpus | ( | write_context & | ctxt, |
const corpus_sptr & | corpus, | ||
unsigned | indent, | ||
bool | member_of_group = false ) |
Serialize an ABI corpus to a single native xml document. The root note of the resulting XML document is 'abi-corpus'.
Note: If either corpus is null or corpus does not contain serializable content (i.e. corpus.is_empty()), nothing is emitted to the ctxt's output stream.
ctxt | the write context to use. |
corpus | the corpus to serialize. |
indent | the number of white space indentation to use. |
Definition at line 4675 of file abg-writer.cc.