makefile::tester Namespace Reference


Classes

struct  makefile::tester::TestComment
struct  makefile::tester::TestRule
struct  makefile::tester::TestConditional
struct  makefile::tester::TestVariable
class  makefile::tester::Test
 Base class for tests;. More...

Functions

void do_test (bool &result, Test *test)
int exec_make (std::stringbuf &makeoutbuf, std::stringbuf &makeerrbuf)
 Executes make with capturing stderr and stdout and feeding the makefile via stdin.

Variables

ostreamcout = std::cout
ostreamcerr = std::cerr


Function Documentation

void do_test bool &  result,
Test test
 

Definition at line 197 of file test_makefilelib.cpp.

References makefile::tester::Test::run().

Referenced by main().

int makefile::tester::exec_make std::stringbuf &  makeoutbuf,
std::stringbuf &  makeerrbuf
 

Executes make with capturing stderr and stdout and feeding the makefile via stdin.

Parameters:
argv as required by execvp (execvp takes a NULL-terminated array of null-terminated strings.) See manpage.
makeoutbuf stdout of make goes here.
makeerrbuf stderr of make goes here.
Returns:
return value of make. Uses macros to extract the value from wait(). See man wait.

Definition at line 50 of file test_util.cpp.

Referenced by createfiles_make(), and makefile::tester::Test::run().


Variable Documentation

ostream& makefile::tester::cerr = std::cerr
 

Definition at line 59 of file test_makefilelib.cpp.

ostream& makefile::tester::cout = std::cout
 

Definition at line 58 of file test_makefilelib.cpp.


Generated on Wed Jul 16 01:25:52 2014 for Hugintrunk by  doxygen 1.3.9.1