dejagnu/dejagnu.spec

112 lines
3.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package dejagnu
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: dejagnu
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
Version: 1.6.3
Release: 0
Summary: Framework for Running Test Suites on Software Tools
License: GPL-3.0-or-later
Group: Development/Tools/Building
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
URL: https://www.gnu.org/software/dejagnu/
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
Source2: https://savannah.gnu.org/project/release-gpgkeys.php?group=dejagnu&download=1#/%{name}.keyring
Source3: site.exp
Patch0: testsuite-legacy.patch
BuildRequires: expect
BuildRequires: fdupes
BuildRequires: gcc-c++
Requires: expect
Requires: info
Requires: tcl
Requires(post): %{install_info_prereq}
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
Requires(preun):%{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
2014-04-08 21:11:44 +02:00
BuildArch: noarch
%description
DejaGnu is a framework for testing other programs. Its purpose is to
provide a single front-end for all tests. Beyond this, DejaGnu offers
several advantages for testing:
1. The flexibility and consistency of the DejaGnu framework make it
easy to write tests for any program.
1. DejaGnu provides a layer of abstraction that allows you to write
tests that are portable to any host or target where a program
must be tested. For instance, a test for GDB can run (from any
Unix-based host) on any target architecture that DejaGnu
supports.
1. All tests have the same output format. This makes it easy to
integrate testing into other software development processes.
DejaGnu's output is designed to be parsed by other filtering
scripts and it is also human-readable.
DejaGnu is written in expect, which in turn uses "Tcl"--Tool command
language.
Running tests requires two things: the testing framework and the test
suites themselves.
%prep
%autosetup -p1
%build
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
# 49078@debbugs.gnu.org: bug in Expect 5.45.4 triggers a testsuite failure
# when building in source directory
mkdir build
cd build
%define _configure ../configure
2014-04-08 21:11:44 +02:00
%configure
make %{?_smp_mflags}
%check
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
make -C build check
%install
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
make -C build %{?_smp_mflags} DESTDIR=%{buildroot} install
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/dejagnu/site.exp
ln -s -f %{_sysconfdir}/dejagnu/site.exp %{buildroot}%{_datadir}/dejagnu/site.exp
%fdupes -s %{buildroot}
2014-04-08 21:11:44 +02:00
%post
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
%install_info --info-dir=%{_infodir} %{_infodir}/dejagnu.info%{ext_info}
2014-04-08 21:11:44 +02:00
%preun
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
%install_info_delete --info-dir=%{_infodir} %{_infodir}/dejagnu.info%{ext_info}
%files
%defattr(-, root, root)
%license COPYING
%doc ChangeLog NEWS README AUTHORS TODO
%dir %{_datadir}/dejagnu
%dir %{_sysconfdir}/dejagnu
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
%{_bindir}/dejagnu
%{_bindir}/runtest
Accepting request 901733 from home:Andreas_Schwab:Factory - Update to dejagnu 1.6.3 * The internal proc 'is_remote' has been renamed to 'isremote' for consistency with the other similar procs (eg, istarget) * runtest now accepts --local_init and --global_init options to override the default of reading "site.exp" * runtest now responds consistently to all Tcl errors and generates an UNRESOLVED result when a test script aborts * runtest now collects Tcl errors encountered during a test run and prints the collected errors a second time at the end of the test run after the summary * A utility procedure relative_filename has been added * The utility procedure 'grep' now accepts a '-n' option that includes line numbers in the output, consistent with GNU grep * The target_compile procedure now accepts a "linker=" option that overrides the compiler selection when producing an executable * The internal default_target_compile procedure now supports compiling sources in Go (using GCC Go) and Rust * The host_execute procedure no longer insists that the executable be in the current directory if the file exists under the given name * The host_execute procedure now reads input to end-of-file * The match patterns in the host_execute procedure have been revised to fix timing issues causing test names to be truncated * The host_execute procedure is no longer sensitive to the value of the "text" global variable * A new multiplex procedure "testsuite" is added for commands retrieving or providing information about the current testsuite * A command "testsuite file" is added to replace the use of the "*dir" variables in test scripts * A command "testsuite can call" is added to report the availability of multiplexed API calls OBS-URL: https://build.opensuse.org/request/show/901733 OBS-URL: https://build.opensuse.org/package/show/devel:tools/dejagnu?expand=0&rev=32
2021-06-24 14:22:21 +02:00
%{_mandir}/man1/dejagnu.1%{ext_man}
%{_mandir}/man1/dejagnu-help.1%{ext_man}
%{_mandir}/man1/dejagnu-report-card.1%{ext_man}
%{_mandir}/man1/runtest.1%{ext_man}
%{_infodir}/dejagnu.info%{ext_info}
%{_includedir}/*
%config(noreplace) %{_sysconfdir}/dejagnu/site.exp
%{_datadir}/dejagnu/*
%changelog