-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve 'build' and 'buildinfo' commands by uploading *.inc files to …
…OBS for parsing BuildRequires (boo#1221340)
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Feature: `osc buildinfo` command | ||
|
||
|
||
Scenario: Run `osc buildinfo` on a package with a .inc file | ||
Given I set working directory to "{context.osc.temp}" | ||
And I execute osc with args "co test:factory/test-pkgA" | ||
And I set working directory to "{context.osc.temp}/test:factory/test-pkgA" | ||
And I copy file "{context.fixtures}/pac/test-pkgA-3-inc.spec" to "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.spec" | ||
And I copy file "{context.fixtures}/pac/test-pkgA-3-inc.inc" to "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.inc" | ||
When I execute osc with args "buildinfo" | ||
Then the exit code is 0 | ||
And stdout contains "<error>unresolvable: nothing provides DOES-NOT-EXIST</error>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BuildRequires: DOES-NOT-EXIST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
%include test-pkgA.inc | ||
|
||
Name: test-pkgA | ||
Version: 4 | ||
Release: 1 | ||
License: GPL-2.0 | ||
Summary: Test package | ||
URL: https://example.com/test-package/ | ||
|
||
|
||
BuildArch: noarch | ||
|
||
|
||
%description | ||
desc | ||
|
||
|
||
%prep | ||
|
||
|
||
%install | ||
|
||
|
||
%files | ||
|
||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters