diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-17 11:13:37 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-03-07 15:54:53 -0500 |
commit | 6c57b87fc41c368cfa339ad8a879899ba3058e44 (patch) | |
tree | 720afd8c120b1fec39c0b6b9a54f614d381ec22b /sim/testsuite/local.mk | |
parent | 6bddc3e8b480773f84a6694605a00ad0b2cee0c1 (diff) | |
download | gdb-6c57b87fc41c368cfa339ad8a879899ba3058e44.zip gdb-6c57b87fc41c368cfa339ad8a879899ba3058e44.tar.gz gdb-6c57b87fc41c368cfa339ad8a879899ba3058e44.tar.bz2 |
sim: testsuite: merge into toplevel automake
This allows us to delete most of our custom test logic,
and avoids a recursive make for minor speed up.
Diffstat (limited to 'sim/testsuite/local.mk')
-rw-r--r-- | sim/testsuite/local.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sim/testsuite/local.mk b/sim/testsuite/local.mk new file mode 100644 index 0000000..bd8a206 --- /dev/null +++ b/sim/testsuite/local.mk @@ -0,0 +1,34 @@ +## See sim/Makefile.am. +# +# Copyright (C) 1997-2021 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# Tweak the site.exp so it works with plain `runtest` from user. +EXTRA_DEJAGNU_SITE_CONFIG = site-srcdir.exp + +site-srcdir.exp: Makefile + echo "set srcdir \"$(srcdir)/testsuite\"" > $@ + +check-DEJAGNU: site.exp + LC_ALL=C; export LC_ALL; \ + EXPECT=${EXPECT} ; export EXPECT ; \ + runtest=$(RUNTEST); \ + if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ + $$runtest $(RUNTESTFLAGS); \ + else echo "WARNING: could not find \`runtest'" 1>&2; :;\ + fi + +MOSTLYCLEANFILES += \ + site-srcdir.exp testrun.log testrun.sum |