[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
Wed Jul 20 08:45:25 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL276131: [test-suite] Supress warnings of missing reference output files. (authored by asbirlea).
Changed prior to commit:
https://reviews.llvm.org/D22548?vs=64611&id=64699#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22548
Files:
test-suite/trunk/Bitcode/Regression/CMakeLists.txt
test-suite/trunk/Bitcode/simd_ops/CMakeLists.txt
test-suite/trunk/cmake/modules/SingleMultiSource.cmake
Index: test-suite/trunk/cmake/modules/SingleMultiSource.cmake
===================================================================
--- test-suite/trunk/cmake/modules/SingleMultiSource.cmake
+++ test-suite/trunk/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: test-suite/trunk/Bitcode/Regression/CMakeLists.txt
===================================================================
--- test-suite/trunk/Bitcode/Regression/CMakeLists.txt
+++ test-suite/trunk/Bitcode/Regression/CMakeLists.txt
@@ -1,3 +1,4 @@
+set(NO_REFERENCE_OUTPUT true)
if(ARCH STREQUAL "x86")
add_subdirectory(vector_widen)
endif()
Index: test-suite/trunk/Bitcode/simd_ops/CMakeLists.txt
===================================================================
--- test-suite/trunk/Bitcode/simd_ops/CMakeLists.txt
+++ test-suite/trunk/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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22548.64699.patch
Type: text/x-patch
Size: 2925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160720/205e00bc/attachment.bin>
More information about the llvm-commits
mailing list