[PATCH] D104637: [Orc] Run the examples as part of the tests
Valentin Churavy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 21 05:39:21 PDT 2021
vchuravy created this revision.
vchuravy added a reviewer: lhames.
Herald added a subscriber: mgorny.
vchuravy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Enable the Orc C-Bindings for testing.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104637
Files:
llvm/test/CMakeLists.txt
llvm/test/Examples/OrcV2Examples/orcv2-cbindings-add-object-file.test
llvm/test/Examples/OrcV2Examples/orcv2-cbindings-basic-usage.test
llvm/test/Examples/OrcV2Examples/orcv2-cbindings-reflect-process-symbols.test
llvm/test/Examples/OrcV2Examples/orcv2-cbindings-removable-code.test
llvm/test/lit.cfg.py
Index: llvm/test/lit.cfg.py
===================================================================
--- llvm/test/lit.cfg.py
+++ llvm/test/lit.cfg.py
@@ -180,7 +180,11 @@
ToolSubst('Kaleidoscope-Ch7', unresolved='ignore'),
ToolSubst('Kaleidoscope-Ch8', unresolved='ignore'),
ToolSubst('LLJITWithThinLTOSummaries', unresolved='ignore'),
- ToolSubst('LLJITWithRemoteDebugging', unresolved='ignore')])
+ ToolSubst('LLJITWithRemoteDebugging', unresolved='ignore'),
+ ToolSubst('OrcV2CBindingsBasicUsage', unresolved='ignore'),
+ ToolSubst('OrcV2CBindingsAddObjectFile', unresolved='ignore'),
+ ToolSubst('OrcV2CBindingsRemovableCode', unresolved='ignore'),
+ ToolSubst('OrcV2CBindingsReflectProcessSymbols', unresolved='ignore')])
llvm_config.add_tool_substitutions(tools, config.llvm_tools_dir)
Index: llvm/test/Examples/OrcV2Examples/orcv2-cbindings-removable-code.test
===================================================================
--- /dev/null
+++ llvm/test/Examples/OrcV2Examples/orcv2-cbindings-removable-code.test
@@ -0,0 +1,3 @@
+# RUN: OrcV2CBindingsRemovableCode 2>&1 | FileCheck %s
+
+# CHECK: 1 + 2 = 3
Index: llvm/test/Examples/OrcV2Examples/orcv2-cbindings-reflect-process-symbols.test
===================================================================
--- /dev/null
+++ llvm/test/Examples/OrcV2Examples/orcv2-cbindings-reflect-process-symbols.test
@@ -0,0 +1,3 @@
+# RUN: OrcV2CBindingsReflectProcessSymbols 2>&1 | FileCheck %s
+
+# CHECK: 3 * 4 + 5 = 17
Index: llvm/test/Examples/OrcV2Examples/orcv2-cbindings-basic-usage.test
===================================================================
--- /dev/null
+++ llvm/test/Examples/OrcV2Examples/orcv2-cbindings-basic-usage.test
@@ -0,0 +1,3 @@
+# RUN: OrcV2CBindingsBasicUsage 2>&1 | FileCheck %s
+
+# CHECK: 1 + 2 = 3
Index: llvm/test/Examples/OrcV2Examples/orcv2-cbindings-add-object-file.test
===================================================================
--- /dev/null
+++ llvm/test/Examples/OrcV2Examples/orcv2-cbindings-add-object-file.test
@@ -0,0 +1,3 @@
+# RUN: OrcV2CBindingsAddObjectFile 2>&1 | FileCheck %s
+
+# CHECK: 1 + 2 = 3
Index: llvm/test/CMakeLists.txt
===================================================================
--- llvm/test/CMakeLists.txt
+++ llvm/test/CMakeLists.txt
@@ -160,6 +160,10 @@
Kaleidoscope-Ch6
Kaleidoscope-Ch7
LLJITWithThinLTOSummaries
+ OrcV2CBindingsBasicUsage
+ OrcV2CBindingsAddObjectFile
+ OrcV2CBindingsRemovableCode
+ OrcV2CBindingsReflectProcessSymbols
)
if(CMAKE_HOST_UNIX)
list(APPEND LLVM_TEST_DEPENDS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104637.353347.patch
Type: text/x-patch
Size: 2606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/8bf36932/attachment.bin>
More information about the llvm-commits
mailing list