Use fake to as baselib case
authory0169.zhang <y0169.zhang@samsung.com>
Sat, 16 Sep 2017 03:44:01 +0000 (11:44 +0800)
committery0169.zhang <y0169.zhang@samsung.com>
Sat, 16 Sep 2017 03:44:01 +0000 (11:44 +0800)
Change-Id: I93a51825fbfd6bb0ced8f25758799c91e3ebaff1

cases/build/test_build_base_libs.case
fixtures/specs/baselibs.conf [new file with mode: 0644]

index e2779ed9fc2b8aac282c610849a43004586050b0..1014e2f41ee9e38b989d0fba41dbedfae4239760 100644 (file)
@@ -6,7 +6,8 @@
   <fixtures>
     <copy src="tools/create_proj" />
     <copy src="tools/assert" />
-    <copy src="specs/mic-bootstrap-1.0-2.1.src.rpm" />
+    <copy src="specs/fake.spec" />
+    <copy src="specs/baselibs.conf" />
     <copy src="conf/tizen30.cfg" />
   </fixtures>
   <steps><![CDATA[
 sudo /bin/rm -rf ~/GBS-ROOT/local/BUILD-ROOTS/scratch.i586.0
 sudo /bin/rm -rf $GBS_LOCAL_REPOS
 
-gbs import mic-bootstrap-1.0-2.1.src.rpm
 export http_proxy="http://10.112.1.184:8080/"
 export no_proxy="localhost, 10.113.136.109"
+./create_proj fake.spec
+cp baselibs.conf fake/packaging/
+cd fake
+git add .
+git commit -m "Add baselibs.conf"
+cd -
 gbs -c tizen30.cfg build -A i586 --baselibs |tee log
 
 test -n "`find ~/GBS-ROOT/local/repos -name "mic-bootstrap*i686*.rpm"`"
diff --git a/fixtures/specs/baselibs.conf b/fixtures/specs/baselibs.conf
new file mode 100644 (file)
index 0000000..8dec000
--- /dev/null
@@ -0,0 +1,10 @@
+arch i686 targets armv7l:x86-arm i586:x86-arm aarch64:x86-arm
+arch x86_64 targets armv7l:x86-arm x86_64:x86-arm aarch64:x86-arm
+
+
+targettype x86-arm package fake
+    autoreqprov off
+    extension -x86-arm
+    +/
+
+