Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save weliveindetail/42a526e3697e389e88dd6a78daa0e2f7 to your computer and use it in GitHub Desktop.
Save weliveindetail/42a526e3697e389e88dd6a78daa0e2f7 to your computer and use it in GitHub Desktop.
Run test suite on mvp-package with AppleClang and without OMVLL_PYTHONPATH
From beb385fd3dfc34523b9e968bbcd5a59c163dc743 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= <stefan.graenitz@gmail.com>
Date: Wed, 12 Jul 2023 14:39:03 +0200
Subject: [PATCH] Run test suite on mvp-package
OMVLL_PYTHONPATH
---
src/test/lit.cfg.py | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/src/test/lit.cfg.py b/src/test/lit.cfg.py
index d3627ae..13857fa 100644
--- a/src/test/lit.cfg.py
+++ b/src/test/lit.cfg.py
@@ -32,25 +32,26 @@ elif host_arch == 'arm64':
# The tools directory defaults to LLVM_BINARY_DIR. In order to run tests with a different compiler,
# pass the installation base path via LLVM_TOOLS_DIR at configuration time explicitly.
-print("Running tests with:", os.path.join(config.llvm_tools_dir, 'clang'))
-llvm_config.add_tool_substitutions(["clang", "clang++"], config.llvm_tools_dir)
+print("Running tests with:", os.path.join("/Applications/Xcode_14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin", 'clang'))
+llvm_config.add_tool_substitutions(["clang", "clang++"], "/Applications/Xcode_14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin")
llvm_config.add_tool_substitutions(["FileCheck", "count", "not"], config.llvm_tools_dir)
# The plugin is a shared library in our build-tree
-plugin_file = os.path.join(config.omvll_plugin_dir, 'libOMVLL' + config.llvm_plugin_suffix)
+#plugin_file = os.path.join(config.omvll_plugin_dir, 'libOMVLL' + config.llvm_plugin_suffix)
+plugin_file = "/path/to/mvp-package/lib/omvll-x86_64-xcode14.dylib"
print("Testing plugin file:", plugin_file)
config.substitutions.append(('%libOMVLL', plugin_file))
print("Available features are:", config.available_features)
# We need this to find the Python standard library
-if 'OMVLL_PYTHONPATH' in os.environ:
- print("OMVLL_PYTHONPATH:", os.environ['OMVLL_PYTHONPATH'])
- config.environment['OMVLL_PYTHONPATH'] = os.environ['OMVLL_PYTHONPATH']
-else:
- print("Please set the environment variable OMVLL_PYTHONPATH and try again, e.g.:")
- print("")
- print(" export OMVLL_PYTHONPATH=/path/to/Python-3.10.7/Lib")
- print("")
- print("For more info see: https://obfuscator.re/omvll/introduction/getting-started/#python-standard-library")
- exit(1)
+#if 'OMVLL_PYTHONPATH' in os.environ:
+# print("OMVLL_PYTHONPATH:", os.environ['OMVLL_PYTHONPATH'])
+# config.environment['OMVLL_PYTHONPATH'] = os.environ['OMVLL_PYTHONPATH']
+#else:
+# print("Please set the environment variable OMVLL_PYTHONPATH and try again, e.g.:")
+# print("")
+# print(" export OMVLL_PYTHONPATH=/path/to/Python-3.10.7/Lib")
+# print("")
+# print("For more info see: https://obfuscator.re/omvll/introduction/getting-started/#python-standard-library")
+# exit(1)
--
2.37.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment