Add Recommends inside spec test case
authory0169.zhang <y0169.zhang@samsung.com>
Mon, 16 Jan 2017 06:44:55 +0000 (15:44 +0900)
committery0169.zhang <y0169.zhang@samsung.com>
Mon, 16 Jan 2017 06:44:55 +0000 (15:44 +0900)
Change-Id: Ib36d6877243c9aa1c78e11f5d2b230e443020b8d

cases/build/test_build_recommands.case [new file with mode: 0644]
fixtures/conf/recommends.cfg [new file with mode: 0644]
fixtures/specs/rpmdeps_dep.spec [new file with mode: 0644]

diff --git a/cases/build/test_build_recommands.case b/cases/build/test_build_recommands.case
new file mode 100644 (file)
index 0000000..3b3d997
--- /dev/null
@@ -0,0 +1,26 @@
+<testcase>
+  <summary>test build Recommends inside spec</summary>
+  <tracking>
+    <ticket>91</ticket>
+  </tracking>
+  <fixtures>
+    <copy src="tools/create_proj" />
+    <copy src="tools/assert" />
+    <copy src="specs/rpmdeps_dep.spec" />
+    <copy src="conf/recommends.cfg" />
+  </fixtures>
+  <steps><![CDATA[
+. assert
+
+sudo /bin/rm -rf $GBS_LOCAL_REPOS
+
+./create_proj rpmdeps_dep.spec
+
+gbs -c recommends.cfg build -A x86_64 |tee log
+
+grep "finished building rpmdeps_dep" log
+
+test -n "`find ~/GBS-ROOT/local/repos -name "rpmdeps_dep*.rpm"`"
+
+]]></steps>
+</testcase>
diff --git a/fixtures/conf/recommends.cfg b/fixtures/conf/recommends.cfg
new file mode 100644 (file)
index 0000000..76e5cf0
--- /dev/null
@@ -0,0 +1,10 @@
+[general]
+profile = profile.tizen_mobile
+fallback_to_native = true
+[profile.tizen_mobile]
+repos = repo.1, repo.2
+[repo.1]
+url = http://10.113.136.109/Tizen:/TestPrograms/emulator64/
+[repo.2]
+url = http://download.tizen.org/snapshots/tizen/3.0-base/latest/repos/emulator64/packages/
+
diff --git a/fixtures/specs/rpmdeps_dep.spec b/fixtures/specs/rpmdeps_dep.spec
new file mode 100644 (file)
index 0000000..3f7c082
--- /dev/null
@@ -0,0 +1,86 @@
+Name:          rpmdeps_dep
+Summary:       RPM dependency testing to probe MIC
+Version:       0.0.1
+Release:       2
+Group:         Application Framework/Configuration
+License:       Apache-2.0
+Source0:       %{name}-%{version}.tar.gz
+Requires:      rpmdeps_dep-compat
+Recommends:     rpmdeps_dep-profile_tv
+BuildRequires: rpmdeps
+Requires:      rpmdeps
+
+BuildArch:     noarch
+
+%description
+Do not care
+
+%package profile_mobile
+Summary:       RPMDEPS subpackage
+Group:         Application Framework/Configuration
+Supplements:   rpmdeps_dep-compat
+BuildArch:     noarch
+
+%description profile_mobile
+Why do you care. Lost here?
+
+%package profile_common
+Summary:       RPMDEPS subpackage
+Group:         Application Framework/Configuration
+Provides:      rpmdeps_dep-compat
+BuildArch:     noarch
+
+%description profile_common
+Why do you care. Lost here?
+
+
+%package profile_tv
+Summary:       RPMDEPS subpackage
+Group:         Application Framework/Configuration
+Supplements:   rpmdeps_dep-compat
+BuildArch:     noarch
+
+%description profile_tv
+Why do you care. Lost here?
+
+
+%package profile_wearable
+Summary:       RPMDEPS subpackage
+Group:         Application Framework/Configuration
+Supplements:   rpmdeps_dep-compat
+BuildArch:     noarch
+
+%description profile_wearable
+Why do you care. Lost here?
+
+
+%package profile_ivi
+Summary:       RPMDEPS subpackage
+Group:         Application Framework/Configuration
+Supplements:   rpmdeps_dep
+BuildArch:     noarch
+
+%description profile_ivi
+Why do you care. Lost here?
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+
+%install
+
+%files
+
+%files profile_mobile
+
+%files profile_common
+
+%files profile_wearable
+
+%files profile_tv
+
+%files profile_ivi
+
+
+