Compare commits

..

39 commits

Author SHA1 Message Date
Fedora Release Engineering
ab629fee23 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 18:33:00 +00:00
Fedora Release Engineering
71a9656a9b Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 14:16:26 +00:00
Fedora Release Engineering
69e0306bae Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 19:46:33 +00:00
Miroslav Suchý
d39ddb2be4 convert GPL+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-06-17 12:25:01 +02:00
Software Management Team
1a42b3cd4b Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:46 +02:00
Martin Cermak
b30a90dd8d NVR bump and rebuild for CI gating changes 2024-03-10 07:40:48 +01:00
Fedora Release Engineering
ee72311468 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 07:47:00 +00:00
Fedora Release Engineering
df3c6c2a43 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 15:57:05 +00:00
Fedora Release Engineering
beb625bbd7 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 16:09:53 +00:00
Martin Cermak
57937ea6b9 NVR bump and rebuild for CI gating changes 2023-03-29 17:26:43 +02:00
Martin Cermak
ea54fd8553 NVR bump and rebuild for CI gating changes 2023-03-29 16:52:57 +02:00
Fedora Release Engineering
69e7633a95 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 00:18:41 +00:00
Fedora Release Engineering
9098e6f1d8 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 23:22:55 +00:00
Fedora Release Engineering
9b3f3e11c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 23:38:23 +00:00
Fedora Release Engineering
9f76e605ad - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 19:51:13 +00:00
Fedora Release Engineering
6b660b27f2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 14:52:58 +00:00
Fedora Release Engineering
ec7b0f1465 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 02:21:37 +00:00
Martin Cermak
5d1494405b NVR bump and rebuild for CI gating changes 2020-11-26 15:10:39 +01:00
Martin Cermak
2619a24085 NVR bump and rebuild for CI gating changes 2020-11-26 14:55:03 +01:00
Martin Cermak
d227b1f6ee NVR bump and rebuild for CI gating changes 2020-11-26 13:56:27 +01:00
Martin Cermak
90ae35229f Update the PassingTestCaseRule for Fedora gating. 2020-11-26 13:48:17 +01:00
Martin Cermak
21f40254a8 Fix tests location 2020-11-26 13:45:23 +01:00
Martin Cermak
96589a89f6 Convert the testcase to FMF 2020-11-26 13:22:58 +01:00
Martin Cermak
92e6374c37 tests first commit 2020-11-26 13:16:55 +01:00
Martin Cermak
f568f380a7 Set up a plan 2020-11-26 12:56:19 +01:00
Martin Cermak
d736a4d5e7 Fix changelog date 2020-11-25 12:00:43 +01:00
Martin Cermak
022308ce22 NVR bump and rebuild for CI gating changes 2020-11-25 11:57:00 +01:00
Fedora Release Engineering
db34591db5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 14:21:57 +00:00
Fedora Release Engineering
32fceecc90 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 14:33:01 +00:00
Fedora Release Engineering
48e87677e8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 20:43:37 +00:00
Fedora Release Engineering
dca88cca8b - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 16:01:43 +00:00
Igor Gnatenko
a0bdc61300 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:23:58 +01:00
Fedora Release Engineering
06ce575449 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 22:04:42 +00:00
Jason Tibbitts
f29ffc4799 Remove needless use of %defattr 2018-07-10 00:32:03 -05:00
Fedora Release Engineering
b8b3133f32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 05:27:05 +00:00
Martin Cermak
0a5b775fec 1.4.5-3: Update README 2017-12-08 15:25:33 +01:00
Martin Cermak
ff11805c6b 1.4.5-2: Provide convenience symlinks per bz1402003#c10 2017-12-08 13:58:45 +01:00
Martin Cermak
07f59f8ba0 Upload new sources: 1.4.5.tar.gz. 2017-12-06 13:08:07 +01:00
Martin Cermak
fd9a8622df Rebase to colorgcc-1.4.5 per BZ#1402003. 2017-12-06 12:56:56 +01:00
9 changed files with 220 additions and 45 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

37
README
View file

@ -1,37 +0,0 @@
The colorgcc is a 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.
Homepage:
http://schlueters.de/colorgcc.html
Usage:
Call the compiler name with the 'color-' prefix, eg:
color-gcc
color-g++
color-cc
color-c++
That's it. Alternatively you may want to create following handy aliases:
alias gcc='color-gcc'
alias g++='color-g++'
alias cc='color-cc'
alias c++='color-c++'
The default settings can be overridden with ~/.colorgccrc. See the
comments in the packaged sample config file for more information.
Note:
colorgcc will only emit color codes if:
(1) Its STDOUT is a tty and
(2) the value of $TERM is not listed in the "nocolor" option.
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.

View file

@ -1,9 +1,8 @@
Summary: Script to colorize the compiler output
Name: colorgcc
Version: 1.4.5
Release: 1%{?dist}
License: GPL+
Group: Development/Tools
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
@ -19,8 +18,8 @@ CCACHE, G++, GCC so error messages can be found within longer compiler outputs.
%prep
%setup
mv ./colorgccrc.txt ./colorgccrc.sample
%patch0 -p1
%patch1 -p1
%patch -P0 -p1
%patch -P1 -p1
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
@ -42,7 +41,6 @@ for n in cc gcc g++ c++ ; do
done
%files
%defattr(-,root,root,-)
%{_bindir}/color-gcc
%{_bindir}/color-g++
%{_bindir}/color-cc
@ -61,11 +59,76 @@ done
%doc README colorgccrc.sample
%changelog
* Fri Dec 8 2017 Martin Cermak <mcermak@redhat.com> 1.4.5-1
- Rebase to 1.4.5 per bz1402003
* 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

19
gating.yaml Normal file
View 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
View file

@ -0,0 +1,6 @@
summary: CI Gating Plan
discover:
how: fmf
directory: tests
execute:
how: beakerlib

View 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)

View file

@ -0,0 +1,3 @@
PURPOSE of /tools/colorgcc/Sanity/basic
Description: basic smoke test
Author: Martin Cermak <mcermak@redhat.com>

View 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
View 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