public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Wed,  6 May 2015 07:04:53 +0000 (UTC)	[thread overview]
Message-ID: <20150506070453.EBF929DB@oystercatcher.gentoo.org> (raw)

vapier      15/05/06 07:04:53

  Modified:             flag-o-matic.sh
  Log:
  make flag testing work for clang too crbug.com/474652

Revision  Changes    Path
1.8                  eclass/tests/flag-o-matic.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/flag-o-matic.sh?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/flag-o-matic.sh?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/tests/flag-o-matic.sh?r1=1.7&r2=1.8

Index: flag-o-matic.sh
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/tests/flag-o-matic.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- flag-o-matic.sh	2 Nov 2013 03:17:58 -0000	1.7
+++ flag-o-matic.sh	6 May 2015 07:04:53 -0000	1.8
@@ -116,4 +116,31 @@
 [[ ${LDFLAGS} == '-O1 --as-needed -z now' ]]
 ftend
 
+tbegin "test-flags-CC (valid flags)"
+out=$(test-flags-CC -O3)
+[[ $? -eq 0 && ${out} == "-O3" ]]
+ftend
+
+tbegin "test-flags-CC (invalid flags)"
+out=$(test-flags-CC -finvalid-flag)
+[[ $? -ne 0 && -z ${out} ]]
+ftend
+
+if type -P clang >/dev/null ; then
+tbegin "test-flags-CC (valid flags w/clang)"
+out=$(CC=clang test-flags-CC -O3)
+[[ $? -eq 0 && ${out} == "-O3" ]]
+ftend
+
+tbegin "test-flags-CC (invalid flags w/clang)"
+out=$(CC=clang test-flags-CC -finvalid-flag)
+[[ $? -ne 0 && -z ${out} ]]
+ftend
+
+tbegin "test-flags-CC (gcc-valid but clang-invalid flags)"
+out=$(CC=clang test-flags-CC -finline-limit=1200)
+[[ $? -ne 0 && -z ${out} ]]
+ftend
+fi
+
 texit





             reply	other threads:[~2015-05-06  7:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06  7:04 Mike Frysinger (vapier) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-02  3:17 [gentoo-commits] gentoo-x86 commit in eclass/tests: flag-o-matic.sh 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-14  9:11 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=20150506070453.EBF929DB@oystercatcher.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