[llvm-commits] [zorg] r114584 - /zorg/trunk/lnt/lnt/tests/nt.py
Daniel Dunbar
daniel at zuster.org
Wed Sep 22 14:10:21 PDT 2010
Author: ddunbar
Date: Wed Sep 22 16:10:21 2010
New Revision: 114584
URL: http://llvm.org/viewvc/llvm-project?rev=114584&view=rev
Log:
LNT/nt: Set additional Makefile variables for use in conditionalizing nightly test runs.
- Set CC_UNDER_TEST_IS_LLVM_GCC and CC_UNDER_TEST_IS_GCC, a la CC_UNDER_TEST_IS_CLANG.
- Set CC_UNDER_TEST_TARGET_IS_FOO where FOO is derived from the target triple. Useful for determining ARMv7, for example, given that we mangle it into the triple in a most horrible fashion. And now I am introducing a dependency on that horribleness, have I no shame?!?
Modified:
zorg/trunk/lnt/lnt/tests/nt.py
Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=114584&r1=114583&r2=114584&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Wed Sep 22 16:10:21 2010
@@ -143,6 +143,16 @@
# Set CC_UNDER_TEST_IS_CLANG when appropriate.
if cc_info.get('cc_name') in ('apple_clang', 'clang'):
make_variables['CC_UNDER_TEST_IS_CLANG'] = '1'
+ elif cc_info.get('cc_name') in ('llvm-gcc',):
+ make_variables['CC_UNDER_TEST_IS_LLVM_GCC'] = '1'
+ elif cc_info.get('cc_name') in ('gcc',):
+ make_variables['CC_UNDER_TEST_IS_GCC'] = '1'
+
+ # Convert the target arch into a make variable, to allow more target based
+ # specialization (e.g., CC_UNDER_TEST_TARGET_IS_ARMV7).
+ if '-' in cc_info.get('cc_target', ''):
+ arch_name = cc_info.get('cc_target').split('-',1)[0]
+ make_variables['CC_UNDER_TEST_TARGET_IS_' + arch_name.upper()] = '1'
# Set LLVM_RELEASE_IS_PLUS_ASSERTS when appropriate, to allow testing older
# LLVM source trees.
More information about the llvm-commits
mailing list