aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-30 20:20:36 -0500
committerMike Frysinger <vapier@gentoo.org>2012-12-30 20:24:07 -0500
commit52b07404535c1f49942442c891f98fd3f3810daa (patch)
tree244f26da9904cdf3a3af16fae4743c43fd561bc7 /tests
parenttests: check for trailing whitespace (diff)
downloadgcc-config-52b07404535c1f49942442c891f98fd3f3810daa.tar.gz
gcc-config-52b07404535c1f49942442c891f98fd3f3810daa.tar.bz2
gcc-config-52b07404535c1f49942442c891f98fd3f3810daa.zip
gcc-config: use ${SED} everywhere
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/source/test.sed3
-rw-r--r--tests/source/test.sed.exp0
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/source/test.sed b/tests/source/test.sed
new file mode 100644
index 0000000..4f439bc
--- /dev/null
+++ b/tests/source/test.sed
@@ -0,0 +1,3 @@
+#!/bin/bash
+# Make sure gcc-config does not run `sed` directly -- use ${SED}.
+grep '\<sed\>' "${GCC_CONFIG}" | grep -v '^: .*SED.*type -P sed' || :
diff --git a/tests/source/test.sed.exp b/tests/source/test.sed.exp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/source/test.sed.exp