summaryrefslogtreecommitdiff
path: root/share
AgeCommit message (Collapse)AuthorFilesLines
2024-01-13fix(share/python/lib/daemon.yaml): add missing capture typeLars Wirzenius1-0/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2024-01-06fix: add missing types for python lib/daemon.yamlLars Wirzenius1-0/+16
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-27bindings: Add types for all relevant bindings which were missing themDaniel Silverstone1-0/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-12-25refactor: move CSS file out of doc.rsLars Wirzenius1-0/+40
Make it easier to edit the CSS file, and also add some styles for upcoming scenario typesetting. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add docs to share/rust/lib/datadir.yamlLars Wirzenius1-0/+7
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add docs to share/python/lib/daemon.yamlLars Wirzenius1-0/+52
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add missing doc to share/common/runcmd.yamlLars Wirzenius1-1/+1
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-12-01docs: add doc to bindings in share/common/files.yamlLars Wirzenius1-1/+55
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-11-04feat: generate library documentation from bindings filesLars Wirzenius1-0/+65
Add a `doc` field to a binding. It's a string meant to contain markdown. Add subcommand `subplot libdocgen YAML -o MD` to read a bindings file and output a markdown file documenting the steps in the bindings file, and the type of captures, and the documentation for the step. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-08-12share: Adapt rust template to pass locations inDaniel Silverstone2-2/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-08-12feat: reduce repetitive logging of environment in Python runcmdLars Wirzenius2-4/+7
Every time runcmd.py runs a command, it uses the same environment. We only need to log it once. Sponsored-by: author
2022-10-22(steplibrary): Update files and runcmd to use new path typeDaniel Silverstone2-12/+68
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-10-22(rust template): Support a 'path' arg type to pass PathBufs inDaniel Silverstone1-2/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-10fix: daemon.yaml mark embedded file name as suchLars Wirzenius1-0/+2
Change the binding to tell Subplot that an embedded file is referred to. This silences a warning for correct scenarios, and that will soon matter when warnings are errors by default. Sponsored-by: author
2022-04-01(share): Update Rust template to pass in the step text to .build()Daniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-03-26(files.py): Be explicit about mtimes being UTCDaniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-03-25feat: add "file doesn't contain" step to lib/files, Python and RustLars Wirzenius2-0/+16
Sponsored-by: author
2022-03-25refactor(lib/files.yaml): re-order step bindings meaningfullyLars Wirzenius1-61/+71
Keep related/similar steps together. Add comments to act as section headings. Sponsored-by: author
2022-03-16missing wordXipmix1-2/+2
2022-03-16missing wordXipmix1-1/+1
2021-12-27rust/template: Permit non_snake_case for test functionsDaniel Silverstone1-0/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-11-15refactor: format daemon.py using blackLars Wirzenius1-0/+1
Sponsored-by: author
2021-10-28refactor: use simple patterns where possibleLars Wirzenius1-32/+16
Many of our bindings files were originally written before Subplot supported simple patterns, and so they use regex patterns even when a simple pattern would do. Simplify bindings to use simple patterns when possible, to make life easier for future maintainers. Sponsored-by: author
2021-10-13daemon: Support finding the binary on the PATHDaniel Silverstone1-1/+14
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-10-13templates: Inherit environment for the most partDaniel Silverstone2-17/+3
We inherit all the environment except we override a few variables in order to provide some level of consistency. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-25feat: add --run-all (-k) option to Python test runnerLars Wirzenius1-10/+24
This allows the user to run all scenarios even if one fails. Sponsored-by: author
2021-09-16fix: make sure the then branch can never be emptyLars Wirzenius1-0/+1
Sponsored-by: pep.foundation
2021-09-14style: remove unwanted spaces in function definitionLars Wirzenius1-1/+1
Sponsored-by: author
2021-09-07tests: Move Python tests out of share/Daniel Silverstone5-532/+0
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-07library: Make files.yaml properly polyglotDaniel Silverstone6-163/+62
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-07share: Make runcmd.yaml properly polyglot and commonDaniel Silverstone4-139/+48
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-07bindings: Parse polyglot bindingsDaniel Silverstone7-123/+354
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-08-07chore: tell shellcheck it's OKLars Wirzenius1-0/+1
Newer version of shellcheck complains about expanding an unused variable, but since the code is actually only a snippet that will be embedded in the generated output, this is OK. Sponsored-by: author
2021-08-07Merge branch 'main' into 'main'Lars Wirzenius1-4/+16
bash template: Provice captures to cleanups See merge request subplot/subplot!198
2021-08-06bash: Fix asserts preventing cleanupRichard Maw1-2/+2
2021-08-06bash template: Provide captures to cleanupsRichard Maw1-4/+16
2021-08-06fix: Remove double newline from bash envnamesRichard Maw1-1/+1
This doesn't materially change behaviour because words split the same but it's unintentional and against the described behaviour.
2021-08-05bash: Support --env option in generated scriptsRichard Maw1-0/+39
2021-08-05fix: Make bash envnames pure shell againRichard Maw1-1/+1
This should hopefully avoid the previous version's pitfalls by processing the environment line entirely in sed.
2021-08-05fix: bash files implementations inability to readRichard Maw1-3/+4
The template unpacks the embedded files into the datadir before the scendir is created and chdir'd into. Since dict_* assume that the files you want to read are in the current directory this makes them unreadable. Making them operate relative to datadir seemed like the least complicated solution, compared to copying them in or some kind of search path.
2021-07-30Fix flake8 warningsAlexander Batischev1-0/+3
2021-07-29feat(lib/daemon.py): add way to specify env varsAlexander Batischev3-6/+126
2021-07-28fix: use socket/bind/listen for compa with Python < 3.8Lars Wirzenius1-1/+4
Sponsored-by: author
2021-07-28test: log stderr when asserting that daemon didn't fail to startLars Wirzenius1-0/+5
Sponsored-by: author
2021-07-28test: log _daemon namespace for debugging CILars Wirzenius1-0/+1
2021-07-27Fix daemon.py tests' dependence on netcatAlexander Batischev3-18/+31
This commit fixes two intertwined problems: 1) with traditional netcat, `netcat -l 8888` treats "8888" as a host, and never starts listening on port 8888. This is fixed by replacing netcat with a Python script (as suggested by Lars Wirzenius); 2) Subplot's test suite never notices the above problem because, even though it fails to connect to the port, this error is intentionally swallowed by `_daemon_start_soonish()`. This is fixed by adding an explicit check to ensure that the daemon started after all. Furthermore, the scenario description is reworded to make it clear that we *do* expect the daemon to start, it'll just take a while.
2021-07-08chore: make f-strings without placeholders into normal stringsLars Wirzenius2-10/+10
This has no functional effect, but makes linters happy. It is also arguably the right thing to do. Sponsored-by: author
2021-06-11python: Do not sort lists when asserting dictionary equalityDaniel Silverstone1-4/+26
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-06-09feat(lib/daemon.py): split stdout/stderr when logging into linesLars Wirzenius1-8/+11
Sponsored-by: author
2021-05-30test: use assert_dict_eq for better error outputLars Wirzenius1-2/+2