Compare commits
58 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab629fee23 | ||
|
|
71a9656a9b | ||
|
|
69e0306bae | ||
|
|
d39ddb2be4 | ||
|
|
1a42b3cd4b | ||
|
|
b30a90dd8d | ||
|
|
ee72311468 | ||
|
|
df3c6c2a43 | ||
|
|
beb625bbd7 | ||
|
|
57937ea6b9 | ||
|
|
ea54fd8553 | ||
|
|
69e7633a95 | ||
|
|
9098e6f1d8 | ||
|
|
9b3f3e11c7 | ||
|
|
9f76e605ad | ||
|
|
6b660b27f2 | ||
|
|
ec7b0f1465 | ||
|
|
5d1494405b | ||
|
|
2619a24085 | ||
|
|
d227b1f6ee | ||
|
|
90ae35229f | ||
|
|
21f40254a8 | ||
|
|
96589a89f6 | ||
|
|
92e6374c37 | ||
|
|
f568f380a7 | ||
|
|
d736a4d5e7 | ||
|
|
022308ce22 | ||
|
|
db34591db5 | ||
|
|
32fceecc90 | ||
|
|
48e87677e8 | ||
|
|
dca88cca8b | ||
|
|
a0bdc61300 | ||
|
|
06ce575449 | ||
|
|
f29ffc4799 | ||
|
|
b8b3133f32 | ||
|
|
0a5b775fec | ||
|
|
ff11805c6b | ||
|
|
07f59f8ba0 | ||
|
|
fd9a8622df | ||
|
|
4b7c39351f | ||
|
|
5cfaba7221 | ||
|
|
4ccaeec942 | ||
|
|
9d783f37d4 | ||
|
|
c0663350d0 | ||
|
|
9a6d65ac9a | ||
|
|
08e2f4b3e0 | ||
|
|
6c3b1c0502 | ||
|
|
254c67d8f5 | ||
|
|
b0cbc68e71 | ||
|
|
7d585a31d7 | ||
|
|
9ac06cb9f8 | ||
|
|
4a61beeae8 | ||
|
|
3329e313d1 | ||
|
|
d425801a19 | ||
|
|
7dac90b5fd | ||
|
|
e1a181b004 | ||
|
|
e695bfc178 | ||
|
|
0fab13a1a9 |
11 changed files with 394 additions and 0 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
1
|
||||||
23
colorgcc-invocation.patch
Normal file
23
colorgcc-invocation.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
diff --git a/colorgcc.pl b/colorgcc.pl
|
||||||
|
index 92bb58c..ceb31de 100755
|
||||||
|
--- a/colorgcc.pl
|
||||||
|
+++ b/colorgcc.pl
|
||||||
|
@@ -149,6 +149,18 @@ my($unfinishedQuote, $previousColor);
|
||||||
|
|
||||||
|
sub initDefaults
|
||||||
|
{
|
||||||
|
+ $compilerPaths{"color-gcc"} = "gcc";
|
||||||
|
+ $compilerPaths{"color-g++"} = "g++";
|
||||||
|
+ $compilerPaths{"color-cc"} = "cc";
|
||||||
|
+ $compilerPaths{"color-c++"} = "c++";
|
||||||
|
+ $compilerPaths{"color-ccache"} = "ccache";
|
||||||
|
+
|
||||||
|
+ $compilerPaths{"colorgcc"} = "gcc";
|
||||||
|
+ $compilerPaths{"colorg++"} = "g++";
|
||||||
|
+ $compilerPaths{"colorcc"} = "cc";
|
||||||
|
+ $compilerPaths{"colorc++"} = "c++";
|
||||||
|
+ $compilerPaths{"colorccache"} = "ccache";
|
||||||
|
+
|
||||||
|
$options{"chainedPath"} = "0";
|
||||||
|
$nocolor{"dumb"} = "true";
|
||||||
|
|
||||||
190
colorgcc.spec
Normal file
190
colorgcc.spec
Normal file
|
|
@ -0,0 +1,190 @@
|
||||||
|
Summary: Script to colorize the compiler output
|
||||||
|
Name: colorgcc
|
||||||
|
Version: 1.4.5
|
||||||
|
Release: 28%{?dist}
|
||||||
|
License: GPL-1.0-or-later
|
||||||
|
Url: http://schlueters.de/colorgcc.html
|
||||||
|
Source0: https://github.com/colorgcc/colorgcc/archive/%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
Patch0: colorgcc-invocation.patch
|
||||||
|
Patch1: readme-fedora.patch
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
Requires: perl-interpreter
|
||||||
|
|
||||||
|
%description
|
||||||
|
Perl script written by Jamie Moyers to colorize the terminal output of C++, CC,
|
||||||
|
CCACHE, G++, GCC so error messages can be found within longer compiler outputs.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup
|
||||||
|
mv ./colorgccrc.txt ./colorgccrc.sample
|
||||||
|
%patch -P0 -p1
|
||||||
|
%patch -P1 -p1
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
||||||
|
install -p -m 755 colorgcc.pl $RPM_BUILD_ROOT/%{_bindir}/color-gcc
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/color-g++
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/color-cc
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/color-c++
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/color-ccache
|
||||||
|
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/colorgcc
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/colorg++
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/colorcc
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/colorc++
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT/%{_bindir}/colorccache
|
||||||
|
|
||||||
|
install -dm 755 $RPM_BUILD_ROOT%{_libdir}/colorgcc
|
||||||
|
for n in cc gcc g++ c++ ; do
|
||||||
|
ln -s %{_bindir}/color-gcc $RPM_BUILD_ROOT%{_libdir}/colorgcc/$n
|
||||||
|
done
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/color-gcc
|
||||||
|
%{_bindir}/color-g++
|
||||||
|
%{_bindir}/color-cc
|
||||||
|
%{_bindir}/color-c++
|
||||||
|
%{_bindir}/color-ccache
|
||||||
|
|
||||||
|
%{_bindir}/colorgcc
|
||||||
|
%{_bindir}/colorg++
|
||||||
|
%{_bindir}/colorcc
|
||||||
|
%{_bindir}/colorc++
|
||||||
|
%{_bindir}/colorccache
|
||||||
|
|
||||||
|
%dir %{_libdir}/colorgcc
|
||||||
|
%{_libdir}/colorgcc/*
|
||||||
|
|
||||||
|
%doc README colorgccrc.sample
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-28
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-27
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-26
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 17 2024 Miroslav Suchý <msuchy@redhat.com> - 1.4.5-25
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Sun Mar 10 2024 Martin Cermak <mcermak@redhat.com> - 1.4.5-24
|
||||||
|
- NVR bump and rebuild for CI gating changes
|
||||||
|
|
||||||
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-23
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-22
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-21
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Mar 29 2023 Martin Cermak <mcermak@redhat.com> - 1.4.5-20
|
||||||
|
- NVR bump and rebuild for CI gating changes
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Nov 26 2020 Martin Cermak <mcermak@redhat.com> 1.4.5-13
|
||||||
|
- NVR bump and rebuild for CI gating changes
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Dec 8 2017 Martin Cermak <mcermak@redhat.com> 1.4.5-3
|
||||||
|
- Provide convenience symlinks per bz1402003#c10
|
||||||
|
- Update README
|
||||||
|
|
||||||
|
* Wed Dec 6 2017 Martin Cermak <mcermak@redhat.com> 1.4.5-1
|
||||||
|
- Rebase to 1.4.5 per bz1402003
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 13 2017 Petr Pisar <ppisar@redhat.com> - 1.3.2-16
|
||||||
|
- perl dependency renamed to perl-interpreter
|
||||||
|
<https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Apr 11 2014 Martin Cermak <mcermak@redhat.com> 1.3.2-11
|
||||||
|
- Allow using "color" prefix as well as "color-" prefix (bz1078180)
|
||||||
|
|
||||||
|
* Fri Jan 03 2014 Martin Cermak <mcermak@redhat.com> 1.3.2-10
|
||||||
|
- Updated README
|
||||||
|
|
||||||
|
* Fri Jan 03 2014 Martin Cermak <mcermak@redhat.com> 1.3.2-9
|
||||||
|
- Renamed and updated config sample
|
||||||
|
|
||||||
|
* Thu Jan 02 2014 Martin Cermak <mcermak@redhat.com> 1.3.2-8
|
||||||
|
- Added README and sample config file
|
||||||
|
|
||||||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.3.2-6
|
||||||
|
- Perl 5.18 rebuild
|
||||||
|
|
||||||
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed May 4 2011 Martin Cermak <mcermak@redhat.com> 1.3.2-2
|
||||||
|
- Full URL for Source0 used
|
||||||
|
- License tag updated
|
||||||
|
- BuildRoot tag dropped
|
||||||
|
- Cleaned up the prep phase code
|
||||||
|
- Summary updated
|
||||||
|
- Compilers in the description updated and sorted alphabetically
|
||||||
|
- Absolute paths pointing to compiler binaries removed
|
||||||
|
- Resolves bz700833
|
||||||
|
|
||||||
|
* Fri Apr 29 2011 Martin Cermak <mcermak@redhat.com> 1.3.2-1
|
||||||
|
- Packaged for Fedora
|
||||||
|
|
||||||
19
gating.yaml
Normal file
19
gating.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_stable
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-8
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||||
6
plans/ci.fmf
Normal file
6
plans/ci.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
summary: CI Gating Plan
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
directory: tests
|
||||||
|
execute:
|
||||||
|
how: beakerlib
|
||||||
31
readme-fedora.patch
Normal file
31
readme-fedora.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
diff --git a/README b/README
|
||||||
|
index 2f38386..b5b978f 100644
|
||||||
|
--- a/README
|
||||||
|
+++ b/README
|
||||||
|
@@ -48,6 +48,26 @@ If colorgcc colorizes the output, the compiler's STDERR will be
|
||||||
|
combined with STDOUT. Otherwise, colorgcc just passes the output from
|
||||||
|
the compiler through without modification.
|
||||||
|
|
||||||
|
+Fedora note:
|
||||||
|
+
|
||||||
|
+Here is how to use colorgcc along with ccache on a Fedora system under
|
||||||
|
+a non-root user. Install both colorgcc and ccache. The ccache
|
||||||
|
+modifies user $PATH via it's /etc/profile.d/ccache* scripts.
|
||||||
|
+Now do the following:
|
||||||
|
+
|
||||||
|
+ $ export PATH="/usr/lib/colorgcc:$PATH"
|
||||||
|
+ $ export CCACHE_PATH="/usr/bin"
|
||||||
|
+
|
||||||
|
+Now add entries like the following to your ~/.colorgccrc file:
|
||||||
|
+
|
||||||
|
+ g++: /usr/lib64/ccache/g++
|
||||||
|
+ gcc: /usr/lib64/ccache/gcc
|
||||||
|
+ c++: /usr/lib64/ccache/g++
|
||||||
|
+ cc: /usr/lib64/ccache/cc
|
||||||
|
+
|
||||||
|
+You should be all set.
|
||||||
|
+
|
||||||
|
+
|
||||||
|
Author: Jamie Moyers <jmoyers@geeks.com>
|
||||||
|
Started: April 20, 1999
|
||||||
|
Licence: GNU Public License
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
SHA512 (1.4.5.tar.gz) = 4125ada9b65b6387c2c259e2347236b3b18f7cdbf06ae0bb0212474a11354be6d463fbc4d239c2eb666c8246fc20277e06c8272fdee6dd4f60caa66164bcc1cf
|
||||||
63
tests/Sanity/smoke/Makefile
Normal file
63
tests/Sanity/smoke/Makefile
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of /tools/colorgcc/Sanity/basic
|
||||||
|
# Description: basic smoke test
|
||||||
|
# Author: Martin Cermak <mcermak@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 Red Hat, 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 2 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/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=/tools/colorgcc/Sanity/basic
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
|
||||||
|
BUILT_FILES=
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
test -x runtest.sh || chmod a+x runtest.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ $(BUILT_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@echo "Owner: Martin Cermak <mcermak@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: basic smoke test" >> $(METADATA)
|
||||||
|
@echo "Type: Sanity" >> $(METADATA)
|
||||||
|
@echo "TestTime: 48h" >> $(METADATA)
|
||||||
|
@echo "RunFor: colorgcc" >> $(METADATA)
|
||||||
|
@echo "Requires: colorgcc gcc" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2+" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6 -RHEL7" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
||||||
3
tests/Sanity/smoke/PURPOSE
Normal file
3
tests/Sanity/smoke/PURPOSE
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
PURPOSE of /tools/colorgcc/Sanity/basic
|
||||||
|
Description: basic smoke test
|
||||||
|
Author: Martin Cermak <mcermak@redhat.com>
|
||||||
14
tests/Sanity/smoke/main.fmf
Normal file
14
tests/Sanity/smoke/main.fmf
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
summary: basic smoke test
|
||||||
|
description: ''
|
||||||
|
contact:
|
||||||
|
- Martin Cermak <mcermak@redhat.com>
|
||||||
|
component:
|
||||||
|
- colorgcc
|
||||||
|
test: ./runtest.sh
|
||||||
|
framework: beakerlib
|
||||||
|
recommend:
|
||||||
|
- colorgcc
|
||||||
|
- gcc
|
||||||
|
duration: 48h
|
||||||
|
extra-summary: /tools/colorgcc/Sanity/basic
|
||||||
|
extra-task: /tools/colorgcc/Sanity/basic
|
||||||
43
tests/Sanity/smoke/runtest.sh
Executable file
43
tests/Sanity/smoke/runtest.sh
Executable file
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of /tools/colorgcc/Sanity/basic
|
||||||
|
# Description: basic smoke test
|
||||||
|
# Author: Martin Cermak <mcermak@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 Red Hat, 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 2 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/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include Beaker environment
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="colorgcc"
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlAssertRpm $PACKAGE
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun "echo -e 'int main() {\nreturn 0;\n}' | color-gcc -xc -o /dev/null -"
|
||||||
|
rlRun "echo -e 'int main() {\nreturn 0\n}' | color-gcc -xc -o /dev/null - |& fgrep '<stdin>:2:9: error'"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
||||||
Loading…
Add table
Add a link
Reference in a new issue