mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-14 08:16:15 +01:00
71 lines
2.5 KiB
Gherkin
71 lines
2.5 KiB
Gherkin
Feature: `osc getbinaries <project> <repo> <arch>` command
|
|
|
|
|
|
# common steps for all scenarios
|
|
Background:
|
|
Given I set working directory to "{context.osc.temp}"
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <repo> <arch>`
|
|
When I execute osc with args "getbinaries test:factory standard x86_64"
|
|
Then directory tree in "{context.osc.temp}/binaries/" is
|
|
"""
|
|
multibuild-pkg-1-1.x86_64.rpm
|
|
multibuild-pkg-flavor1-1-1.x86_64.rpm
|
|
multibuild-pkg-flavor2-1-1.x86_64.rpm
|
|
test-pkgA-3-1.noarch.rpm
|
|
test-pkgB-2-1.noarch.rpm
|
|
multibuild-pkg/_buildenv
|
|
multibuild-pkg/_statistics
|
|
multibuild-pkg/rpmlint.log
|
|
multibuild-pkg:flavor1/_buildenv
|
|
multibuild-pkg:flavor1/_statistics
|
|
multibuild-pkg:flavor1/rpmlint.log
|
|
multibuild-pkg:flavor2/_buildenv
|
|
multibuild-pkg:flavor2/_statistics
|
|
multibuild-pkg:flavor2/rpmlint.log
|
|
test-pkgA/_buildenv
|
|
test-pkgA/_statistics
|
|
test-pkgA/rpmlint.log
|
|
test-pkgB/_buildenv
|
|
test-pkgB/_statistics
|
|
test-pkgB/rpmlint.log
|
|
"""
|
|
|
|
|
|
Scenario: Run `osc getbinaries <project> <repo> <arch> --multibuild-package=<flavor>`
|
|
When I execute osc with args "getbinaries test:factory 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> <repo> <arch> --debuginfo`
|
|
When I execute osc with args "getbinaries test:factory standard x86_64 --debuginfo"
|
|
Then directory tree in "{context.osc.temp}/binaries/" is
|
|
"""
|
|
multibuild-pkg-1-1.x86_64.rpm
|
|
multibuild-pkg-debuginfo-1-1.x86_64.rpm
|
|
multibuild-pkg-debugsource-1-1.x86_64.rpm
|
|
multibuild-pkg-flavor1-1-1.x86_64.rpm
|
|
multibuild-pkg-flavor1-debuginfo-1-1.x86_64.rpm
|
|
multibuild-pkg-flavor2-1-1.x86_64.rpm
|
|
multibuild-pkg-flavor2-debuginfo-1-1.x86_64.rpm
|
|
test-pkgA-3-1.noarch.rpm
|
|
test-pkgB-2-1.noarch.rpm
|
|
multibuild-pkg/_buildenv
|
|
multibuild-pkg/_statistics
|
|
multibuild-pkg/rpmlint.log
|
|
multibuild-pkg:flavor1/_buildenv
|
|
multibuild-pkg:flavor1/_statistics
|
|
multibuild-pkg:flavor1/rpmlint.log
|
|
multibuild-pkg:flavor2/_buildenv
|
|
multibuild-pkg:flavor2/_statistics
|
|
multibuild-pkg:flavor2/rpmlint.log
|
|
test-pkgA/_buildenv
|
|
test-pkgA/_statistics
|
|
test-pkgA/rpmlint.log
|
|
test-pkgB/_buildenv
|
|
test-pkgB/_statistics
|
|
test-pkgB/rpmlint.log
|
|
"""
|