main, utilities: bench helpers and a fake imsd
--prefill types into the opened conversation's field (App::Prefill, the bench's typing, comes with it), --send-draft taps Send 1.5 s after start and --screenshot-after chooses the moment of the capture, so a machine can exercise the compose path and look at the result; --prefill and --send-draft are window flags as --screenshot is — refused beside --send and --quit, and beside a running instance (--screenshot-after acts through --screenshot, refused there, its seconds checked as --quit-after's are) — and a --prefill text that is not UTF-8 is refused as --send's is. utilities/fake-imsd.py owns net.catcrafts.IMS1 on the session bus with the answers chosen on its command line: a registered daemon (its GetStatus answers name the subscriber's number, --ppi; the Messaging one and every text the SIM's operator, --operator) that accepts sends and reports them sent (the stamp in imsd's ISO 8601 form, at the host's offset) and delivered, a store to list and delete, texts injected at start or delivered as unicast Received while the app runs, the refusals (AccessDenied, NotSupported, failed sends) and a Subscribe answered late (--subscribe-delay: the app before imsd's status is in). It runs on the host (python3-gi), the app in the sandbox, both on the same session bus.
This commit is contained in:
parent
efd8dd92d3
commit
8a03a4ed49
4 changed files with 164 additions and 5 deletions
|
|
@ -32,6 +32,7 @@ and §7.9 (Messaging) and §8.1 (the frozen one).
|
|||
| `interfaces/ImsdMessages.Ui*.cppm` | `imsd-messages-ui`: the window on Crafter.Graphics, driven from the GLib main loop. |
|
||||
| `implementations/main.cpp` | The executable `imsd-messages`. |
|
||||
| `tests/<Name>/main.cpp` | One test per directory, declared in `project.cpp`. |
|
||||
| `utilities/` | `fake-imsd.py`: imsd's Messaging interface on the session bus, for benches. |
|
||||
| `assets/` | The bundled font (Noto Sans, OFL 1.1). |
|
||||
| `packaging/` | `build-libevdev.sh`: libevdev into a prefix. |
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue