diff mbox

[1/1] add tests for do_split

Message ID 93a1b94a863aa01de80220e37cbdfd8f36f3b6d4.1379332698.git.kiho@prevas.dk
State Under Review
Delegated to: Esben Haabendal
Headers show

Commit Message

kim.hansen@prevas.dk Sept. 16, 2013, 12:04 p.m. UTC
From: Kim Højgaard-Hansen <kiho@prevas.dk>

---
 recipes/test/dosplittest-create-dir.oe       | 7 +++++++
 recipes/test/dosplittest-dang-syml.oe        | 9 +++++++++
 recipes/test/dosplittest-dir.oe              | 7 +++++++
 recipes/test/dosplittest-dup-pkg.oe          | 3 +++
 recipes/test/dosplittest-file-in-mult-pkg.oe | 8 ++++++++
 recipes/test/dosplittest-glob.oe             | 8 ++++++++
 recipes/test/dosplittest-no-packages.oe      | 3 +++
 recipes/test/dosplittest-really-dang-sym.oe  | 8 ++++++++
 recipes/test/dosplittest-unshipped.oe        | 5 +++++
 9 files changed, 58 insertions(+)
 create mode 100644 recipes/test/dosplittest-create-dir.oe
 create mode 100644 recipes/test/dosplittest-dang-syml.oe
 create mode 100644 recipes/test/dosplittest-dir.oe
 create mode 100644 recipes/test/dosplittest-dup-pkg.oe
 create mode 100644 recipes/test/dosplittest-file-in-mult-pkg.oe
 create mode 100644 recipes/test/dosplittest-glob.oe
 create mode 100644 recipes/test/dosplittest-no-packages.oe
 create mode 100644 recipes/test/dosplittest-really-dang-sym.oe
 create mode 100644 recipes/test/dosplittest-unshipped.oe
diff mbox

Patch

diff --git a/recipes/test/dosplittest-create-dir.oe b/recipes/test/dosplittest-create-dir.oe
new file mode 100644
index 0000000..501954d
--- /dev/null
+++ b/recipes/test/dosplittest-create-dir.oe
@@ -0,0 +1,7 @@ 
+RECIPE_TYPES = "native"
+
+FILES_${PN} += "/foo"
+
+do_install(){
+    mkdir ${D}/foo
+}
diff --git a/recipes/test/dosplittest-dang-syml.oe b/recipes/test/dosplittest-dang-syml.oe
new file mode 100644
index 0000000..fa55f1a
--- /dev/null
+++ b/recipes/test/dosplittest-dang-syml.oe
@@ -0,0 +1,9 @@ 
+RECIPE_TYPES = "native"
+
+FILES_${PN} += "/foo /bar /baz /boo"
+
+do_install(){
+    ln -s ${D}/foo ${D}/bar
+    cd ${D}
+    ln -s baz boo
+} 
diff --git a/recipes/test/dosplittest-dir.oe b/recipes/test/dosplittest-dir.oe
new file mode 100644
index 0000000..902f32e
--- /dev/null
+++ b/recipes/test/dosplittest-dir.oe
@@ -0,0 +1,7 @@ 
+RECIPE_TYPES = "native"
+
+FILES_${PN} += "/blah"
+do_install(){
+    mkdir ${D}/blah
+    touch ${D}/blah/baz ${D}/blah/moose
+}
diff --git a/recipes/test/dosplittest-dup-pkg.oe b/recipes/test/dosplittest-dup-pkg.oe
new file mode 100644
index 0000000..e3d711e
--- /dev/null
+++ b/recipes/test/dosplittest-dup-pkg.oe
@@ -0,0 +1,3 @@ 
+RECIPE_TYPES = "native"
+
+PACKAGES += "foo foo"
diff --git a/recipes/test/dosplittest-file-in-mult-pkg.oe b/recipes/test/dosplittest-file-in-mult-pkg.oe
new file mode 100644
index 0000000..d925e20
--- /dev/null
+++ b/recipes/test/dosplittest-file-in-mult-pkg.oe
@@ -0,0 +1,8 @@ 
+RECIPE_TYPES = "native"
+
+FILES_${PN} += "/foo"
+FILES_${PN}-dev += "/foo"
+
+do_install(){
+    touch ${D}/foo
+}
diff --git a/recipes/test/dosplittest-glob.oe b/recipes/test/dosplittest-glob.oe
new file mode 100644
index 0000000..37c6fe3
--- /dev/null
+++ b/recipes/test/dosplittest-glob.oe
@@ -0,0 +1,8 @@ 
+RECIPE_TYPES = "native"
+
+FILES_${PN} += "/foo/*"
+
+do_install(){
+    mkdir ${D}/foo
+    touch ${D}/foo/bar ${D}/foo/baz
+}
diff --git a/recipes/test/dosplittest-no-packages.oe b/recipes/test/dosplittest-no-packages.oe
new file mode 100644
index 0000000..d36682a
--- /dev/null
+++ b/recipes/test/dosplittest-no-packages.oe
@@ -0,0 +1,3 @@ 
+RECIPE_TYPES = "native"
+
+PACKAGES=""
diff --git a/recipes/test/dosplittest-really-dang-sym.oe b/recipes/test/dosplittest-really-dang-sym.oe
new file mode 100644
index 0000000..73c016c
--- /dev/null
+++ b/recipes/test/dosplittest-really-dang-sym.oe
@@ -0,0 +1,8 @@ 
+RECIPE_TYPES = "native"
+
+FILES_${PN} += "/foo"
+FILES_${PN}-dev += "/bar"
+do_install(){
+    touch ${D}/foo
+    ln -s ./foo ${D}/bar
+} 
diff --git a/recipes/test/dosplittest-unshipped.oe b/recipes/test/dosplittest-unshipped.oe
new file mode 100644
index 0000000..a191294
--- /dev/null
+++ b/recipes/test/dosplittest-unshipped.oe
@@ -0,0 +1,5 @@ 
+RECIPE_TYPES = "native"
+
+do_install(){
+    touch ${D}/foo
+}