Basics/Singledoc Outputmode with Different Formats [ System tests ]
FUNCTION
Test singledoc mode for all supported output formats and see if it creates output in this format.
SOURCE
{ add_source( "test.c", $source ); my %output_modes = ( '--html' => 'html', '--rtf' => 'rtf', '--test' => 'xml', '--latex' => 'tex', '--dbxml' => 'xml', ); foreach my $mode ( keys %output_modes ) { my $file_extension = $output_modes{$mode}; my @arguments = qw(--src Src --doc testdoc --singledoc); push( @arguments, $mode ); my ( $out, $err ) = runrobo(@arguments); is( $out, '', 'No ouput' ); is( $err, '', '... and no error' ); file_exists_ok( "testdoc.$file_extension", 'there should be documentation' ); if ( $mode eq "--html" ) { file_exists_ok( "testdoc.css", 'and a stylesheet' ); } unlink("testdoc.$file_extension") if -e "testdoc.$file_extension"; unlink('testdoc.css') if -e 'testdoc.css'; } clean(); }