diff options
Diffstat (limited to 't/sbom')
| -rw-r--r-- | t/sbom/license-file-bar.test | 6 | ||||
| -rw-r--r-- | t/sbom/license-file-foo.test | 4 | ||||
| -rw-r--r-- | t/sbom/license-isc.test | 4 | ||||
| -rw-r--r-- | t/sbom/license-malformed-token.test | 5 | ||||
| -rw-r--r-- | t/sbom/license-noassertion.test | 6 | ||||
| -rw-r--r-- | t/sbom/source-tag-bar.test | 6 | ||||
| -rw-r--r-- | t/sbom/source-tag-foo.test | 4 |
7 files changed, 35 insertions, 0 deletions
diff --git a/t/sbom/license-file-bar.test b/t/sbom/license-file-bar.test new file mode 100644 index 000000000000..6b4f0e6f6ff2 --- /dev/null +++ b/t/sbom/license-file-bar.test @@ -0,0 +1,6 @@ +PackageSearchPath: lib1 +WantedFlags: dump-license-file +Query: bar +ExpectedStdout: foo: https://foo.bar/foo/COPYING +ExpectedStdout: bar: +MatchStdout: partial diff --git a/t/sbom/license-file-foo.test b/t/sbom/license-file-foo.test new file mode 100644 index 000000000000..830b294d824a --- /dev/null +++ b/t/sbom/license-file-foo.test @@ -0,0 +1,4 @@ +PackageSearchPath: lib1 +WantedFlags: dump-license-file +Query: foo +ExpectedStdout: foo: https://foo.bar/foo/COPYING diff --git a/t/sbom/license-isc.test b/t/sbom/license-isc.test new file mode 100644 index 000000000000..c6867451bffd --- /dev/null +++ b/t/sbom/license-isc.test @@ -0,0 +1,4 @@ +PackageSearchPath: lib1 +WantedFlags: dump-license +Query: foo +ExpectedStdout: foo: ISC diff --git a/t/sbom/license-malformed-token.test b/t/sbom/license-malformed-token.test new file mode 100644 index 000000000000..a89d9c0a9a2d --- /dev/null +++ b/t/sbom/license-malformed-token.test @@ -0,0 +1,5 @@ +PackageSearchPath: lib1 +WantedFlags: dump-license +Query: license-malformed +ExpectedStdout: license-malformed: MIT ISC +ExpectedExitCode: 0 diff --git a/t/sbom/license-noassertion.test b/t/sbom/license-noassertion.test new file mode 100644 index 000000000000..927146982e8a --- /dev/null +++ b/t/sbom/license-noassertion.test @@ -0,0 +1,6 @@ +PackageSearchPath: lib1 +WantedFlags: dump-license +Query: bar +ExpectedStdout: bar: NOASSERTION +ExpectedStdout: foo: ISC +MatchStdout: partial diff --git a/t/sbom/source-tag-bar.test b/t/sbom/source-tag-bar.test new file mode 100644 index 000000000000..f8190d4d0769 --- /dev/null +++ b/t/sbom/source-tag-bar.test @@ -0,0 +1,6 @@ +PackageSearchPath: lib1 +WantedFlags: dump-source +Query: bar +ExpectedStdout: foo: https://foo.bar/foo +ExpectedStdout: bar: +MatchStdout: partial diff --git a/t/sbom/source-tag-foo.test b/t/sbom/source-tag-foo.test new file mode 100644 index 000000000000..f21491e43764 --- /dev/null +++ b/t/sbom/source-tag-foo.test @@ -0,0 +1,4 @@ +PackageSearchPath: lib1 +WantedFlags: dump-source +Query: foo +ExpectedStdout: foo: https://foo.bar/foo |
