From f2fcf93aea183bede9e1bd3bb9ae4ffe8bca08e9 Mon Sep 17 00:00:00 2001 From: Pietro Fezzardi Date: Fri, 11 Feb 2022 16:53:20 +0100 Subject: [PATCH] Revert "Drop torture tests" This reverts commit e65b313e5e25dd83d9296984552f9bb056971e2c. --- CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22af9a33c..e565da759 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -341,6 +341,26 @@ macro(add_decompilation_pipeline_test CATEGORY INPUT_FILE CONFIGURATION OUTPUT T endmacro() +# Decompilation torture tests +macro(artifact_handler CATEGORY INPUT_FILE CONFIGURATION OUTPUT TARGET_NAME) + + if (EXISTS ${INPUT_FILE}) + add_decompilation_pipeline_test(${CATEGORY} + ${INPUT_FILE} + ${CONFIGURATION} + ${OUTPUT} + ${TARGET_NAME}) + endif() + +endmacro() + +register_derived_artifact("abi-enforced-for-decompilation-torture" # FROM_ARTIFACTS: input artifacts + "revng-c-passes-torture" # NAME: name of the new aritfact + "" # SUFFIX: extension of output file + "FILE" # TYPE: "FILE" or "DIRECTORY" + ) + + # Decompilation tests macro(artifact_handler CATEGORY INPUT_FILE CONFIGURATION OUTPUT TARGET_NAME)