2022-01-24 09:57:40 +01:00
|
|
|
Feature: `osc getbinaries <project> <package> <repo> <arch>` command
|
|
|
|
|
|
|
|
|
|
|
|
# common steps for all scenarios
|
|
|
|
Background:
|
|
|
|
Given I set working directory to "{context.osc.temp}"
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <package> <repo> <arch>`
|
|
|
|
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64"
|
|
|
|
Then directory listing of "{context.osc.temp}/binaries/" is
|
|
|
|
"""
|
2022-12-05 15:10:50 +01:00
|
|
|
multibuild-pkg-1-1.x86_64.rpm
|
2022-01-24 09:57:40 +01:00
|
|
|
_buildenv
|
|
|
|
_statistics
|
|
|
|
rpmlint.log
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <package> <repo> <arch> --multibuild-package=<flavor>`
|
|
|
|
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 --multibuild-package=flavor1"
|
|
|
|
# the option is allowed only in a package checkout
|
|
|
|
Then the exit code is 2
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <package>:<flavor> <repo> <arch>`
|
|
|
|
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg:flavor1 standard x86_64"
|
|
|
|
Then directory listing of "{context.osc.temp}/binaries/" is
|
|
|
|
"""
|
2022-12-05 15:10:50 +01:00
|
|
|
multibuild-pkg-flavor1-1-1.x86_64.rpm
|
2022-01-24 09:57:40 +01:00
|
|
|
_buildenv
|
|
|
|
_statistics
|
|
|
|
rpmlint.log
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <package>:<flavor> <repo> <arch> --source`
|
|
|
|
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg:flavor1 standard x86_64 --source"
|
|
|
|
Then directory listing of "{context.osc.temp}/binaries/" is
|
|
|
|
"""
|
2022-12-05 15:10:50 +01:00
|
|
|
multibuild-pkg-1-1.src.rpm
|
|
|
|
multibuild-pkg-flavor1-1-1.x86_64.rpm
|
2022-01-24 09:57:40 +01:00
|
|
|
_buildenv
|
|
|
|
_statistics
|
|
|
|
rpmlint.log
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <package>:<flavor> <repo> <arch> --debuginfo`
|
|
|
|
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg:flavor1 standard x86_64 --debuginfo"
|
|
|
|
Then directory listing of "{context.osc.temp}/binaries/" is
|
|
|
|
"""
|
2022-12-05 15:10:50 +01:00
|
|
|
multibuild-pkg-flavor1-1-1.x86_64.rpm
|
|
|
|
multibuild-pkg-flavor1-debuginfo-1-1.x86_64.rpm
|
2022-01-24 09:57:40 +01:00
|
|
|
_buildenv
|
|
|
|
_statistics
|
|
|
|
rpmlint.log
|
|
|
|
"""
|