@@ -56,7 +56,7 @@ test('computer use refuses password targets and unconfirmed dangerous keys', asy
|
||||
|
||||
test('libei sender binds bitmask capabilities from libei.h', () => {
|
||||
const pyDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../computer-use/py');
|
||||
const compiled = spawnSync('python3', ['-m', 'py_compile', 'libei_sender.py', 'portal_remote_desktop.py', 'portal_screenshot.py'], { cwd: pyDir, encoding: 'utf8' });
|
||||
const compiled = spawnSync('python3', ['-m', 'py_compile', 'libei_sender.py', 'portal_remote_desktop.py', 'portal_screenshot.py', 'pw_framebuffer.py'], { cwd: pyDir, encoding: 'utf8' });
|
||||
assert.equal(compiled.status, 0, compiled.stderr);
|
||||
const caps = spawnSync('python3', ['-c', 'from libei_sender import CAP_POINTER, CAP_KEYBOARD, CAP_BUTTON, F_KEYS; assert CAP_POINTER == 1 and CAP_KEYBOARD == 4 and CAP_BUTTON == 32 and F_KEYS["f11"] == 87'], { cwd: pyDir, encoding: 'utf8' });
|
||||
assert.equal(caps.status, 0, caps.stderr);
|
||||
|
||||
Reference in New Issue
Block a user