From 4f02aa74c51a43de890dd68555b8f69721d147d2 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 24 May 2022 13:35:33 -0700 Subject: [PATCH] Add test case for rhbz#2083296 --- tests/characters-in-flags/main.fmf | 5 +++++ tests/characters-in-flags/runtest.sh | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/characters-in-flags/main.fmf create mode 100755 tests/characters-in-flags/runtest.sh diff --git a/tests/characters-in-flags/main.fmf b/tests/characters-in-flags/main.fmf new file mode 100644 index 0000000..5654cd3 --- /dev/null +++ b/tests/characters-in-flags/main.fmf @@ -0,0 +1,5 @@ +summary: Test to ensure there aren't extraneous characters in build flags +require: + - redhat-rpm-config +test: ./runtest.sh + diff --git a/tests/characters-in-flags/runtest.sh b/tests/characters-in-flags/runtest.sh new file mode 100755 index 0000000..0140913 --- /dev/null +++ b/tests/characters-in-flags/runtest.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -ex + +for f in %{build_cflags} %{build_cxxflags} %{build_fflags} %{build_ldflags}; do + rpm --eval "$f" | grep -vP '\t' +done