Commit e27f3769 authored by Lucas Kanashiro's avatar Lucas Kanashiro

Create a dummy native package to use in smoke test

Do not depend on deb-src to download the hello source package while
executing the smoke test
parent 2208097a
......@@ -11,5 +11,5 @@
#Restrictions: needs-root
Tests: smoke-test
Depends: obs-api, obs-server, obs-worker, obs-utils, osc, default-mysql-server, ssl-cert, apache2
Depends: obs-api, obs-server, obs-worker, obs-utils, osc, default-mysql-server, ssl-cert, apache2, dpkg-dev
Restrictions: needs-root
dummy (1.0) unstable; urgency=medium
* Initial Release.
-- Lucas Kanashiro <> Mon, 01 Apr 2019 12:01:50 -0300
Source: dummy
Priority: optional
Maintainer: Lucas Kanashiro <>
Build-Depends: debhelper (>= 9)
Standards-Version: 4.1.3
Package: dummy
Architecture: all
Depends: ${misc:Depends}
Description: dummy native package
This package is used to test open-build-service source package
......@@ -69,20 +69,22 @@ osc -A https://localhost/ meta prj Debian:9 -c -F "$AUTOPKGTEST_TMP"/data/test_m
osc -A https://localhost/ meta prjconf Debian:9 -c -F debian/examples/debian-stretch.prjconf
osc -A https://localhost/ meta prj test -c -F "$AUTOPKGTEST_TMP"/data/test_meta_prj_test
# upload the hello package
# upload the summy native package
cp -r debian/tests/obs-test-trivial-package "$AUTOPKGTEST_TMP"
osc -A https://localhost/ co test ; cd test
mkdir hello ; cd hello ; apt-get source -d hello ; cd - ;
osc add hello
osc ci -m "New import" hello
osc -A https://localhost/ co test
mkdir -p test/dummy/dummy-1.0; cp -r obs-test-trivial-package/debian test/dummy/dummy-1.0; cd test;
cd dummy; dpkg-source -b dummy-1.0; cd -;
osc add dummy
osc ci -m "New import" dummy
cd hello; sleep 250
cd dummy; sleep 250
for i in $(seq 1 10); do
echo "Round $i: checking binaries..."
echo "Round $i: checking binary..."
output=$(osc -A https://localhost/ ls -b .)
case $output in
*"hello_"*"_amd64.deb"*) found=1 && break ;;
*"dummy_1.0_all.deb"*) found=1 && break ;;
*) sleep 10
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment