Removed stream name from config

This commit is contained in:
Phil Nash 2013-05-29 19:06:25 +01:00
parent 3f184e22e8
commit 40e529740c
5 changed files with 323 additions and 419 deletions

View file

@ -256,20 +256,12 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) {
}
}
SECTION( "streams", "" ) {
SECTION( "output filename", "" ) {
SECTION( "-o filename", "" ) {
const char* argv[] = { "test", "-o", "filename.ext" };
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
REQUIRE( config.outputFilename == "filename.ext" );
REQUIRE( config.stream.empty() );
}
SECTION( "-o %stdout", "" ) {
const char* argv[] = { "test", "-o", "%stdout" };
CHECK_NOTHROW( parseIntoConfig( argv, config ) );
REQUIRE( config.stream == "stdout" );
REQUIRE( config.outputFilename.empty() );
}
SECTION( "--out", "" ) {
const char* argv[] = { "test", "--out", "filename.ext" };