testsuite: Split up gdc-test.exp into each subdirectory
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 28 Mar 2020 17:44:12 +0000 (18:44 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Mar 2020 15:29:04 +0000 (17:29 +0200)
commitc76df72f1a916d0482d15e43656ddff724352705
treea4f76e3d7b30d0ac96c6924b794fb5778af7d34c
parent673bb288e6277e2d21f25ce40f19bcb28cf2a99d
testsuite: Split up gdc-test.exp into each subdirectory

Use multiple test scripts, one for each subdirectory containing test
files, instead of having one test script to manage them all.

This allows removing some workarounds, such as the need to create
symlinks in the test run directory.

gcc/testsuite/ChangeLog:

* gdc.test/compilable/compilable.exp: New file.
* gdc.test/fail_compilation/fail_compilation.exp: New file.
* gdc.test/gdc-test.exp: Remove.
* gdc.test/runnable/runnable.exp: New file.
* lib/gdc-utils.exp: ...this.  Remove load_lib gdc-dg.exp.
(dmd2dg): Rename to...
(gdc-convert-test): ...this.
(gdc-do-test): Add testcases parameter and remove subdir handling.
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.test/compilable/compilable.exp [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail_compilation.exp [new file with mode: 0644]
gcc/testsuite/gdc.test/runnable/runnable.exp [new file with mode: 0644]
gcc/testsuite/lib/gdc-utils.exp [moved from gcc/testsuite/gdc.test/gdc-test.exp with 94% similarity]