Add new case test_build_upstream_config_file.case
authorJun Wang <junbill.wang@samsung.com>
Wed, 11 Oct 2017 07:35:13 +0000 (15:35 +0800)
committerJun Wang <junbill.wang@samsung.com>
Wed, 11 Oct 2017 07:35:13 +0000 (15:35 +0800)
cases/build/test_build_upstream_config_file.case [new file with mode: 0644]
fixtures/conf/upstream_tag.cfg [new file with mode: 0644]
settings.pyc [new file with mode: 0644]

diff --git a/cases/build/test_build_upstream_config_file.case b/cases/build/test_build_upstream_config_file.case
new file mode 100644 (file)
index 0000000..6884e40
--- /dev/null
@@ -0,0 +1,20 @@
+<testcase>
+  <summary>test build with special upstream_tag in gbs.conf</summary>
+  <fixtures>
+    <copy src="tools/create_proj" />
+    <copy src="conf/upstream_tag.cfg" />
+    <copy src="specs/fake.spec" />
+  </fixtures>
+  <steps><![CDATA[
+
+  ./create_proj fake.spec --tizen 
+  mv upstream_tag.cfg fake/.gbs.conf
+  cd fake
+  git tag -a "v1.0" -m "v1.0"
+
+  sudo /bin/rm -rf ~/GBS-ROOT/local/
+
+  gbs build -A armv7l  
+  
+]]></steps>
+</testcase>
diff --git a/fixtures/conf/upstream_tag.cfg b/fixtures/conf/upstream_tag.cfg
new file mode 100644 (file)
index 0000000..2290232
--- /dev/null
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = v${upstreamversion}
diff --git a/settings.pyc b/settings.pyc
new file mode 100644 (file)
index 0000000..9007ea5
Binary files /dev/null and b/settings.pyc differ