1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

behave: Rename test projects, consistently use the 'test:' prefix

This commit is contained in:
Daniel Mach 2022-12-08 09:52:50 +01:00
parent 074abb400c
commit e3a9c3d60a
16 changed files with 117 additions and 116 deletions

View File

@ -18,17 +18,17 @@ OSC="osc -A https://localhost"
# create projects
$OSC api -X PUT '/source/openSUSE.org/_meta' --file "$FIXTURES_DIR/prj/openSUSE.org.xml"
$OSC api -X PUT '/source/devel/_meta' --file "$FIXTURES_DIR/prj/devel.xml"
$OSC api -X PUT '/source/release/_meta' --file "$FIXTURES_DIR/prj/release.xml"
$OSC api -X PUT '/source/openSUSE:Factory/_meta' --file "$FIXTURES_DIR/prj/openSUSE_Factory.xml"
$OSC api -X PUT '/source/test:devel/_meta' --file "$FIXTURES_DIR/prj/test_devel.xml"
$OSC api -X PUT '/source/test:factory/_meta' --file "$FIXTURES_DIR/prj/test_factory.xml"
$OSC api -X PUT '/source/test:release/_meta' --file "$FIXTURES_DIR/prj/test_release.xml"
$OSC api -X PUT '/source/home:Admin/_meta' --file "$FIXTURES_DIR/prj/home_Admin.xml"
# create package 'openSUSE:Factory/test-pkgA'
# create package 'test:factory/test-pkgA'
TMP_DIR=$(mktemp -d)
cd "$TMP_DIR"
$OSC checkout openSUSE:Factory
$OSC checkout test:factory
cd "$_"
$OSC mkpac test-pkgA
@ -50,11 +50,11 @@ $OSC commit -m 'Version 3'
rm -rf "$TMP_DIR"
# create package 'openSUSE:Factory/test-pkgB'
# create package 'test:factory/test-pkgB'
TMP_DIR=$(mktemp -d)
cd "$TMP_DIR"
$OSC checkout openSUSE:Factory
$OSC checkout test:factory
cd "$_"
$OSC mkpac test-pkgB
@ -72,11 +72,11 @@ $OSC commit -m 'Version 2'
rm -rf "$TMP_DIR"
# create package 'openSUSE:Factory/multibuild-pkg'
# create package 'test:factory/multibuild-pkg'
TMP_DIR=$(mktemp -d)
cd "$TMP_DIR"
$OSC checkout openSUSE:Factory
$OSC checkout test:factory
cd "$_"
$OSC mkpac multibuild-pkg
@ -92,11 +92,11 @@ $OSC commit -m 'Initial commit'
rm -rf "$TMP_DIR"
# create package 'devel/test-pkgA'
# create package 'test:devel/test-pkgA'
TMP_DIR=$(mktemp -d)
cd "$TMP_DIR"
$OSC checkout devel
$OSC checkout test:devel
cd "$_"
$OSC mkpac test-pkgA
@ -106,4 +106,4 @@ cd "$_"
$OSC commit -m 'Initial commit'
# set the devel project
$OSC setdevelproject openSUSE:Factory/test-pkgA devel/test-pkgA
$OSC setdevelproject test:factory/test-pkgA test:devel/test-pkgA

View File

@ -39,43 +39,43 @@ function upload_rpms() {
}
# build package 'openSUSE:Factory/test-pkgA'
# build package 'test:factory/test-pkgA'
TMP_DIR=$(mktemp -d)
rpmbuild -ba "$FIXTURES_DIR/pac/test-pkgA-3.spec" --define "_topdir $TMP_DIR"
upload_rpms "$TMP_DIR" openSUSE:Factory standard i586 test-pkgA
upload_rpms "$TMP_DIR" openSUSE:Factory standard x86_64 test-pkgA
upload_rpms "$TMP_DIR" test:factory standard i586 test-pkgA
upload_rpms "$TMP_DIR" test:factory standard x86_64 test-pkgA
rm -rf "$TMP_DIR"
# build package 'openSUSE:Factory/test-pkgB'
# build package 'test:factory/test-pkgB'
TMP_DIR=$(mktemp -d)
rpmbuild -ba "$FIXTURES_DIR/pac/test-pkgB-2.spec" --define "_topdir $TMP_DIR"
upload_rpms "$TMP_DIR" openSUSE:Factory standard i586 test-pkgB
upload_rpms "$TMP_DIR" openSUSE:Factory standard x86_64 test-pkgB
upload_rpms "$TMP_DIR" test:factory standard i586 test-pkgB
upload_rpms "$TMP_DIR" test:factory standard x86_64 test-pkgB
rm -rf "$TMP_DIR"
# build package 'openSUSE:Factory/multibuild-pkg'
# build package 'test:factory/multibuild-pkg'
TMP_DIR=$(mktemp -d)
rpmbuild -ba "$FIXTURES_DIR/pac/multibuild-pkg-1.spec" --define "_topdir $TMP_DIR" --target=x86_64,i586 --define "flavor %{nil}"
upload_rpms "$TMP_DIR" openSUSE:Factory standard i586 multibuild-pkg
upload_rpms "$TMP_DIR" openSUSE:Factory standard x86_64 multibuild-pkg
upload_rpms "$TMP_DIR" test:factory standard i586 multibuild-pkg
upload_rpms "$TMP_DIR" test:factory standard x86_64 multibuild-pkg
rm -rf "$TMP_DIR"
# build package 'openSUSE:Factory/multibuild-pkg:flavor1'
# build package 'test:factory/multibuild-pkg:flavor1'
TMP_DIR=$(mktemp -d)
rpmbuild -ba "$FIXTURES_DIR/pac/multibuild-pkg-1.spec" --define "_topdir $TMP_DIR" --target=x86_64,i586 --define "flavor flavor1"
upload_rpms "$TMP_DIR" openSUSE:Factory standard i586 multibuild-pkg:flavor1
upload_rpms "$TMP_DIR" openSUSE:Factory standard x86_64 multibuild-pkg:flavor1
upload_rpms "$TMP_DIR" test:factory standard i586 multibuild-pkg:flavor1
upload_rpms "$TMP_DIR" test:factory standard x86_64 multibuild-pkg:flavor1
rm -rf "$TMP_DIR"
# build package 'openSUSE:Factory/multibuild-pkg:flavor2'
# build package 'test:factory/multibuild-pkg:flavor2'
TMP_DIR=$(mktemp -d)
rpmbuild -ba "$FIXTURES_DIR/pac/multibuild-pkg-1.spec" --define "_topdir $TMP_DIR" --target=x86_64,i586 --define "flavor flavor2"
upload_rpms "$TMP_DIR" openSUSE:Factory standard i586 multibuild-pkg:flavor2
upload_rpms "$TMP_DIR" openSUSE:Factory standard x86_64 multibuild-pkg:flavor2
upload_rpms "$TMP_DIR" test:factory standard i586 multibuild-pkg:flavor2
upload_rpms "$TMP_DIR" test:factory standard x86_64 multibuild-pkg:flavor2
rm -rf "$TMP_DIR"
@ -91,7 +91,7 @@ FILES="_buildenv _statistics rpmlint.log"
for ARCH in $ARCHES; do
for PACKAGE in $PACKAGES; do
for FILE in $FILES; do
touch /srv/obs/build/openSUSE:Factory/standard/$ARCH/$PACKAGE/$FILE
touch /srv/obs/build/test:factory/standard/$ARCH/$PACKAGE/$FILE
done
done
done

View File

@ -3,9 +3,9 @@ Feature: `osc add` command
Scenario: Run `osc add` on a new file in a package
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout openSUSE:Factory test-pkgA"
And I set working directory to "{context.osc.temp}/openSUSE:Factory/test-pkgA"
And I copy file "{context.fixtures}/pac/test-pkgA-1.spec" to "{context.osc.temp}/openSUSE:Factory/test-pkgA/new_file"
And I execute osc with args "checkout 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-1.spec" to "{context.osc.temp}/test:factory/test-pkgA/new_file"
And I execute osc with args "status --verbose"
And stdout is
"""

View File

@ -3,59 +3,59 @@ Feature: `osc checkout` command
Scenario: Run `osc checkout` on a project
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory"
Then directory "{context.osc.temp}/openSUSE:Factory" exists
And directory "{context.osc.temp}/openSUSE:Factory/.osc" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgA" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgA/.osc" exists
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.spec" exists
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.changes" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgB" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgB/.osc" exists
And file "{context.osc.temp}/openSUSE:Factory/test-pkgB/test-pkgB.spec" exists
And file "{context.osc.temp}/openSUSE:Factory/test-pkgB/test-pkgB.changes" exists
When I execute osc with args "checkout test:factory"
Then directory "{context.osc.temp}/test:factory" exists
And directory "{context.osc.temp}/test:factory/.osc" exists
And directory "{context.osc.temp}/test:factory/test-pkgA" exists
And directory "{context.osc.temp}/test:factory/test-pkgA/.osc" exists
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.spec" exists
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.changes" exists
And directory "{context.osc.temp}/test:factory/test-pkgB" exists
And directory "{context.osc.temp}/test:factory/test-pkgB/.osc" exists
And file "{context.osc.temp}/test:factory/test-pkgB/test-pkgB.spec" exists
And file "{context.osc.temp}/test:factory/test-pkgB/test-pkgB.changes" exists
Scenario: Run `osc checkout` on a package
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory test-pkgA"
Then directory "{context.osc.temp}/openSUSE:Factory" exists
And directory "{context.osc.temp}/openSUSE:Factory/.osc" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgA" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgA/.osc" exists
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.spec" exists
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.changes" exists
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgB" does not exist
When I execute osc with args "checkout test:factory test-pkgA"
Then directory "{context.osc.temp}/test:factory" exists
And directory "{context.osc.temp}/test:factory/.osc" exists
And directory "{context.osc.temp}/test:factory/test-pkgA" exists
And directory "{context.osc.temp}/test:factory/test-pkgA/.osc" exists
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.spec" exists
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.changes" exists
And directory "{context.osc.temp}/test:factory/test-pkgB" does not exist
# Unlike other checkouts, file checkout doesn't create any subdirs
# and puts files directly in the working directory.
Scenario: Run `osc checkout` on a file
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory test-pkgA test-pkgA.spec"
Then directory "{context.osc.temp}/openSUSE:Factory" does not exist
When I execute osc with args "checkout test:factory test-pkgA test-pkgA.spec"
Then directory "{context.osc.temp}/test:factory" does not exist
And file "{context.osc.temp}/test-pkgA.spec" exists
And file "{context.osc.temp}/test-pkgA.changes" does not exist
Scenario: Run `osc checkout` on a package, use a file size limit
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory test-pkgA --limit-size=200"
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.spec" does not exist
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.changes" exists
When I execute osc with args "checkout test:factory test-pkgA --limit-size=200"
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.spec" does not exist
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.changes" exists
Scenario: Run `osc checkout` on a package in a specified revision
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory test-pkgA --revision=2"
Then file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.spec" is identical to "{context.fixtures}/pac/test-pkgA-2.spec"
And file "{context.osc.temp}/openSUSE:Factory/test-pkgA/test-pkgA.changes" is identical to "{context.fixtures}/pac/test-pkgA-2.changes"
When I execute osc with args "checkout test:factory test-pkgA --revision=2"
Then file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.spec" is identical to "{context.fixtures}/pac/test-pkgA-2.spec"
And file "{context.osc.temp}/test:factory/test-pkgA/test-pkgA.changes" is identical to "{context.fixtures}/pac/test-pkgA-2.changes"
Scenario: Run `osc checkout` on a package, place the files in a specified output directory
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory test-pkgA --output-dir=pkgA"
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgA" does not exist
When I execute osc with args "checkout test:factory test-pkgA --output-dir=pkgA"
And directory "{context.osc.temp}/test:factory/test-pkgA" does not exist
And directory "{context.osc.temp}/pkgA" exists
And directory "{context.osc.temp}/pkgA/.osc" exists
And file "{context.osc.temp}/pkgA/test-pkgA.spec" exists
@ -67,8 +67,8 @@ Scenario: Run `osc checkout` on a package, place the files in a specified output
# One would expect the package to go to the working dir.
Scenario: Run `osc checkout` on a package, place the files in the working directory
Given I set working directory to "{context.osc.temp}"
When I execute osc with args "checkout openSUSE:Factory test-pkgA --current-dir"
And directory "{context.osc.temp}/openSUSE:Factory/test-pkgA" does not exist
When I execute osc with args "checkout test:factory test-pkgA --current-dir"
And directory "{context.osc.temp}/test:factory/test-pkgA" does not exist
And directory "{context.osc.temp}/.osc" exists
And directory "{context.osc.temp}/test-pkgA/.osc" exists
And file "{context.osc.temp}/test-pkgA/test-pkgA.spec" exists

View File

@ -7,7 +7,7 @@ Background:
Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file>`
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 multibuild-pkg-1-1.x86_64.rpm"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64 multibuild-pkg-1-1.x86_64.rpm"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-1-1.x86_64.rpm
@ -15,13 +15,13 @@ Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file>`
Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file> --multibuild-package=<flavor>`
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 multibuild-pkg-flavor1-1-1.x86_64.rpm --multibuild-package=flavor1"
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"
# 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
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg:flavor1 standard x86_64 multibuild-pkg-flavor1-1-1.x86_64.rpm"
When I execute osc with args "getbinaries test:factory multibuild-pkg:flavor1 standard x86_64 multibuild-pkg-flavor1-1-1.x86_64.rpm"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-flavor1-1-1.x86_64.rpm
@ -29,14 +29,14 @@ Scenario: Run `osc getbinaries <project> <package>:<flavor> <repo> <arch> <file>
Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file>` where file is a source package
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 multibuild-pkg-1-1.src.rpm"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64 multibuild-pkg-1-1.src.rpm"
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
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 multibuild-pkg-1-1.src.rpm --source"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64 multibuild-pkg-1-1.src.rpm --source"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-1-1.src.rpm
@ -44,14 +44,14 @@ Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file> --source
Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file>` where file is a debuginfo package
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 multibuild-pkg-debuginfo-1-1.x86_64.rpm"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64 multibuild-pkg-debuginfo-1-1.x86_64.rpm"
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
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 multibuild-pkg-debuginfo-1-1.x86_64.rpm --debuginfo"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64 multibuild-pkg-debuginfo-1-1.x86_64.rpm --debuginfo"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-debuginfo-1-1.x86_64.rpm
@ -59,7 +59,7 @@ Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file> --debugi
Scenario: Run `osc getbinaries <project> <package> <repo> <arch> <file>` where file is a log file
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64 rpmlint.log"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64 rpmlint.log"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
rpmlint.log

View File

@ -7,7 +7,7 @@ Background:
Scenario: Run `osc getbinaries <project> <package> <repo> <arch>`
When I execute osc with args "getbinaries openSUSE:Factory multibuild-pkg standard x86_64"
When I execute osc with args "getbinaries test:factory multibuild-pkg standard x86_64"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-1-1.x86_64.rpm
@ -18,13 +18,13 @@ Scenario: Run `osc getbinaries <project> <package> <repo> <arch>`
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"
When I execute osc with args "getbinaries test: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"
When I execute osc with args "getbinaries test:factory multibuild-pkg:flavor1 standard x86_64"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-flavor1-1-1.x86_64.rpm
@ -35,7 +35,7 @@ Scenario: Run `osc getbinaries <project> <package>:<flavor> <repo> <arch>`
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"
When I execute osc with args "getbinaries test:factory multibuild-pkg:flavor1 standard x86_64 --source"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-1-1.src.rpm
@ -47,7 +47,7 @@ Scenario: Run `osc getbinaries <project> <package>:<flavor> <repo> <arch> --sour
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"
When I execute osc with args "getbinaries test:factory multibuild-pkg:flavor1 standard x86_64 --debuginfo"
Then directory listing of "{context.osc.temp}/binaries/" is
"""
multibuild-pkg-flavor1-1-1.x86_64.rpm

View File

@ -7,7 +7,7 @@ Background:
Scenario: Run `osc getbinaries <project> <repo> <arch>`
When I execute osc with args "getbinaries openSUSE:Factory standard x86_64"
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
@ -34,13 +34,13 @@ Scenario: Run `osc getbinaries <project> <repo> <arch>`
Scenario: Run `osc getbinaries <project> <repo> <arch> --multibuild-package=<flavor>`
When I execute osc with args "getbinaries openSUSE:Factory standard x86_64 --multibuild-package=flavor1"
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 openSUSE:Factory standard x86_64 --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

View File

@ -4,13 +4,13 @@ Feature: `osc getbinaries <repo> <arch>` command from a package checkout
# common steps for all scenarios
Background:
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout openSUSE:Factory multibuild-pkg"
And I set working directory to "{context.osc.temp}/openSUSE:Factory/multibuild-pkg"
And I execute osc with args "checkout test:factory multibuild-pkg"
And I set working directory to "{context.osc.temp}/test:factory/multibuild-pkg"
Scenario: Run `osc getbinaries <repo> <arch>` from a package checkout
When I execute osc with args "getbinaries standard x86_64"
Then directory listing of "{context.osc.temp}/openSUSE:Factory/multibuild-pkg/binaries/" is
Then directory listing of "{context.osc.temp}/test:factory/multibuild-pkg/binaries/" is
"""
multibuild-pkg-1-1.x86_64.rpm
_buildenv
@ -21,7 +21,7 @@ Scenario: Run `osc getbinaries <repo> <arch>` from a package checkout
Scenario: Run `osc getbinaries <repo> <arch> --multibuild-package=<flavor>` from a package checkout
When I execute osc with args "getbinaries standard x86_64 --multibuild-package=flavor1"
Then directory listing of "{context.osc.temp}/openSUSE:Factory/multibuild-pkg/binaries/" is
Then directory listing of "{context.osc.temp}/test:factory/multibuild-pkg/binaries/" is
"""
multibuild-pkg-flavor1-1-1.x86_64.rpm
_buildenv
@ -32,7 +32,7 @@ Scenario: Run `osc getbinaries <repo> <arch> --multibuild-package=<flavor>` from
Scenario: Run `osc getbinaries <repo> <arch> --debuginfo` from a package checkout
When I execute osc with args "getbinaries standard x86_64 --debuginfo"
Then directory listing of "{context.osc.temp}/openSUSE:Factory/multibuild-pkg/binaries/" is
Then directory listing of "{context.osc.temp}/test:factory/multibuild-pkg/binaries/" is
"""
multibuild-pkg-1-1.x86_64.rpm
multibuild-pkg-debuginfo-1-1.x86_64.rpm

View File

@ -4,13 +4,13 @@ Feature: `osc getbinaries <repo> <arch>` command from a project checkout
# common steps for all scenarios
Background:
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout openSUSE:Factory"
And I set working directory to "{context.osc.temp}/openSUSE:Factory"
And I execute osc with args "checkout test:factory"
And I set working directory to "{context.osc.temp}/test:factory"
Scenario: Run `osc getbinaries <repo> <arch>` from a project checkout
When I execute osc with args "getbinaries standard x86_64"
Then directory tree in "{context.osc.temp}/openSUSE:Factory/binaries/" is
Then directory tree in "{context.osc.temp}/test:factory/binaries/" is
"""
multibuild-pkg-1-1.x86_64.rpm
multibuild-pkg-flavor1-1-1.x86_64.rpm
@ -43,7 +43,7 @@ Scenario: Run `osc getbinaries <repo> <arch> --multibuild-package=<flavor>` from
Scenario: Run `osc getbinaries <repo> <arch> --sources` from a project checkout
When I execute osc with args "getbinaries standard x86_64 --sources"
Then directory tree in "{context.osc.temp}/openSUSE:Factory/binaries/" is
Then directory tree in "{context.osc.temp}/test:factory/binaries/" is
"""
multibuild-pkg-1-1.src.rpm
multibuild-pkg-1-1.x86_64.rpm
@ -75,7 +75,7 @@ Scenario: Run `osc getbinaries <repo> <arch> --sources` from a project checkout
Scenario: Run `osc getbinaries <repo> <arch> --debuginfo` from a project checkout
When I execute osc with args "getbinaries standard x86_64 --debuginfo"
Then directory tree in "{context.osc.temp}/openSUSE:Factory/binaries/" is
Then directory tree in "{context.osc.temp}/test:factory/binaries/" is
"""
multibuild-pkg-1-1.x86_64.rpm
multibuild-pkg-debuginfo-1-1.x86_64.rpm

View File

@ -4,14 +4,14 @@ Feature: `osc getbinaries <repo>` command from a project checkout
# common steps for all scenarios
Background:
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout openSUSE:Factory multibuild-pkg"
And I set working directory to "{context.osc.temp}/openSUSE:Factory/multibuild-pkg"
And I execute osc with args "checkout test:factory multibuild-pkg"
And I set working directory to "{context.osc.temp}/test:factory/multibuild-pkg"
Scenario: Run `osc getbinaries <repo>` from a package checkout
Given I set working directory to "{context.osc.temp}/openSUSE:Factory/multibuild-pkg"
Given I set working directory to "{context.osc.temp}/test:factory/multibuild-pkg"
When I execute osc with args "getbinaries standard"
Then directory listing of "{context.osc.temp}/openSUSE:Factory/multibuild-pkg/binaries/" is
Then directory listing of "{context.osc.temp}/test:factory/multibuild-pkg/binaries/" is
"""
multibuild-pkg-1-1.i586.rpm
multibuild-pkg-1-1.x86_64.rpm
@ -23,7 +23,7 @@ Scenario: Run `osc getbinaries <repo>` from a package checkout
Scenario: Run `osc getbinaries <repo> --multibuild-package=<flavor>` from a package checkout
When I execute osc with args "getbinaries standard --multibuild-package=flavor1"
Then directory listing of "{context.osc.temp}/openSUSE:Factory/multibuild-pkg/binaries/" is
Then directory listing of "{context.osc.temp}/test:factory/multibuild-pkg/binaries/" is
"""
multibuild-pkg-flavor1-1-1.i586.rpm
multibuild-pkg-flavor1-1-1.x86_64.rpm
@ -35,7 +35,7 @@ Scenario: Run `osc getbinaries <repo> --multibuild-package=<flavor>` from a pack
Scenario: Run `osc getbinaries <repo> --debuginfo` from a package checkout
When I execute osc with args "getbinaries standard --debuginfo"
Then directory listing of "{context.osc.temp}/openSUSE:Factory/multibuild-pkg/binaries/" is
Then directory listing of "{context.osc.temp}/test:factory/multibuild-pkg/binaries/" is
"""
multibuild-pkg-1-1.i586.rpm
multibuild-pkg-1-1.x86_64.rpm

View File

@ -4,13 +4,13 @@ Feature: `osc getbinaries <repo>` command from a project checkout
# common steps for all scenarios
Background:
Given I set working directory to "{context.osc.temp}"
And I execute osc with args "checkout openSUSE:Factory"
And I set working directory to "{context.osc.temp}/openSUSE:Factory"
And I execute osc with args "checkout test:factory"
And I set working directory to "{context.osc.temp}/test:factory"
Scenario: Run `osc getbinaries <repo>` from a project checkout
When I execute osc with args "getbinaries standard"
Then directory tree in "{context.osc.temp}/openSUSE:Factory/binaries/" is
Then directory tree in "{context.osc.temp}/test:factory/binaries/" is
"""
multibuild-pkg-1-1.i586.rpm
multibuild-pkg-1-1.x86_64.rpm
@ -46,7 +46,7 @@ Scenario: Run `osc getbinaries <repo> --multibuild-package=<flavor>` from a proj
Scenario: Run `osc getbinaries <repo> --sources` from a project checkout
When I execute osc with args "getbinaries standard --sources"
Then directory tree in "{context.osc.temp}/openSUSE:Factory/binaries/" is
Then directory tree in "{context.osc.temp}/test:factory/binaries/" is
"""
multibuild-pkg-1-1.i586.rpm
multibuild-pkg-1-1.src.rpm
@ -81,7 +81,7 @@ Scenario: Run `osc getbinaries <repo> --sources` from a project checkout
Scenario: Run `osc getbinaries <repo> --debuginfo` from a project checkout
When I execute osc with args "getbinaries standard --debuginfo"
Then directory tree in "{context.osc.temp}/openSUSE:Factory/binaries/" is
Then directory tree in "{context.osc.temp}/test:factory/binaries/" is
"""
multibuild-pkg-1-1.i586.rpm
multibuild-pkg-1-1.x86_64.rpm

View File

@ -5,16 +5,16 @@ Scenario: Run `osc list` with no arguments to display all projects
When I execute osc with args "list"
Then stdout is
"""
devel
home:Admin
openSUSE.org
openSUSE:Factory
release
test:devel
test:factory
test:release
"""
Scenario: Run `osc list` on a project to display project packages
When I execute osc with args "list openSUSE:Factory"
When I execute osc with args "list test:factory"
Then stdout is
"""
multibuild-pkg
@ -26,7 +26,7 @@ Scenario: Run `osc list` on a project to display project packages
Scenario: Run `osc list` on a project package to display package files
When I execute osc with args "list openSUSE:Factory test-pkgA"
When I execute osc with args "list test:factory test-pkgA"
Then stdout is
"""
test-pkgA.changes

View File

@ -17,8 +17,7 @@
<disable/>
</useforbuild>
<repository name="openSUSE_Tumbleweed">
<path project="openSUSE.org:openSUSE:Tumbleweed" repository="standard"/>
<repository name="standard">
<arch>x86_64</arch>
<arch>i586</arch>
</repository>

View File

@ -1,6 +1,6 @@
<project name="devel">
<project name="test:devel">
<title>Devel project</title>
<title>Packages in development</title>
<description/>
<person userid="Admin" role="maintainer"/>

View File

@ -1,6 +1,6 @@
<project name="openSUSE:Factory">
<project name="test:factory">
<title>The next openSUSE distribution</title>
<title>The next version of distribution</title>
<description/>
<person userid="Admin" role="maintainer"/>

View File

@ -1,6 +1,6 @@
<project name="release">
<project name="test:release">
<title>Release project</title>
<title>Released packages</title>
<description/>
<person userid="Admin" role="maintainer"/>
@ -17,10 +17,12 @@
<disable/>
</useforbuild>
<repository name="openSUSE_Tumbleweed">
<!--
<path project="openSUSE.org:openSUSE:Tumbleweed" repository="standard"/>
-->
<repository name="distro-1-ga">
<arch>x86_64</arch>
<arch>i586</arch>
</repository>
<repository name="distro-1-updates">
<arch>x86_64</arch>
<arch>i586</arch>
</repository>