Generate and scan documentation output in Ddoc tests.
commitdd5e32e739746ec0b479f6c0d389462679a57405
authoribuclaw <ibuclaw@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2018 19:55:54 +0000 (9 19:55 +0000)
committeribuclaw <ibuclaw@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2018 19:55:54 +0000 (9 19:55 +0000)
treedd018089cc652dc3988c715c571821c88940ca3e
parentf3c59f1b82476d75b109c6abd19aee996de74e7c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266933 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.test/gdc-test.exp