[PATCH, PR d/89255][2/3] Replace libphobos check programs with dg-runtest

Iain Buclaw ibuclaw@gdcproject.org
Fri Mar 29 17:58:00 GMT 2019


Following on from the first patch, this removes the unittest.exp
script, and splits the druntime/phobos and static/shared combinations
into four separate test scripts.

By using dg-runtest, the unittest tests now honour `--target_board`.
It should also resolve the first part of PR d/88654 where there was a
concern that the timeout for unittest.exp wasn't working.

Assuming that the first is OK, this is a pretty obvious change.

-- 
Iain
---
libphobos/ChangeLog:

2019-03-29  Iain Buclaw  <ibuclaw@gdcproject.org>

        PR d/89255
        * configure.ac (ENABLE_SHARED, ENABLE_STATIC): Remove conditionals.
        * configure: Rebuild.
        * d_rules.am (%.t.lo, %.t.o): Remove rules.
        (unittest_static_LINK, unittest_LINK, libgdruntime_t_la_LINK,
        libgphobos_t_la_LINK): Remove variables.
        * libdruntime/Makefile.am (DRUNTIME_TEST_LOBJECTS,
        DRUNTIME_TEST_OBJECTS, check_PROGRAMS, check_LTLIBRARIES,
        unittest_static_SOURCES, unittest_static_LIBTOOLFLAGS,
        unittest_static_LDFLAGS, unittest_static_LDADD,
        EXTRA_unittest_static_DEPENDENCIES, libgdruntime_t_la_SOURCES,
        libgdruntime_t_la_LIBTOOLFLAGS, libgdruntime_t_la_LDFLAGS,
        libgdruntime_t_la_LIBADD, EXTRA_libgdruntime_t_la_DEPENDENCIES,
        unittest_SOURCES, unittest_LIBTOOLFLAGS, unittest_LDFLAGS,
        unittest_LDADD): Remove variables.
        (clean-local): Remove rule.
        * libdruntime/Makefile.in: Rebuild.
        * src/Makefile.am (PHOBOS_TEST_LOBJECTS,
        PHOBOS_TEST_OBJECTS, check_PROGRAMS, check_LTLIBRARIES,
        unittest_static_SOURCES, unittest_static_LIBTOOLFLAGS,
        unittest_static_LDFLAGS, unittest_static_LDADD,
        EXTRA_unittest_static_DEPENDENCIES, libgdruntime_t_la_SOURCES,
        libgdruntime_t_la_LIBTOOLFLAGS, libgdruntime_t_la_LDFLAGS,
        libgdruntime_t_la_LIBADD, EXTRA_libgdruntime_t_la_DEPENDENCIES,
        unittest_SOURCES, unittest_LIBTOOLFLAGS, unittest_LDFLAGS,
        unittest_LDADD): Remove variables.
        (clean-local): Remove rule.
        * src/Makefile.in: Rebuild.
        * testsuite/lib/libphobos.exp (filter_libphobos_unittests): New proc.
        * testsuite/libphobos.druntime/druntime.exp: New file.
        * testsuite/libphobos.druntime_shared/druntime_shared.exp: New file.
        * testsuite/libphobos.phobos/phobos.exp: New file.
        * testsuite/libphobos.phobos_shared/phobos_shared.exp: New file.
        * testsuite/libphobos.unittests/unittests.exp: Remove.
        * testsuite/test_runner.d: Remove.
        * testsuite/testsuite_flags.in: Add phobos to --gdcpaths.

---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-remove-checkprogs.patch
Type: text/x-patch
Size: 103774 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190329/488032dc/attachment.bin>


More information about the Gcc-patches mailing list