summaryrefslogtreecommitdiffstats
path: root/openmp/testsuite/adding_xfails.py
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2015-04-29 14:36:38 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2015-04-29 14:36:38 +0000
commita951e210872adb18dbca7eb8b0832bd3a6fde416 (patch)
tree5971fd073129498a25703fc149a08c4c00164529 /openmp/testsuite/adding_xfails.py
parentdfddebcfb9fa9d756518015fd31cddcc9eb1459e (diff)
downloadbcm5719-llvm-a951e210872adb18dbca7eb8b0832bd3a6fde416.tar.gz
bcm5719-llvm-a951e210872adb18dbca7eb8b0832bd3a6fde416.zip
UH OpenMP testsuite update
llvm-svn: 236105
Diffstat (limited to 'openmp/testsuite/adding_xfails.py')
-rwxr-xr-xopenmp/testsuite/adding_xfails.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/openmp/testsuite/adding_xfails.py b/openmp/testsuite/adding_xfails.py
new file mode 100755
index 00000000000..2ad48d93440
--- /dev/null
+++ b/openmp/testsuite/adding_xfails.py
@@ -0,0 +1,32 @@
+
+import os
+import commands
+
+perl = "/usr/bin/perl"
+LLVM = "./LLVM-IR/"
+temp_filename = "temp"
+XFAIL_text = "; XFAIL: *\n"
+
+
+arch_file_list = dict()
+arch_file_list['lin_32e'] = ['test_omp_task_final.ll', 'test_omp_task_untied.ll']
+
+
+arch_script = "../runtime/tools/check-openmp-test.pl"
+arch_cmd = perl + " " + arch_script
+arch = commands.getoutput(arch_cmd)
+arch = arch[:len(arch)-1]
+
+print "Adding XFAILS ..."
+
+for f in arch_file_list[arch]:
+ filename = LLVM + arch + "/" + f
+ lines = open(filename).readlines()
+ lines.insert(1, XFAIL_text)
+ f2 = open(temp_filename, "w")
+ for l in lines:
+ f2.write(l)
+ f2.close()
+
+ os.system("mv " + temp_filename + " " + filename)
+
OpenPOWER on IntegriCloud