diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-29 14:36:38 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-29 14:36:38 +0000 |
commit | a951e210872adb18dbca7eb8b0832bd3a6fde416 (patch) | |
tree | 5971fd073129498a25703fc149a08c4c00164529 /openmp/testsuite/adding_xfails.py | |
parent | dfddebcfb9fa9d756518015fd31cddcc9eb1459e (diff) | |
download | bcm5719-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-x | openmp/testsuite/adding_xfails.py | 32 |
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) + |