Generate and scan documentation output in Ddoc tests.
commit54f397919ae47f9c2433be93fcc14288899beb8c
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 9 Dec 2018 19:55:54 +0000 (9 19:55 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sun, 9 Dec 2018 19:55:54 +0000 (9 19:55 +0000)
treedd018089cc652dc3988c715c571821c88940ca3e
parentb8559e810f5912bba9fba39c005f3fe2c1de09d9
Generate and scan documentation output in Ddoc tests.

The tests in gdc.test/compilable/ddoc*.d don't require the module to be
compiled all the way down to object code.  Instead, only compile the
test sources with -fdoc, and scan the generated html content.

gcc/testsuite/ChangeLog:

PR d/88039
* gdc.test/gdc-test.exp (gdc-convert-args): Handle -D.
(dmd2dg): Check generated html in ddoc tests.
(gdc-do-test): Set dg-do-what-default to compile for ddoc tests.

From-SVN: r266933
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.test/gdc-test.exp