summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyokeun <hyokeun.jeon@samsung.com>2017-05-23 13:42:09 +0900
committerhyokeun <hyokeun.jeon@samsung.com>2017-05-23 13:45:16 +0900
commit33ca33cbf42ed7a17b77078a2f07fafc606c8fbb (patch)
tree8f057b13ee0bd9b6a53cd34f3998353c16db02f7
parent682b0aafc83d785820b951ed2fec7ec934499ea7 (diff)
downloadtools-testing-33ca33cbf42ed7a17b77078a2f07fafc606c8fbb.tar.gz
tools-testing-33ca33cbf42ed7a17b77078a2f07fafc606c8fbb.tar.bz2
tools-testing-33ca33cbf42ed7a17b77078a2f07fafc606c8fbb.zip
Adding fake report files
Change-Id: Ib81ff67e912ff51804836bedcdb13efbbcdb8fc8
-rw-r--r--Makefile2
-rw-r--r--coverage.xml-fake25
-rwxr-xr-xdebian/rules2
-rw-r--r--debian/tools-testing.install2
-rw-r--r--nosetests.xml-fake6
-rw-r--r--packaging/tools-testing.spec3
6 files changed, 39 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bc817bf..69caf52 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ install:
install -m 0644 workers.env $(DESTDIR)/etc/jenkins-worker
install -d $(DESTDIR)/etc/tools-tester.d
install -m 0644 base-repos-*.conf servers-*.conf $(DESTDIR)/etc/tools-tester.d
+ install -d $(DESTDIR)/var/lib/jenkins
+ install -m 0644 coverage.xml-fake nosetests.xml-fake $(DESTDIR)/var/lib/jenkins
test:
checkbashisms $(SH_FILES)
diff --git a/coverage.xml-fake b/coverage.xml-fake
new file mode 100644
index 0000000..e6ccd57
--- /dev/null
+++ b/coverage.xml-fake
@@ -0,0 +1,25 @@
+<?xml version="1.0" ?>
+<!DOCTYPE coverage
+ SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'>
+<coverage branch-rate="0" line-rate="1" timestamp="1365143016134" version="3.5.1">
+ <!-- Generated by coverage.py: http://nedbatchelder.com/code/coverage -->
+ <packages>
+ <package branch-rate="0" complexity="0" line-rate="1" name="obs_service_gbp">
+ <classes>
+ <class branch-rate="0" complexity="0" filename="obs_service_gbp/__init__.py" line-rate="1" name="__init__">
+ <methods/>
+ <lines>
+ <line hits="1" number="19"/>
+ </lines>
+ </class>
+ <class branch-rate="0" complexity="0" filename="obs_service_gbp/command.py" line-rate="1" name="command">
+ <methods/>
+ <lines>
+ <line hits="1" number="19"/>
+ </lines>
+ </class>
+ </classes>
+ </package>
+ </packages>
+</coverage>
+
diff --git a/debian/rules b/debian/rules
index 5e5680c..fa8afe0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ install: build
# 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/
+ cp -r *.sh *.py *.conf *.env build-package install_package run_tests runtester safeosc sudoers.jenkins pre_deployment_test *.xml-fake $(CURDIR)/debian/tmp/
binary-indep: build install
dh_testdir
dh_testroot
diff --git a/debian/tools-testing.install b/debian/tools-testing.install
index c0b95ea..871e62a 100644
--- a/debian/tools-testing.install
+++ b/debian/tools-testing.install
@@ -12,3 +12,5 @@ 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/
+debian/tmp/coverage.xml-fake /var/lib/jenkins/
+debian/tmp/nosetests.xml-fake /var/lib/jenkins/
diff --git a/nosetests.xml-fake b/nosetests.xml-fake
new file mode 100644
index 0000000..6482a64
--- /dev/null
+++ b/nosetests.xml-fake
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<testsuite name="nosetests" tests="1">
+<testcase classname="tests.test_prod" name="test_succeeding" time="0.001">
+</testcase>
+</testsuite>
+
diff --git a/packaging/tools-testing.spec b/packaging/tools-testing.spec
index a28d35a..38f1046 100644
--- a/packaging/tools-testing.spec
+++ b/packaging/tools-testing.spec
@@ -76,6 +76,9 @@ fi
%{python_sitelib}/pre_deployment_test-*-py*.egg-info
%dir /etc/sudoers.d
%config /etc/sudoers.d/jenkins
+%dir /var/lib/jenkins/
+/var/lib/jenkins/coverage.xml-fake
+/var/lib/jenkins/nosetests.xml-fake
###############################################
%files mgmt