diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-27 20:38:17 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-27 20:38:17 -0600 |
| commit | aec641a6175997b1779c7e41513f9c893dcd4afb (patch) | |
| tree | 5b33f9242f67164bb221797ca3d331412bf8ed4d /spec | |
| parent | 494314d95c111568df3e733f03955a0382a36a11 (diff) | |
Add tests for each report version when scanning conan projects
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/fixtures/expected/c/conan/v1.0.json | 23 | ||||
| -rw-r--r-- | spec/fixtures/expected/c/conan/v1.1.json | 30 | ||||
| -rw-r--r-- | spec/fixtures/expected/c/conan/v2.0.json | 24 | ||||
| -rw-r--r-- | spec/fixtures/expected/c/conan/v2.1.json | 21 | ||||
| -rw-r--r-- | spec/integration/c/conan_spec.rb | 2 |
5 files changed, 100 insertions, 0 deletions
diff --git a/spec/fixtures/expected/c/conan/v1.0.json b/spec/fixtures/expected/c/conan/v1.0.json new file mode 100644 index 0000000..20d3c37 --- /dev/null +++ b/spec/fixtures/expected/c/conan/v1.0.json @@ -0,0 +1,23 @@ +{ + "licenses": [ + { + "count": 1, + "name": "New BSD" + } + ], + "dependencies": [ + { + "license": { + "name": "New BSD", + "url": "http://opensource.org/licenses/BSD-3-Clause" + }, + "dependency": { + "name": "zstd", + "description": "", + "pathes": [ + "." + ] + } + } + ] +}
\ No newline at end of file diff --git a/spec/fixtures/expected/c/conan/v1.1.json b/spec/fixtures/expected/c/conan/v1.1.json new file mode 100644 index 0000000..fe746ed --- /dev/null +++ b/spec/fixtures/expected/c/conan/v1.1.json @@ -0,0 +1,30 @@ +{ + "version": "1.1", + "licenses": [ + { + "count": 1, + "name": "New BSD" + } + ], + "dependencies": [ + { + "licenses": [ + { + "name": "New BSD", + "url": "http://opensource.org/licenses/BSD-3-Clause" + } + ], + "license": { + "name": "New BSD", + "url": "http://opensource.org/licenses/BSD-3-Clause" + }, + "dependency": { + "name": "zstd", + "description": "", + "pathes": [ + "." + ] + } + } + ] +}
\ No newline at end of file diff --git a/spec/fixtures/expected/c/conan/v2.0.json b/spec/fixtures/expected/c/conan/v2.0.json new file mode 100644 index 0000000..862a083 --- /dev/null +++ b/spec/fixtures/expected/c/conan/v2.0.json @@ -0,0 +1,24 @@ +{ + "version": "2.0", + "licenses": [ + { + "id": "BSD-3-Clause", + "name": "BSD 3-Clause \"New\" or \"Revised\" License", + "url": "https://opensource.org/licenses/BSD-3-Clause", + "count": 1 + } + ], + "dependencies": [ + { + "name": "zstd", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "BSD-3-Clause" + ] + } + ] +}
\ No newline at end of file diff --git a/spec/fixtures/expected/c/conan/v2.1.json b/spec/fixtures/expected/c/conan/v2.1.json new file mode 100644 index 0000000..cc01320 --- /dev/null +++ b/spec/fixtures/expected/c/conan/v2.1.json @@ -0,0 +1,21 @@ +{ + "version": "2.1", + "licenses": [ + { + "id": "BSD-3-Clause", + "name": "BSD 3-Clause \"New\" or \"Revised\" License", + "url": "https://opensource.org/licenses/BSD-3-Clause" + } + ], + "dependencies": [ + { + "name": "zstd", + "version": "1.4.4", + "package_manager": "conan", + "path": "conanfile.txt", + "licenses": [ + "BSD-3-Clause" + ] + } + ] +}
\ No newline at end of file diff --git a/spec/integration/c/conan_spec.rb b/spec/integration/c/conan_spec.rb index b8375e0..3c2ac45 100644 --- a/spec/integration/c/conan_spec.rb +++ b/spec/integration/c/conan_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' RSpec.describe "conan" do + include_examples "each report version", "c", "conan" + context "when scanning a C++ project" do subject { runner.scan(env: env) } |
