-
Notifications
You must be signed in to change notification settings - Fork 1
release/v2.0.0 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
889b135
895fac3
cc9d25b
741e8e9
df89707
b176d26
c68a060
035e0ce
820446d
2c4c626
8371e30
49c9d5a
9d42216
9e91ff4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| # https://docs.astral.sh/ruff/configuration/ | ||
|
|
||
| line-length = 100 | ||
| exclude = ["build/"] | ||
|
|
||
| [lint] | ||
| ignore = ["F821"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,8 +5,9 @@ from __future__ import absolute_import, division, print_function | |||||||||
| import glob | ||||||||||
| import os | ||||||||||
| import re | ||||||||||
| import sys | ||||||||||
|
|
||||||||||
| Import("env testruns") | ||||||||||
| Import("env testruns binding_results binding_test_stamps") | ||||||||||
|
|
||||||||||
| dist_headers = [ | ||||||||||
| "hammer.h", | ||||||||||
|
|
@@ -211,18 +212,28 @@ if GetOption("with_tests"): | |||||||||
| if os.path.basename(_libdir) == "build": | ||||||||||
| _libdir = os.path.dirname(_libdir) | ||||||||||
| _exe = ctestexec[0].path | ||||||||||
| _run_and_summarize = ( | ||||||||||
| "tmp=$$(mktemp); env LD_LIBRARY_PATH=" | ||||||||||
| + _libdir | ||||||||||
| + " " | ||||||||||
| + _exe | ||||||||||
| + ' > "$$tmp"; status=$$?; cat "$$tmp"; rm "$$tmp"; exit $$status' | ||||||||||
| reporter = os.path.join(Dir("#").abspath, "tools", "test_reporter.py") | ||||||||||
| core_results_dir = os.path.join(Dir("#").abspath, env.subst("$BUILD_BASE"), "src") | ||||||||||
| core_results_file = os.path.join(core_results_dir, "hammer_core.results") | ||||||||||
| ctestexec_stamp = testenv.Command( | ||||||||||
| "core_tests.stamp", | ||||||||||
| [ctestexec], | ||||||||||
| [ | ||||||||||
| "LD_LIBRARY_PATH=%s %s %s --binding Core --results-file %s -- %s" | ||||||||||
| % (_libdir, sys.executable, reporter, core_results_file, _exe), | ||||||||||
| "touch $TARGET", | ||||||||||
| ], | ||||||||||
| ) | ||||||||||
| ctest = Alias("testc", [ctestexec], _run_and_summarize) | ||||||||||
| AlwaysBuild(ctestexec_stamp) | ||||||||||
| ctest = Alias("testc", [ctestexec_stamp], ctestexec_stamp) | ||||||||||
| AlwaysBuild(ctest) | ||||||||||
| testruns.append(ctest) | ||||||||||
| binding_results.append(("Core", core_results_file)) | ||||||||||
| binding_test_stamps.append(ctestexec_stamp[0]) | ||||||||||
|
|
||||||||||
| if libhammer_shared is not None: | ||||||||||
| Export("libhammer_static libhammer_shared") | ||||||||||
| else: | ||||||||||
| Export("libhammer_static") | ||||||||||
| Export("libhammer_static libhammer_shared") | ||||||||||
|
|
||||||||||
| for b in env.get("bindings", []): | ||||||||||
|
||||||||||
| for b in env.get("bindings", []): | |
| for b in env.get("bindings", []): | |
| if b == "none": | |
| continue |
Uh oh!
There was an error while loading. Please reload this page.