[llvm-commits] [hlvm] r38324 - in /hlvm/trunk: build/hlvm.py test/SConscript

Reid Spencer reid at x10sys.com
Sat Jul 7 17:02:21 PDT 2007


Author: reid
Date: Sat Jul  7 19:02:21 2007
New Revision: 38324

URL: http://llvm.org/viewvc/llvm-project?rev=38324&view=rev
Log:
Support selective test suite running with the suites="list" build option.

Modified:
    hlvm/trunk/build/hlvm.py
    hlvm/trunk/test/SConscript

Modified: hlvm/trunk/build/hlvm.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/build/hlvm.py?rev=38324&r1=38323&r2=38324&view=diff

==============================================================================
--- hlvm/trunk/build/hlvm.py (original)
+++ hlvm/trunk/build/hlvm.py Sat Jul  7 19:02:21 2007
@@ -140,8 +140,9 @@
     BoolOption('small','Generate smaller code rather than faster',0),
     BoolOption('strip','Strip executables of their symbols',0),
   )
-  opts.Add('prefix','Specify where to install HLVM','/usr/local')
   opts.Add('confpath','Specify additional configuration dirs to search','')
+  opts.Add('prefix','Specify where to install HLVM','/usr/local')
+  opts.Add('suites','Specify a list of test suites to run')
   opts.Add('with_llvm','Specify where LLVM is located','/usr/local')
   opts.Add('with_apr','Specify where apr is located','/usr/local/apr')
   opts.Add('with_apru','Specify where apr-utils is located','/usr/local/apr')

Modified: hlvm/trunk/test/SConscript
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/test/SConscript?rev=38324&r1=38323&r2=38324&view=diff

==============================================================================
--- hlvm/trunk/test/SConscript (original)
+++ hlvm/trunk/test/SConscript Sat Jul  7 19:02:21 2007
@@ -24,4 +24,9 @@
 Import('env')
 if 'check' in COMMAND_LINE_TARGETS:
   from build import check
-  check.Check(env,['xml2xml','invalid','return0'])
+  if env['suites'] == 'all':
+    check.Check(env,['xml2xml','invalid','return0'])
+  else:
+    suites = env['suites'].split(' ')
+    print "Suites To Run=",suites
+    check.Check(env,suites)





More information about the llvm-commits mailing list