3 #------------------------------------------------------------------------------
7 use Test::More 'no_plan';
10 #****x* Basics/One file per header
12 # Test --multidoc with --one_file_per_header for html output. We
13 # test this with one source file that contains three headers. These
14 # should result in three documentation files. To make it nasty we
15 # use some special header names.
19 # A dummy header to put into dummy source files.
42 add_source( "test.c", $source );
43 my ( $out, $err ) = runrobo(qw(--src Src --doc Doc --one_file_per_header --multidoc --html));
45 is( $out, '', 'No ouput' );
46 is( $err, '', '... and no error' );
47 # There are three headers, so there should be three documentation files.
48 file_exists_ok( 'Doc/test_cTest2FTest.html', 'Documentation for Test/Test' );
49 file_exists_ok( 'Doc/test_cTest2Ffoo.html', 'Documentation for Test/foo' );
50 file_exists_ok( 'Doc/test_cTest2Faa3A3Aawaw.html', 'Documentation for Test/aa::awaw' );
52 file_exists_ok( "Doc/robodoc.css", 'and a stylesheet' );