Add license envirable for testing Intel compilers
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 20 Oct 2017 19:45:43 +0000 (19:45 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 20 Oct 2017 19:45:43 +0000 (19:45 +0000)
Patch by Simon Convent

Differential Revision: https://reviews.llvm.org/D38881

llvm-svn: 316232

openmp/runtime/test/lit.cfg

index 328e32e..22ad95f 100644 (file)
@@ -92,6 +92,10 @@ if config.has_ompt:
     # for callback.h
     config.test_cflags += " -I " + config.test_source_root + "/ompt"
 
+# to run with icc INTEL_LICENSE_FILE must be set
+if 'INTEL_LICENSE_FILE' in os.environ:
+    config.environment['INTEL_LICENSE_FILE'] = os.environ['INTEL_LICENSE_FILE']
+
 # substitutions
 if config.has_ompt:
     config.substitutions.append(("FileCheck", config.test_filecheck))