diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-08-04 14:32:22 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-08-04 14:32:22 -0500 |
commit | f90a14d5d723c5d2b87f2eaa19f441dec33bb9b2 (patch) | |
tree | e0abd76b6ebd9adcc60732d532cb68c512b0c2d1 /testcase.go | |
parent | a0b020a78eb0b33965c59460fc093c6959216e44 (diff) | |
download | deb-planr-f90a14d5d723c5d2b87f2eaa19f441dec33bb9b2.tar.xz deb-planr-f90a14d5d723c5d2b87f2eaa19f441dec33bb9b2.zip |
Prototyped build pipeline
Diffstat (limited to 'testcase.go')
-rw-r--r-- | testcase.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testcase.go b/testcase.go index 02db738..70c188e 100644 --- a/testcase.go +++ b/testcase.go @@ -5,7 +5,13 @@ type TestResult struct { } type TestCase struct { + // absolute path to the test case configuration Path string + // The canonical name is a semantically meaningful name + // guaranteed to be unique among the tests + // Obtained by replacing separators in the relative path of the + // configuration with dots. The `toml` extension is also stripped. + // rubric/alpha/beta/tc1.toml -> alpha.beta.tc1 Cname string Config TestCaseConfig } @@ -19,3 +25,7 @@ func (tc TestCase) ContainsAdapter(name string) bool { return false; } + +func (tc TestCase) AdapterConfig(name string) InheritableConfig { + return tc.Config.adapters_[name] +} |