-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add prdiff subcommand and test suite
- Loading branch information
Showing
42 changed files
with
665 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq diffstat | ||
script: cd tests; python suite.py |
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
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
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,10 @@ | ||
Index: common-two | ||
=================================================================== | ||
--- common-two 2013-01-18 19:18:38.225983117 +0000 | ||
+++ common-two 2013-01-18 19:19:27.882082325 +0000 | ||
@@ -1,4 +1,5 @@ | ||
line one | ||
line two | ||
line three | ||
+an extra line | ||
last line |
1 change: 1 addition & 0 deletions
1
tests/prdiff_fixtures/home:user:branches:some:project/.osc/_apiurl
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 @@ | ||
http://localhost |
4 changes: 4 additions & 0 deletions
4
tests/prdiff_fixtures/home:user:branches:some:project/.osc/_packages
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,4 @@ | ||
<project name="home:user:branches:some:project"> | ||
<package name="common-one" state=" " /> | ||
<package name="common-two" state=" " /> | ||
</project> |
1 change: 1 addition & 0 deletions
1
tests/prdiff_fixtures/home:user:branches:some:project/.osc/_project
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 @@ | ||
home:user:branches:some:project |
5 changes: 5 additions & 0 deletions
5
tests/prdiff_fixtures/home:user:branches:some:project/common-two
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,5 @@ | ||
line one | ||
line two | ||
line three | ||
an extra line | ||
last line |
6 changes: 6 additions & 0 deletions
6
tests/prdiff_fixtures/home:user:branches:some:project/directory
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,6 @@ | ||
<directory count='4'> | ||
<entry name="common-one"/> | ||
<entry name="common-two"/> | ||
<entry name="common-three"/> | ||
<entry name="only-in-new"/> | ||
</directory> |
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,5 @@ | ||
line one | ||
line two | ||
line three | ||
an extra line | ||
last line |
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,6 @@ | ||
<directory count='4'> | ||
<entry name="common-one"/> | ||
<entry name="common-two"/> | ||
<entry name="common-three"/> | ||
<entry name="only-in-new"/> | ||
</directory> |
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,2 @@ | ||
<collection matches="0"> | ||
</collection> |
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,4 @@ | ||
line one | ||
line two | ||
line three | ||
last line |
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,6 @@ | ||
<directory count='4'> | ||
<entry name="common-one"/> | ||
<entry name="common-two"/> | ||
<entry name="common-three"/> | ||
<entry name="only-in-old"/> | ||
</directory> |
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,103 @@ | ||
[general] | ||
# URL to access API server, e.g. https://api.opensuse.org | ||
# you also need a section [https://api.opensuse.org] with the credentials | ||
apiurl = http://localhost | ||
# Downloaded packages are cached here. Must be writable by you. | ||
#packagecachedir = /var/tmp/osbuild-packagecache | ||
# Wrapper to call build as root (sudo, su -, ...) | ||
#su-wrapper = su -c | ||
# rootdir to setup the chroot environment | ||
# can contain %(repo)s, %(arch)s, %(project)s and %(package)s for replacement, e.g. | ||
# /srv/oscbuild/%(repo)s-%(arch)s or | ||
# /srv/oscbuild/%(repo)s-%(arch)s-%(project)s-%(package)s | ||
#build-root = /var/tmp/build-root | ||
# compile with N jobs (default: "getconf _NPROCESSORS_ONLN") | ||
#build-jobs = N | ||
# build-type to use - values can be (depending on the capabilities of the 'build' script) | ||
# empty - chroot build | ||
# kvm - kvm VM build (needs build-device, build-swap, build-memory) | ||
# xen - xen VM build (needs build-device, build-swap, build-memory) | ||
# experimental: | ||
# qemu - qemu VM build | ||
# lxc - lxc build | ||
#build-type = | ||
# build-device is the disk-image file to use as root for VM builds | ||
# e.g. /var/tmp/FILE.root | ||
#build-device = /var/tmp/FILE.root | ||
# build-swap is the disk-image to use as swap for VM builds | ||
# e.g. /var/tmp/FILE.swap | ||
#build-swap = /var/tmp/FILE.swap | ||
# build-memory is the amount of memory used in the VM | ||
# value in MB - e.g. 512 | ||
#build-memory = 512 | ||
# build-vmdisk-rootsize is the size of the disk-image used as root in a VM build | ||
# values in MB - e.g. 4096 | ||
#build-vmdisk-rootsize = 4096 | ||
# build-vmdisk-swapsize is the size of the disk-image used as swap in a VM build | ||
# values in MB - e.g. 1024 | ||
#build-vmdisk-swapsize = 1024 | ||
# Numeric uid:gid to assign to the "abuild" user in the build-root | ||
# or "caller" to use the current users uid:gid | ||
# This is convenient when sharing the buildroot with ordinary userids | ||
# on the host. | ||
# This should not be 0 | ||
# build-uid = | ||
# extra packages to install when building packages locally (osc build) | ||
# this corresponds to osc build's -x option and can be overridden with that | ||
# -x '' can also be given on the command line to override this setting, or | ||
# you can have an empty setting here. | ||
#extra-pkgs = vim gdb strace | ||
# build platform is used if the platform argument is omitted to osc build | ||
#build_repository = openSUSE_Factory | ||
# default project for getpac or bco | ||
#getpac_default_project = openSUSE:Factory | ||
# alternate filesystem layout: have multiple subdirs, where colons were. | ||
#checkout_no_colon = 0 | ||
# local files to ignore with status, addremove, .... | ||
#exclude_glob = .osc CVS .svn .* _linkerror *~ #*# *.orig *.bak *.changes.* | ||
# keep passwords in plaintext. If you see this comment, your osc | ||
# already uses the encrypted password, and only keeps them in plain text | ||
# for backwards compatibility. Default will change to 0 in future releases. | ||
# You can remove the plaintext password without harm, if you do not need | ||
# backwards compatibility. | ||
#plaintext_passwd = 1 | ||
# limit the age of requests shown with 'osc req list'. | ||
# this is a default only, can be overridden by 'osc req list -D NNN' | ||
# Use 0 for unlimted. | ||
#request_list_days = 0 | ||
# show info useful for debugging | ||
#debug = 1 | ||
# show HTTP traffic useful for debugging | ||
#http_debug = 1 | ||
# Skip signature verification of packages used for build. | ||
#no_verify = 1 | ||
# jump into the debugger in case of errors | ||
#post_mortem = 1 | ||
# print call traces in case of errors | ||
#traceback = 1 | ||
# use KDE/Gnome/MacOS/Windows keyring for credentials if available | ||
#use_keyring = 1 | ||
# check for unversioned/removed files before commit | ||
#check_filelist = 1 | ||
# check for pending requests after executing an action (e.g. checkout, update, commit) | ||
#check_for_request_on_action = 0 | ||
# what to do with the source package if the submitrequest has been accepted. If | ||
# nothing is specified the API default is used | ||
#submitrequest_on_accept_action = cleanup|update|noupdate | ||
#review requests interactively (default: off) | ||
#request_show_review = 1 | ||
# Directory with executables to validate sources, esp before committing | ||
#source_validator_directory = /usr/lib/osc/source_validators | ||
|
||
[http://localhost] | ||
user=Admin | ||
pass=opensuse | ||
# set aliases for this apiurl | ||
# aliases = foo, bar | ||
# email used in .changes, unless the one from osc meta prj <user> will be used | ||
# email = | ||
# additional headers to pass to a request, e.g. for special authentication | ||
#http_headers = Host: foofoobar, | ||
# User: mumblegack | ||
# Force using of keyring for this API | ||
#keyring = 1 |
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 @@ | ||
http://localhost |
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,4 @@ | ||
<project name="home:user:branches:some:project"> | ||
<package name="common-one" state=" " /> | ||
<package name="common-two" state=" " /> | ||
</project> |
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 @@ | ||
home:user:branches:some:project |
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 @@ | ||
http://localhost |
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,4 @@ | ||
<directory name="common-one" rev="f53d033d63c3d6e9a8e4493225976122" srcmd5="f53d033d63c3d6e9a8e4493225976122"> | ||
<linkinfo baserev="896e6d6d675d03b6934946d03a976450" lsrcmd5="0cf460222270b58e2a9a3d695b1d945d" package="common-one" project="some:project" srcmd5="8c7ed3cf5ec0b4aa20ef159fd8c51b76" /> | ||
<entry md5="1a4c23ccf2eb12403acbfa3258233a9d" mtime="1352816081" name="common-one.spec" size="3457" /> | ||
</directory> |
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,10 @@ | ||
<package name="common-one" project="home:user:branches:some:project"> | ||
<title>blah</title> | ||
<description>foo</description> | ||
<debuginfo> | ||
<enable repository="openSUSE_12.2"/> | ||
<enable repository="openSUSE_Factory"/> | ||
<enable repository="SLE_11_SP2"/> | ||
</debuginfo> | ||
</package> | ||
|
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 @@ | ||
1.0 |
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 @@ | ||
common-one |
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 @@ | ||
home:user:branches:some:project |
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 @@ | ||
contents are irrelevant |
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 @@ | ||
contents are irrelevant |
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 @@ | ||
http://localhost |
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,4 @@ | ||
<directory name="common-two" rev="f53d033d63c3d6e9a8e4493225976122" srcmd5="f53d033d63c3d6e9a8e4493225976122"> | ||
<linkinfo baserev="896e6d6d675d03b6934946d03a976450" lsrcmd5="0cf460222270b58e2a9a3d695b1d945d" package="common-two" project="some:project" srcmd5="8c7ed3cf5ec0b4aa20ef159fd8c51b76" /> | ||
<entry md5="1a4c23ccf2eb12403acbfa3258233a9d" mtime="1352816081" name="common-two.spec" size="3457" /> | ||
</directory> |
Oops, something went wrong.