functional2/lang: redesign of toml interface #851
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#851
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue description
Currently, when using a
test.toml
file to declare a lang test, all runners are always run on all in files.This is inconvenient to unusable, when e.g. a singular in file requires flags, or some of the tests should run and others should fail.
Additionally, the current format of naming a test introduces some boilerplate that can be avoided.
Proposed solution
To avoid name duplication, base declaration should move from a dictionary to a list.
i.e. instead of declaring a test as
[test-name] ...
it would be declared using[[test]] ...
.Providing a name should be optional. If not given the runner-name should be used.
the combination of the name and the in file suffix (default: ''; "in-my-test" -> '-my-test) must be unique. If it is not unique using the default values, the name attribute must be set.
A new optional flag should be added to mark a test as being a matrix test or not, defaulting to non-matrix.
(matrix tests being run on multiple files, while non matrix tests run on singular ones)
In addition to that, an optional
in
attribute should be added, stating on what nix file to run.For single file tests, it must be a singular string, defaulting to
in.nix
when not provided.For matrix tests, it must be a list of strings, defaulting to all present
in-$suffix.nix
files.the
flags
andextra-files
attributes should be kept as-iscc: @piegames
This issue was mentioned on Gerrit on the following CLs: