From: hyokeun Date: Wed, 17 May 2017 07:59:30 +0000 (+0900) Subject: Add debian config X-Git-Tag: accepted/tizen/devbase/services/20190930.043305~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F129767%2F1;p=tools%2Ftools-testing.git Add debian config Change-Id: Id231f09277a429eb8c8aaadf601568c8ebf66ed1 --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ca0993b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,3 @@ +tools-testing (1.36.2) unstable; urgency=low + * add debian + -- Tizen Build Team Wed, 17 May 2017 10:09:30 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..52206d6 --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: tools-testing +Section: devel +Priority: extra +Maintainer: Tizen Build Team +Build-Depends: debhelper (>= 7.0.15), cdbs, coreutils, python-dev, python-support, python-docutils, python-setuptools +Standards-Version: 1.36.2 +Homepage: http://www.tizen.org + +Package: tools-testing +Architecture: all +Depends: ${python:Depends}, + coreutils, + sudo, + git-core, + make, + osc, + kvm, + util-linux, + sysvinit-utils, + tar, + python-jinja2, + python-setuptools, + socat, + buffer +Description: Utilities to be run on Tools Tester Jenkins worker host, to prepare and start VM tester sessions + +Package: tools-testing-mgmt +Architecture: all +Depends: ${python:Depends}, + tools-testing +Description: Management scripts for jenkins-worker images + +Package: tools-testing-settings-tizenorg +Architecture: all +Depends: ${python:Depends}, + tools-testing +Description: Tools tester jenkins-worker settings in tizen.org env + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5e5680c --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Installing package + mkdir -p $(CURDIR)/debian/tmp/ + install -d $(CURDIR)/debian/tmp/ + cp -r *.sh *.py *.conf *.env build-package install_package run_tests runtester safeosc sudoers.jenkins pre_deployment_test $(CURDIR)/debian/tmp/ +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_python2 + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/tools-testing-mgmt.install b/debian/tools-testing-mgmt.install new file mode 100644 index 0000000..bde7fc8 --- /dev/null +++ b/debian/tools-testing-mgmt.install @@ -0,0 +1,7 @@ +debian/tmp/tools-testing-update-seed-images.sh /usr/bin/ +debian/tmp/deploy-all-new-hda-to-all-workers.sh /usr/bin/ +debian/tmp/deploy-images-to-one-worker.sh /usr/bin/ +debian/tmp/deploy-one-file-to-all-workers.sh /usr/bin/ +debian/tmp/deploy-one-hda-to-all-workers.sh /usr/bin/ +debian/tmp/deploy-one-new-hda-to-all-workers.sh /usr/bin/ +debian/tmp/workers.env /etc/jenkins-worker/ diff --git a/debian/tools-testing-settings-tizenorg.install b/debian/tools-testing-settings-tizenorg.install new file mode 100644 index 0000000..df6cc91 --- /dev/null +++ b/debian/tools-testing-settings-tizenorg.install @@ -0,0 +1,2 @@ +debian/tmp/base-repos-tizenorg.conf /etc/tools-tester.d/ +debian/tmp/servers-tizenorg.conf /etc/tools-tester.d/ diff --git a/debian/tools-testing.install b/debian/tools-testing.install new file mode 100644 index 0000000..c0b95ea --- /dev/null +++ b/debian/tools-testing.install @@ -0,0 +1,14 @@ +debian/tmp/build-package /usr/bin/ +debian/tmp/install_package /usr/bin/ +debian/tmp/kvm-worker.sh /usr/bin/ +debian/tmp/tools-testing-delete-merged-jobs.sh /usr/bin/ +debian/tmp/tools-testing-run-test.sh /usr/bin/ +debian/tmp/tools-testing-what-release.sh /usr/bin/ +debian/tmp/pre-deployment-test-worker.sh /usr/bin/ +debian/tmp/run_tests /usr/bin/ +debian/tmp/run-itest-kvm.sh /usr/bin/ +debian/tmp/run-install-upgrade-test.sh /usr/bin/ +debian/tmp/safeosc /usr/bin/ +debian/tmp/trigger_itest_verify.py /usr/bin/ +debian/tmp/pre_deployment_test/ /usr/lib/python2.7/dist-packages/ +debian/tmp/sudoers.jenkins /etc/sudoers.d/ diff --git a/sudoers.jenkins b/sudoers.jenkins index e39cbbf..9036763 100644 --- a/sudoers.jenkins +++ b/sudoers.jenkins @@ -1 +1 @@ -jenkins ALL=NOPASSWD: /usr/bin/mount -o loop*, /usr/bin/mount -t tmpfs*, /usr/bin/umount -l ../kvm-* +build.jenkins ALL=NOPASSWD: /usr/bin/mount -o loop*, /usr/bin/mount -t tmpfs*, /usr/bin/umount -l ../kvm-*