[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:58:11 PDT 2016
asbirlea updated this revision to Diff 64611.
asbirlea added a comment.
Update patch to set (and check) a variable, for tests with no reference required.
https://reviews.llvm.org/D22548
Files:
Bitcode/Regression/CMakeLists.txt
Bitcode/simd_ops/CMakeLists.txt
cmake/modules/SingleMultiSource.cmake
Index: cmake/modules/SingleMultiSource.cmake
===================================================================
--- cmake/modules/SingleMultiSource.cmake
+++ cmake/modules/SingleMultiSource.cmake
@@ -90,16 +90,18 @@
endif()
# Pick the best reference output based on "programname.reference_output".
- if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian.${KEY})
- set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian.${KEY})
- elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${KEY})
- set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${KEY})
- elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian)
- 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)
- else()
- message("-- No reference output found for test ${name}")
+ if(NOT DEFINED NO_REFERENCE_OUTPUT)
+ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian.${KEY})
+ set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian.${KEY})
+ elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${KEY})
+ set(REFERENCE_OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${KEY})
+ elseif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.reference_output.${ENDIAN}-endian)
+ 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)
+ else()
+ message("-- No reference output found for test ${name}")
+ endif()
endif()
set(DIFFPROG ${CMAKE_BINARY_DIR}/tools/fpcmp)
Index: Bitcode/simd_ops/CMakeLists.txt
===================================================================
--- Bitcode/simd_ops/CMakeLists.txt
+++ Bitcode/simd_ops/CMakeLists.txt
@@ -1,3 +1,4 @@
+set(NO_REFERENCE_OUTPUT true)
file(GLOB uosources ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}_tests/*.bc)
SET_SOURCE_FILES_PROPERTIES(${uosources} PROPERTIES LANGUAGE CXX)
file(GLOB scalar_sources ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}_scalar_tests/*.bc)
Index: Bitcode/Regression/CMakeLists.txt
===================================================================
--- Bitcode/Regression/CMakeLists.txt
+++ Bitcode/Regression/CMakeLists.txt
@@ -1,3 +1,4 @@
+set(NO_REFERENCE_OUTPUT true)
if(ARCH STREQUAL "x86")
add_subdirectory(vector_widen)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22548.64611.patch
Type: text/x-patch
Size: 2772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/950a5b07/attachment.bin>
More information about the llvm-commits
mailing list