gdb/testsuite in the gdb tarball contains a lot of tests for gdb. It would be nice if we could install those tests to /usr/local/tests/gdb*, then integrate them in to Kyua (eventually). For now installing the tests would be wonderful. It seems that they need: - dejagnu (explicitly) - gcc (implicitly -- there are a number of issues with using clang in base it seems). - gmake (maybe only from the top-level WORKDIR... not sure) I still need to churn through the test suite (I ran the gdb 7.7 test suite with minor issues detecting some libraries), but having it to start out with would allow me to go through all of the issues and file bugs upstream with the FSF folks.
Hi Garrett, A previous work on it is already done. gmake is already required, but in case of tests, it's required also as RUNNING_DEPENDS. I tried to run those tests (not in /usr/local/test, but directly from the gdb source tree) and the number of error is huge (> 800). I'll try to figure out all implications and to provide a patch soon.
I've tried to work on this, but it seems a little bit complicated. Tests are written to be executed in the gdb source tree; moving them without source tree requires some work, especially editing several dejagnu test cases and bringing some extra files. Moreover, the pkg-plist would become huge. Some works is going on tests on ports (https://reviews.freebsd.org/D3680); it could solve a lot of problems that I've and I would wait that that work is accepted by portmgr before to go any further...
Created attachment 162962 [details] Patch introducing the target "test" This patch add the target "test" using the new test framework recently added. Note: Tests fail with error code 2, because gdb tests has a huge amount of unexpected failures (1448) [on linux and I've got ~800] That means that, the test target doesn't proof the port's correctness (actually gdb works) despite the test's failures.
The new patch makes Bug 198146 obsolete/duplicated
*** Bug 198146 has been marked as a duplicate of this bug. ***
A commit references this bug: Author: tijl Date: Wed Nov 11 12:06:33 UTC 2015 New revision: 401237 URL: https://svnweb.freebsd.org/changeset/ports/401237 Log: Enable regression tests PR: 200610 Submitted by: luca.pizzamiglio@gmail.com (maintainer) Changes: head/devel/gdb/Makefile