[PATCH] D104637: [Orc] Run the examples as part of the tests

Valentin Churavy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 30 12:45:41 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9762f12c6c60: [Orc] Run the examples as part of the tests (authored by vchuravy).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104637/new/

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
@@ -182,7 +182,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
@@ -162,6 +162,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.355667.patch
Type: text/x-patch
Size: 2606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210630/10ad7d5a/attachment.bin>


More information about the llvm-commits mailing list