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