Skip to content

Commit

Permalink
Add check-clad-exec-only target
Browse files Browse the repository at this point in the history
This commit adds a new verification target, 'check-clad-exec-only'.
This target only verifies the 'CHECK-EXEC' filecheck checks. It is
helpful during the development phase when derivative code is expected to
change frequently.

Fixes #874
  • Loading branch information
parth-07 committed Apr 28, 2024
1 parent d879f1b commit 8a967cb
Show file tree
Hide file tree
Showing 112 changed files with 263 additions and 237 deletions.
2 changes: 1 addition & 1 deletion test/Analyses/TBR.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang -mllvm -debug-only=clad-tbr %s -I%S/../../include -oReverseLoops.out 2>&1 | FileCheck %s
// RUN: %cladclang -mllvm -debug-only=clad-tbr %s -I%S/../../include -oReverseLoops.out 2>&1 | %filecheck %s
// REQUIRES: asserts
//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/Arrays/ArrayInputsForwardMode.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oArrayInputsForwardMode.out 2>&1 | FileCheck %s
// RUN: ./ArrayInputsForwardMode.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oArrayInputsForwardMode.out 2>&1 | %filecheck %s
// RUN: ./ArrayInputsForwardMode.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
6 changes: 3 additions & 3 deletions test/Arrays/ArrayInputsReverseMode.C
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %cladclang %s -I%S/../../include -Wno-unused-value -oArrayInputsReverseMode.out 2>&1 | FileCheck %s
// RUN: ./ArrayInputsReverseMode.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -Wno-unused-value -oArrayInputsReverseMode.out 2>&1 | %filecheck %s
// RUN: ./ArrayInputsReverseMode.out | %filecheck_exec %s
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -Wno-unused-value -oArrayInputsReverseMode.out
// RUN: ./ArrayInputsReverseMode.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: ./ArrayInputsReverseMode.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/Arrays/ArrayInputsVectorForwardMode.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oArrayInputsVectorForwardMode.out 2>&1 | FileCheck %s
// RUN: ./ArrayInputsVectorForwardMode.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oArrayInputsVectorForwardMode.out 2>&1 | %filecheck %s
// RUN: ./ArrayInputsVectorForwardMode.out | %filecheck_exec %s

// XFAIL: asserts

Expand Down
6 changes: 3 additions & 3 deletions test/Arrays/Arrays.C
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %cladclang %s -I%S/../../include -oArrays.out 2>&1 | FileCheck %s
// RUN: ./Arrays.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oArrays.out 2>&1 | %filecheck %s
// RUN: ./Arrays.out | %filecheck_exec %s
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oArrays.out
// RUN: ./Arrays.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: ./Arrays.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
16 changes: 16 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if(CLAD_BUILT_STANDALONE)
set(LLVM_LIBS_DIR ${LLVM_INSTALL_PREFIX}/lib/)
endif()

set(CLAD_FILECHECK_CHECK_EXEC_ONLY False)

configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
Expand All @@ -36,6 +38,12 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
)

set(CLAD_FILECHECK_CHECK_EXEC_ONLY True)
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/CheckExecOnly/lit.site.cfg
)

option(CLANG_TEST_USE_VG "Run Clang tests under Valgrind" OFF)
if(CLANG_TEST_USE_VG)
set(CLANG_TEST_EXTRA_ARGS ${CLANG_TEST_EXTRA_ARGS} "--vg")
Expand Down Expand Up @@ -74,6 +82,14 @@ add_lit_testsuite(check-clad "Running the Clad regression tests"
)
set_target_properties(check-clad PROPERTIES FOLDER "Clad tests")

add_lit_testsuite(check-clad-exec-only "Running the Clad regression tests"
${CMAKE_CURRENT_BINARY_DIR}/CheckExecOnly
LIT ${LIT_COMMAND}
PARAMS ${CLAD_TEST_PARAMS}
DEPENDS ${CLAD_TEST_DEPS}
ARGS ${CLAD_TEST_EXTRA_ARGS} --verbose --succinct
)

add_lit_testsuites(CLAD ${CMAKE_CURRENT_SOURCE_DIR}
PARAMS ${CLAD_TEST_PARAMS}
DEPENDS ${CLAD_TEST_DEPS}
Expand Down
2 changes: 1 addition & 1 deletion test/CUDA/ForwardMode.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %cladclang_cuda -I%S/../../include %s -xc++ %cudasmlevel \
// RUN: --cuda-path=%cudapath -L/usr/local/cuda/lib64 -lcudart_static \
// RUN: -ldl -lrt -pthread -lm -lstdc++ -oForwardMode.out 2>&1 | FileCheck %s
// RUN: -ldl -lrt -pthread -lm -lstdc++ -oForwardMode.out 2>&1 | %filecheck %s

// RUN: ./ForwardMode.out

Expand Down
2 changes: 1 addition & 1 deletion test/CUDA/GradientCuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// the device having all the dependencies also as device functions.

// RUN: %cladclang_cuda -I%S/../../include %s -fsyntax-only \
// RUN: %cudasmlevel --cuda-path=%cudapath -Xclang -verify 2>&1 | FileCheck %s
// RUN: %cudasmlevel --cuda-path=%cudapath -Xclang -verify 2>&1 | %filecheck %s

// RUN: %cladclang_cuda -I%S/../../include %s -xc++ %cudasmlevel \
// RUN: --cuda-path=%cudapath -L/usr/local/cuda/lib64 -lcudart_static \
Expand Down
2 changes: 1 addition & 1 deletion test/Enzyme/DifferentCladEnzymeDerivatives.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -oDifferentCladEnzymeDerivatives.out | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -oDifferentCladEnzymeDerivatives.out | %filecheck %s
// RUN: ./DifferentCladEnzymeDerivatives.out
// CHECK-NOT: {{.*error|warning|note:.*}}
// REQUIRES: Enzyme
Expand Down
2 changes: 1 addition & 1 deletion test/Enzyme/ForwardMode.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -oEnzyme.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -oEnzyme.out 2>&1 | %filecheck %s
// RUN: ./Enzyme.out
// CHECK-NOT: {{.*error|warning|note:.*}}
// REQUIRES: Enzyme
Expand Down
4 changes: 2 additions & 2 deletions test/Enzyme/FunctionPrototypesReverseMode.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oReverseMode.out | FileCheck %s
// RUN: ./ReverseMode.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oReverseMode.out | %filecheck %s
// RUN: ./ReverseMode.out | %filecheck_exec %s
// CHECK-NOT: {{.*error|warning|note:.*}}
// REQUIRES: Enzyme

Expand Down
4 changes: 2 additions & 2 deletions test/Enzyme/GradientsComparisonWithClad.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oEnzymeGradients.out 2>&1 | FileCheck %s
// RUN: ./EnzymeGradients.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oEnzymeGradients.out 2>&1 | %filecheck %s
// RUN: ./EnzymeGradients.out | %filecheck_exec %s
// REQUIRES: Enzyme
// CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/Enzyme/LoopsReverseModeComparisonWithClad.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oEnzymeLoops.out 2>&1 | FileCheck %s
// RUN: ./EnzymeLoops.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oEnzymeLoops.out 2>&1 | %filecheck %s
// RUN: ./EnzymeLoops.out | %filecheck_exec %s
// REQUIRES: Enzyme
// CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/ErrorEstimation/Assignments.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang -I%S/../../include -oAssignments.out %s 2>&1 | FileCheck %s
// RUN: %cladclang -I%S/../../include -oAssignments.out %s 2>&1 | %filecheck %s
// RUN: ./Assignments.out
// CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/ErrorEstimation/BasicOps.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | %filecheck %s
//CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/ErrorEstimation/ConditonalStatements.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang -I%S/../../include -oCondStmts.out %s 2>&1 | FileCheck %s
// RUN: %cladclang -I%S/../../include -oCondStmts.out %s 2>&1 | %filecheck %s
// CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/ErrorEstimation/LoopsAndArrays.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang -I%S/../../include -oLoopsAndArrays.out %s 2>&1 | FileCheck %s
// RUN: %cladclang -I%S/../../include -oLoopsAndArrays.out %s 2>&1 | %filecheck %s
// CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions test/ErrorEstimation/LoopsAndArraysExec.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oLoopsAndArraysExec.out 2>&1 | FileCheck %s
// RUN: ./LoopsAndArraysExec.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oLoopsAndArraysExec.out 2>&1 | %filecheck %s
// RUN: ./LoopsAndArraysExec.out | %filecheck_exec %s

// CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/Assignments.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -oAssignments.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -oAssignments.out 2>&1 | %filecheck %s
// RUN: ./Assignments.out
//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/BasicArithmeticAddSub.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oBasicArithmeticAddSub.out 2>&1 | FileCheck %s
// RUN: ./BasicArithmeticAddSub.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oBasicArithmeticAddSub.out 2>&1 | %filecheck %s
// RUN: ./BasicArithmeticAddSub.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/BasicArithmeticAll.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oBasicArithmeticAll.out 2>&1 | FileCheck %s
// RUN: ./BasicArithmeticAll.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oBasicArithmeticAll.out 2>&1 | %filecheck %s
// RUN: ./BasicArithmeticAll.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/BasicArithmeticMulDiv.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oBasicArithmeticMulDiv.out 2>&1 | FileCheck %s
// RUN: ./BasicArithmeticMulDiv.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: ./BasicArithmeticMulDiv.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
6 changes: 3 additions & 3 deletions test/FirstDerivative/BuiltinDerivatives.C
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %cladclang %s -I%S/../../include -Xclang -verify -oBuiltinDerivatives.out 2>&1 | FileCheck %s
// RUN: ./BuiltinDerivatives.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -Xclang -verify -oBuiltinDerivatives.out 2>&1 | %filecheck %s
// RUN: ./BuiltinDerivatives.out | %filecheck_exec %s
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -Xclang -verify -oBuiltinDerivatives.out
// RUN: ./BuiltinDerivatives.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: ./BuiltinDerivatives.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/CallArguments.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -Xclang -verify -oCallArguments.out 2>&1 | FileCheck %s
// RUN: ./CallArguments.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -Xclang -verify -oCallArguments.out 2>&1 | %filecheck %s
// RUN: ./CallArguments.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/ClassMethodCall.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oClassMethods.out 2>&1 | FileCheck %s
// RUN: ./ClassMethods.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oClassMethods.out 2>&1 | %filecheck %s
// RUN: ./ClassMethods.out | %filecheck_exec %s
// Fails on clang-18 due to https://github.com/llvm/llvm-project/issues/87151
// XFAIL: clang-18
//CHECK-NOT: {{.*error|warning|note:.*}}
Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/CodeGenSimple.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oCodeGenSimple.out 2>&1 | FileCheck %s
// RUN: ./CodeGenSimple.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oCodeGenSimple.out 2>&1 | %filecheck %s
// RUN: ./CodeGenSimple.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/CompoundAssignments.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -oCompoundAssignments.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -oCompoundAssignments.out 2>&1 | %filecheck %s
// RUN: ./CompoundAssignments.out
//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/DependencyTracking.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include 2>&1 -fsyntax-only | FileCheck %s
// RUN: %cladclang %s -I%S/../../include 2>&1 -fsyntax-only | %filecheck %s

//CHECK-NOT: {{.*error|warning|note:.*}}
#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/DiffInterface.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | %filecheck %s

#include "clad/Differentiator/Differentiator.h"

Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/FunctionCalls.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladnumdiffclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | FileCheck %s
// RUN: %cladnumdiffclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | %filecheck %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/FunctionCallsWithResults.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oFunctionCallsWithResults.out 2>&1 | FileCheck %s
// RUN: ./FunctionCallsWithResults.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oFunctionCallsWithResults.out 2>&1 | %filecheck %s
// RUN: ./FunctionCallsWithResults.out | %filecheck_exec %s

#include "clad/Differentiator/Differentiator.h"
#include <random>
Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/FunctionsInNamespaces.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oFunctionsInNamespaces.out 2>&1 | FileCheck %s
// RUN: ./FunctionsInNamespaces.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oFunctionsInNamespaces.out 2>&1 | %filecheck %s
// RUN: ./FunctionsInNamespaces.out | %filecheck_exec %s

// CHECK-NOT: {{.*error|warning|note:.*}}
#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/FunctionsOneVariable.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | %filecheck %s

#include "clad/Differentiator/Differentiator.h"

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/Loops.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -std=c++17 -I%S/../../include -oLoops.out 2>&1 | FileCheck %s
// RUN: ./Loops.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -std=c++17 -I%S/../../include -oLoops.out 2>&1 | %filecheck %s
// RUN: ./Loops.out | %filecheck_exec %s
// CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/Namespaces.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -oNamespaces.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -oNamespaces.out 2>&1 | %filecheck %s
// RUN: ./Namespaces.out
//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/NonContinuous.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oNonContinuous.out 2>&1 | FileCheck %s
// RUN: ./NonContinuous.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oNonContinuous.out 2>&1 | %filecheck %s
// RUN: ./NonContinuous.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/Overloads.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oOverloads.out 2>&1 | FileCheck %s
// RUN: ./Overloads.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oOverloads.out 2>&1 | %filecheck %s
// RUN: ./Overloads.out | %filecheck_exec %s
// XFAIL: asserts
//CHECK-NOT: {{.*error|warning|note:.*}}
// XFAIL: target={{i586.*}}
Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/Recursive.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oRecursive.out 2>&1 | FileCheck %s
// RUN: ./Recursive.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oRecursive.out 2>&1 | %filecheck %s
// RUN: ./Recursive.out | %filecheck_exec %s

//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/StructGlobalObjects.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include 2>&1 | %filecheck %s
//CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/StructMethodCall.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oStructMethodCall.out 2>&1 | FileCheck %s
// RUN: ./StructMethodCall.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oStructMethodCall.out 2>&1 | %filecheck %s
// RUN: ./StructMethodCall.out | %filecheck_exec %s
//CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/Switch.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oSwitch.out 2>&1 | FileCheck %s
// RUN: ./Switch.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oSwitch.out 2>&1 | %filecheck %s
// RUN: ./Switch.out | %filecheck_exec %s
//CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/SwitchInit.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -std=c++17 -oSwitchInit.out 2>&1 | FileCheck %s
// RUN: ./SwitchInit.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -std=c++17 -oSwitchInit.out 2>&1 | %filecheck %s
// RUN: ./SwitchInit.out | %filecheck_exec %s
//CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/TemplateFunction.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include 2>&1 | %filecheck %s
//CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/UnsupportedOpsWarn.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | %filecheck %s
// RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -fsyntax-only -Xclang -verify

#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion test/FirstDerivative/Variables.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cladclang %s -I%S/../../include -oVariables.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -I%S/../../include -oVariables.out 2>&1 | %filecheck %s
// RUN: ./Variables.out
//CHECK-NOT: {{.*error|warning|note:.*}}

Expand Down
4 changes: 2 additions & 2 deletions test/FirstDerivative/VirtualMethodsCall.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oVirtualMethodsCall.out 2>&1 | FileCheck %s
// RUN: ./VirtualMethodsCall.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oVirtualMethodsCall.out 2>&1 | %filecheck %s
// RUN: ./VirtualMethodsCall.out | %filecheck_exec %s
// XFAIL: asserts
// Fails on clang-18 due to https://github.com/llvm/llvm-project/issues/87151
// XFAIL: clang-18
Expand Down
4 changes: 2 additions & 2 deletions test/ForwardMode/Casts.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oCasts.out 2>&1 | FileCheck %s
// RUN: ./Casts.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oCasts.out 2>&1 | %filecheck %s
// RUN: ./Casts.out | %filecheck_exec %s
// CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions test/ForwardMode/Functors.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %cladclang %s -I%S/../../include -oFunctors.out 2>&1 | FileCheck %s
// RUN: ./Functors.out | FileCheck -check-prefix=CHECK-EXEC %s
// RUN: %cladclang %s -I%S/../../include -oFunctors.out 2>&1 | %filecheck %s
// RUN: ./Functors.out | %filecheck_exec %s
// CHECK-NOT: {{.*error|warning|note:.*}}

#include "clad/Differentiator/Differentiator.h"
Expand Down
Loading

0 comments on commit 8a967cb

Please sign in to comment.