[PATCH] D22548: [test-suite] Supress warnings of missing reference output files using a default reference.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 16:08:35 PDT 2016
asbirlea created this revision.
asbirlea added reviewers: llvm-commits, MatzeB, mehdi_amini.
For the Bitcode tests, there is a large number of tests that do not have or need a reference file, leading to a warning for each test.
Yet, it's still cleaner to use the same methods in SingleMulti.cmake which trigger the warning.
Attempting to bypass this by adding a default reference which can apply to a large number of tests.
Alternative suggestions on addressing this are welcome.
https://reviews.llvm.org/D22548
Files:
Bitcode/Regression/vector_widen/default.reference_output
Bitcode/simd_ops/default.reference_output
cmake/modules/SingleMultiSource.cmake
Index: cmake/modules/SingleMultiSource.cmake
===================================================================
--- cmake/modules/SingleMultiSource.cmake
+++ cmake/modules/SingleMultiSource.cmake
@@ -98,6 +98,8 @@
set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian)
elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output)
set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output)
+ elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/default.reference_output)
+ set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/default.reference_output)
else()
message("-- No reference output found for test ${name}")
endif()
Index: Bitcode/simd_ops/default.reference_output
===================================================================
--- /dev/null
+++ Bitcode/simd_ops/default.reference_output
@@ -0,0 +1 @@
+exit 0
Index: Bitcode/Regression/vector_widen/default.reference_output
===================================================================
--- /dev/null
+++ Bitcode/Regression/vector_widen/default.reference_output
@@ -0,0 +1 @@
+exit 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22548.64592.patch
Type: text/x-patch
Size: 1141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/aa50a372/attachment.bin>
More information about the llvm-commits
mailing list