Add new case to test Epoch packages in tizen2.4
authorJun Wang <junbill.wang@samsung.com>
Thu, 12 Oct 2017 03:19:40 +0000 (11:19 +0800)
committerJun Wang <junbill.wang@samsung.com>
Thu, 12 Oct 2017 03:19:40 +0000 (11:19 +0800)
cases/build/test_build_tizen2.4_Epoch.case [new file with mode: 0644]

diff --git a/cases/build/test_build_tizen2.4_Epoch.case b/cases/build/test_build_tizen2.4_Epoch.case
new file mode 100644 (file)
index 0000000..2e6535f
--- /dev/null
@@ -0,0 +1,26 @@
+<testcase>
+  <summary>test build with tizen2.4 profile which contains Epoch packages</summary>
+  <fixtures>
+    <copy src="tools/create_proj" />
+    <copy src="conf/tizen2.4.cfg" />
+    <copy src="specs/fake.spec" />
+  </fixtures>
+  <steps><![CDATA[
+
+  ./create_proj fake.spec
+  sudo /bin/rm -rf ~/GBS-ROOT/*
+
+  #First run
+  gbs -c tizen2.4.cfg build fake  -A armv7l 2>&1 | tee log
+  #Check for the presence of 'downloading' fields (must have in this step)
+  test -n "`grep "downloading" log`" 
+  #second run using old chroot evn
+  sudo /bin/rm -rf ~/GBS-ROOT/local/repos 
+  gbs -c tizen2.4.cfg build fake  -A armv7l 2>&1 | tee log
+
+  #Check for the presence of 'downloading' fields (no exist)
+  test -z "`grep "downloading" log`"
+  
+]]></steps>
+</testcase>