summaryrefslogtreecommitdiff
path: root/subplotlib
AgeCommit message (Collapse)AuthorFilesLines
2021-11-16subplotlib: Ensure that PATH changes are indeed prepended not appended.Daniel Silverstone1-2/+8
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-11-10chore: change licence to MIT-0Lars Wirzenius1-1/+1
We've decided to simplify the Subplot licensing situation by changing the licence to MIT-0 from the GPL. See https://gitlab.com/subplot/subplot/-/issues/229 for agreements from everyone involved. Sponsored-by: author
2021-10-13tests: Fix up use of absolute paths for false/true/echo etc.Daniel Silverstone2-32/+32
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-10-13subplotlib: Do not override environment entirelyDaniel Silverstone1-3/+7
As per the Python template, do not override the full environment Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-18subplotlib: Upgrade to state 0.5Daniel Silverstone2-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-16fix: YAML end-markerLars Wirzenius2-2/+2
Sponsored-by: pep.foundation
2021-09-07bindings: Parse polyglot bindingsDaniel Silverstone1-7/+19
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-06-12chore: update Cargo.tomls for releaseDaniel Silverstone1-2/+11
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28subplotlib: Add some basic docs to a bit of the files steplibraryDaniel Silverstone1-0/+20
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28subplotlib: ScenarioStep::register_contexts should be pub(crate)Daniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28chore: Fix --- to ... in subplotlib.mdDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28subplotlib: Document more of the preludeDaniel Silverstone1-4/+122
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-22subplotlib: Fix broken link in ContextElement::step_stopsDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-22subplotlib: Do not document lazy_static in preludeDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-22subplotlib: Fix doctests in file moduleDaniel Silverstone1-0/+4
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-19subplotlib: chore: Regenerate runcmd.rs test fileDaniel Silverstone1-0/+96
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-19subplotlib: Update runcmd.md test to use new bindingsDaniel Silverstone1-0/+20
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-19subplotlib: Add running in a subdir to runcmdDaniel Silverstone1-1/+22
This adds the bindings and step implementations for running commands in a directory off the datadir. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-27subplotlib/tests: Format files.rsDaniel Silverstone1-308/+199
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-27subplotlib: path_exists - check path is a directoryDaniel Silverstone1-1/+6
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-18refactor: rewrite check in Python as check.pyLars Wirzenius1-199/+308
The old shell script became too hard to understand and maintain. This should be clearer and also more robust.
2021-02-07subplotlib: test the new directory stepsDaniel Silverstone2-0/+165
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-07subplotlib: Add directory steps to files libraryDaniel Silverstone1-0/+61
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-07subplotlib: Add remove_dir_all dependencyDaniel Silverstone1-1/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-07subplotlib: Add create_dir_all to datadir contextDaniel Silverstone1-0/+6
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-02-07subplotlib: Remove unused import from runcmdDaniel Silverstone1-1/+0
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-31subplotlib: Add external environment override for runcmdDaniel Silverstone1-1/+17
In order to support runcmd environment overrides, we insert them during scenario startup to match how the Python test runtime does so. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-31subplotlib: Update runcmd for better PATH managementDaniel Silverstone1-11/+32
In preparation for supporting external environment inputs, process PATH more effectively. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-23subplotlib: Verify cleanup function argument supportDaniel Silverstone4-10/+12
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-17fix: comparison with a slice of outputLars Wirzenius1-1/+1
2021-01-16Merge branch 'vfs' into 'main'Lars Wirzenius6-173/+3
Resources - virtual filesystem See merge request larswirzenius/subplot!122
2021-01-16chore: Cleanups from !118Daniel Silverstone2-2/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-01-10subplotlib: Move steplibrary into share treeDaniel Silverstone6-173/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-30subplotlib: Add runcmd step libraryDaniel Silverstone6-1/+1061
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-30subplotlib: Use open_write() and fix bug in remember_metadataDaniel Silverstone1-14/+12
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-30subplotlib: Add open_write() to Datadir implDaniel Silverstone1-0/+12
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-30subplotlib: Move canonicalise_filename into Datadir implDaniel Silverstone2-35/+35
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-29subplotlib: Add files step library, with testsDaniel Silverstone6-1/+693
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-29subplotlib: Permit non-unit returns from context.with{,_mut}Daniel Silverstone1-4/+4
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-28subplotlib: Trivial datadir supportDaniel Silverstone7-0/+153
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-28subplotlib: Rework contextelement to be able to register other elementsDaniel Silverstone5-31/+53
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-27subplotlib: Support entry/exit of scenario and stepsDaniel Silverstone1-15/+123
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-26subplotlib: Force explicit registration of contextsDaniel Silverstone2-10/+78
In order to move toward scenario contexts being told about step entry/exit etc, require explicit registration of context types, in a way which can only be done before the scenario starts. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-26subplotlib: Add ContextElement traitDaniel Silverstone1-8/+40
In order to begin to permit context elements to handle step changes etc, this introduces a trait which can be used to track scenarios. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-21rust: Handle poison differently for cleanupsDaniel Silverstone2-11/+11
When cleanup functions are run, permit them to run with poisoned contexts. Cleanup functions will have to be resilient to this risk. If cleanup functions fail then the test will panic properly. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-21subplotlib: Enable catching of panicsDaniel Silverstone2-2/+22
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-21subplotlib: Support direct calling of other stepsDaniel Silverstone3-4/+14
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-21subplotlib: use state for contextDaniel Silverstone4-48/+79
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-21rust: Switch to a neater module based step function deriveDaniel Silverstone1-9/+9
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-12-21rust: Use commentsafe filter in rust templateDaniel Silverstone1-3/+13
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>