From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass/tests: flag-o-matic.sh
Date: Sat, 14 Jan 2012 09:11:09 +0000 (UTC) [thread overview]
Message-ID: <20120114091109.09BDF2004B@flycatcher.gentoo.org> (raw)
vapier 12/01/14 09:11:09
Modified: flag-o-matic.sh
Log:
test more flag funcs
Revision Changes Path
1.3 eclass/tests/flag-o-matic.sh
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/flag-o-matic.sh?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/flag-o-matic.sh?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/flag-o-matic.sh?r1=1.2&r2=1.3
Index: flag-o-matic.sh
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/tests/flag-o-matic.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- flag-o-matic.sh 13 Jan 2012 22:40:50 -0000 1.2
+++ flag-o-matic.sh 14 Jan 2012 09:11:08 -0000 1.3
@@ -27,7 +27,7 @@
[[ ${exp} -eq $? ]]
ftend
done <<<"
- 1 -l
+ 1 -L
0 -a
0 -x
"
@@ -77,4 +77,22 @@
)
ftend
+tbegin "strip-flags basic"
+CXXFLAGS+=" -O999 "
+strip-flags
+[[ -z ${CFLAGS}${LDFLAGS}${CPPFLAGS} && ${CXXFLAGS} == "-O2" ]]
+ftend
+
+tbegin "replace-flags basic"
+CFLAGS="-O0 -foo"
+replace-flags -O0 -O1
+[[ ${CFLAGS} == "-O1 -foo" ]]
+ftend
+
+tbegin "replace-flags glob"
+CXXFLAGS="-O0 -mcpu=bad -cow"
+replace-flags '-mcpu=*' -mcpu=good
+[[ ${CXXFLAGS} == "-O0 -mcpu=good -cow" ]]
+ftend
+
texit
next reply other threads:[~2012-01-14 9:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 9:11 Mike Frysinger (vapier) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-06 7:04 [gentoo-commits] gentoo-x86 commit in eclass/tests: flag-o-matic.sh Mike Frysinger (vapier)
2013-11-02 3:17 Ryan Hill (dirtyepic)
2012-11-11 20:00 Mike Frysinger (vapier)
2012-11-11 7:03 Mike Frysinger (vapier)
2012-01-16 20:04 Mike Frysinger (vapier)
2012-01-13 22:40 Mike Frysinger (vapier)
2011-12-15 5:23 Mike Frysinger (vapier)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120114091109.09BDF2004B@flycatcher.gentoo.org \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox