Merge main: one linux-dmabuf, imported on the GPU or mapped without one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
d478f58d9b
54 files changed
+1110
-376
No files matched your search
@@ -15,3 +15,4 @@ starfield starfield-widget
|
||||
gamerig-library gamerig-library-widget
|
||||
osk osk-widget
|
||||
rotate rotate-widget
|
||||
show-desktop show-desktop-widget
|
||||
@@ -18,6 +18,10 @@ BEGIN, END = "----- BEGIN MOON TEST RESULT -----", "----- END MOON TEST RESULT -
|
||||
|
||||
def environment():
|
||||
env = dict(os.environ, CHANDRA_TEST_CONFIG="1")
|
||||
# Nothing reaches the real session through logind (screen brightness, ...). Tests that want a
|
||||
# system bus give their own address.
|
||||
env.pop("XDG_SESSION_ID", None)
|
||||
env["DBUS_SYSTEM_BUS_ADDRESS"] = "unix:path=/nonexistent"
|
||||
env["PATH"] = f"{ROOT}/.tools/bin:{os.path.expanduser('~')}/.moon/bin:" + env["PATH"]
|
||||
wasmer = ROOT + "/.tools/wasmer"
|
||||
if os.path.isdir(wasmer + "/lib"):
|
||||
@@ -42,6 +46,12 @@ def run(test, env, timeout):
|
||||
with open(f"{tmp}/d/applications/test-{n.lower()}.desktop", "w") as f:
|
||||
f.write(f"[Desktop Entry]\nType=Application\nName=Test {n}\nExec=true\nCategories=Utility;\n")
|
||||
os.mkdir(tmp + "/r", 0o700)
|
||||
# A fake backlight (25 of 100), so a test that changes the brightness can't touch the real screen.
|
||||
os.makedirs(tmp + "/bl/intel_backlight")
|
||||
for n, v in (("max_brightness", "100"), ("brightness", "25")):
|
||||
with open(f"{tmp}/bl/intel_backlight/{n}", "w") as f:
|
||||
f.write(v + "\n")
|
||||
e["CHANDRA_BACKLIGHT_ROOT"] = tmp + "/bl"
|
||||
t = time.monotonic()
|
||||
# Output goes to a file: a pipe would stay open as long as anything the test left running.
|
||||
with open(tmp + "/out", "w+b") as out:
|
||||
|
||||
Reference in new issue
Block a user