test 54/259054/1 sandbox/jintaeson/test
authorjintae.son <jintae.son@samsung.com>
Mon, 31 May 2021 09:56:29 +0000 (18:56 +0900)
committerjintae.son <jintae.son@samsung.com>
Mon, 31 May 2021 09:58:02 +0000 (18:58 +0900)
Change-Id: Ie61c7867491d4622676c8015af96263e7940332d

packaging/itest-cases-gbs-0.9-1/.gitignore [new file with mode: 0644]
packaging/itest-cases-gbs-0.9-1/Makefile [new file with mode: 0644]
packaging/itest-cases-gbs-0.9-1/itest-cases-gbs.changes [new file with mode: 0644]
packaging/itest-cases-gbs-0.9-1/itest-cases-gbs.spec [new file with mode: 0644]
settings.py

diff --git a/packaging/itest-cases-gbs-0.9-1/.gitignore b/packaging/itest-cases-gbs-0.9-1/.gitignore
new file mode 100644 (file)
index 0000000..f7ecbec
--- /dev/null
@@ -0,0 +1,2 @@
+.osc/
+itest-cases-gbs*.tar.gz
diff --git a/packaging/itest-cases-gbs-0.9-1/Makefile b/packaging/itest-cases-gbs-0.9-1/Makefile
new file mode 100644 (file)
index 0000000..8cf8da0
--- /dev/null
@@ -0,0 +1,19 @@
+PKG_NAME := itest-cases-gbs
+SPECFILE = $(addsuffix .spec, $(PKG_NAME))
+PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}')
+
+TARBALL := $(PKG_NAME)_$(PKG_VERSION).tar.gz
+
+dsc: tarball
+       $(eval MD5=$(shell md5sum $(TARBALL) | sed "s/  / $(shell stat -c '%s' $(TARBALL)) /"))
+       sed  -i 's/^Version:.*/Version: $(PKG_VERSION)/' $(PKG_NAME).dsc
+       sed  -i 's/ [a-f0-9]\+ [0-9]\+ $(PKG_NAME).*tar.*/ $(MD5)/' $(PKG_NAME).dsc
+
+tarball:
+       cd .. && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \
+                               | gzip > packaging/$(TARBALL)
+
+clean:
+       rm -f $(PKG_NAME)*tar*
+
+all: tarball dsc
diff --git a/packaging/itest-cases-gbs-0.9-1/itest-cases-gbs.changes b/packaging/itest-cases-gbs-0.9-1/itest-cases-gbs.changes
new file mode 100644 (file)
index 0000000..bcfdb91
--- /dev/null
@@ -0,0 +1,7 @@
+* test-<2>
+
+* Wed Jul 03 2013 Huang Hao <hao.h.huang@intel.com> a7c12c5
+- Add packaging files
+- Adding changelog cases and corresponding fixtures
+- Initial commit
+
diff --git a/packaging/itest-cases-gbs-0.9-1/itest-cases-gbs.spec b/packaging/itest-cases-gbs-0.9-1/itest-cases-gbs.spec
new file mode 100644 (file)
index 0000000..d755e14
--- /dev/null
@@ -0,0 +1,45 @@
+Name:       itest-cases-gbs
+VCS:        tools/itest-cases-gbs#3dc0708ad10115ae10ae376ffd44d36b339991b0
+Summary:    Cases for gbs functional testing
+Version:    0.9
+Release:    1
+Group:      Development/Tools/Other
+License:    GPLv2
+Source0:    %{name}_%{version}.tar.gz
+
+BuildArch:  noarch
+%if 0%{?suse_version}
+BuildRequires:  sudo
+Requires:   mozilla-nss
+%endif
+
+Requires:   lzma
+Requires:   zip
+Requires:   p7zip
+
+%description
+gbs functional test cases in format of itest
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+make build
+
+%install
+make PREFIX=%{buildroot} install
+
+%post
+# get hostIP, then change the localhost:8881 to hostIP
+hostconf="/home/build/tools-tester.d/servers-local.conf"
+if [ -f "$hostconf" ]
+then
+    hostIP=`grep "LOCAL_HOST_IP" /home/build/tools-tester.d/servers-local.conf | cut -d":" -f 2`
+    sed -i "s/http:\/\/localhost:8881/http:\/\/$hostIP:8881/g" `grep "http:\/\/localhost:8881" -rl /srv/itest/cases/gbs/`
+    sed -i "s/http:\/\/test:123456@localhost:8881/http:\/\/test:123456@$hostIP:8881/g" `grep "http:\/\/test:123456@localhost:8881" -rl /srv/itest/cases/gbs/`
+fi
+
+%files
+%defattr(-,root,root,-)
+/srv/itest/
+%{_sysconfdir}/sudoers.d/itest_cases_gbs
index c10924eb777229218270c61d43c8b051f2e9a3f5..3fb8d5ab728216b17ef02e0b0ecc6c5808a78a69 100644 (file)
@@ -10,7 +10,7 @@ from itest.utils import check_output
 
 CWD = os.path.dirname(os.path.abspath(__file__))
 
-# set osc certifications
+# set osc certifications test
 OSC_CERT_DIR = os.path.expanduser('~/.config/osc/trusted-certs')
 OSC_CERT_FROM = os.path.join(CWD, 'fixtures', 'conf_fixtures')
 OSC_CERTS = [name.split('/')[-1] for name in glob(r'%s/*_[0-9]*.pem' % OSC_CERT_FROM)]