diff options
Diffstat (limited to 'import-layers/yocto-poky/meta-selftest')
38 files changed, 424 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta-selftest/COPYING.MIT b/import-layers/yocto-poky/meta-selftest/COPYING.MIT new file mode 100644 index 000000000..89de35479 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/import-layers/yocto-poky/meta-selftest/README b/import-layers/yocto-poky/meta-selftest/README new file mode 100644 index 000000000..11a6fee2d --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/README @@ -0,0 +1,3 @@ +This layer is intended as test layer, used by scripts/oe-selftest +and it's probably a mistake to include it in your builds (unless you +want to run the script). diff --git a/import-layers/yocto-poky/meta-selftest/classes/test_events.bbclass b/import-layers/yocto-poky/meta-selftest/classes/test_events.bbclass new file mode 100644 index 000000000..35324eb40 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/classes/test_events.bbclass @@ -0,0 +1,16 @@ +python test1_eventhandler() { + bb.note("Test for bb.event.BuildStarted") +} +python test2_eventhandler() { + bb.note("Test for bb.event.BuildCompleted") +} +python test3_eventhandler() { + bb.note("Test for bb.event.InvalidEvent") +} + +addhandler test1_eventhandler +test1_eventhandler[eventmask] = "bb.event.BuildStarted" +addhandler test2_eventhandler +test2_eventhandler[eventmask] = "bb.event.BuildCompleted" +addhandler test3_eventhandler +test3_eventhandler[eventmask] = "bb.event.InvalidEvent" diff --git a/import-layers/yocto-poky/meta-selftest/conf/layer.conf b/import-layers/yocto-poky/meta-selftest/conf/layer.conf new file mode 100644 index 000000000..a847b78a2 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/conf/layer.conf @@ -0,0 +1,10 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "selftest" +BBFILE_PATTERN_selftest = "^${LAYERDIR}/" +BBFILE_PRIORITY_selftest = "5" diff --git a/import-layers/yocto-poky/meta-selftest/conf/machine/qemux86copy.conf b/import-layers/yocto-poky/meta-selftest/conf/machine/qemux86copy.conf new file mode 100644 index 000000000..76c13fdcb --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/conf/machine/qemux86copy.conf @@ -0,0 +1,3 @@ +require conf/machine/qemux86.conf + +MACHINEOVERRIDES .= ":qemux86" diff --git a/import-layers/yocto-poky/meta-selftest/files/signing/key.pub b/import-layers/yocto-poky/meta-selftest/files/signing/key.pub new file mode 100644 index 000000000..e197bb381 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/files/signing/key.pub @@ -0,0 +1,30 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQENBFYeMycBCADISkEj+u+3SkGbmC4b09StA3Fk4J8bKZrTTpQqUhOH4QFIQpso +q96Q907h/ABAgB+IV0SGIeN866E7BqToqoXZ74X6EoyXWdndaMaFZSj+oNq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aklmQZwARAQABiQEfBBgB +AgAJBQJWHjMnAhsMAAoJEHsxMWtdZK1SoPsIAKadG/tvS5COCyF8FuriL89Ysfov +kMRKeb9hsMDbKX2lm3UtoS5ErmpkEUO/SbazQYm6/vYc8noQquqhkIdCljIvpWDv +17tXEFfTGA493dlTTEWFt5bvzbQN6OhBu3904lAE4JGtlOOa9OKDeguwXbneLOyl +dnlj2f7rw05cB9t/RDu7T11dTI39BMTUUm1lpWxYJk41o59b9g+fpJZkiIAJwnN3 +MwM1u9/AWfTqjNRgMAO5dIYceceTwGogujG+xz93flt+NjQhILG0T9jd0DFBgIAX +Zq4PzX5aFDKjGoFaOOZ6r+kppBLH/HN6okMGIcfqaPPdnJI1MXFQvFzUNpo= +=2cSJ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/import-layers/yocto-poky/meta-selftest/files/signing/key.secret b/import-layers/yocto-poky/meta-selftest/files/signing/key.secret new file mode 100644 index 000000000..d30d7cd61 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/files/signing/key.secret @@ -0,0 +1,59 @@ +-----BEGIN PGP PRIVATE KEY BLOCK----- +Version: GnuPG v1 + +lQO+BFYeMycBCADISkEj+u+3SkGbmC4b09StA3Fk4J8bKZrTTpQqUhOH4QFIQpso +q96Q907h/ABAgB+IV0SGIeN866E7BqToqoXZ74X6EoyXWdndaMaFZSj+oNqqg6Gi +hVsuGNpvRyyXSCYW8w9H2lFx09UufFrUxoSeP2iVdJJaUAmb8e00PCwkYrS2BZEa +tO2VgllbaqczldmlUGnkIZt8YUSQSI/xZBDYUvbcZYBaOnDH1SDQl26f+bgyeIyS +TW5TZb96o4tMfiifgPoqAapAxQLahG0WtjF/n1yNV5wUNQYsEQf6/h6W2rHGsCP5 +6FVFnr/ZPVam9iHUxL4lvJSI8dEH37s9GmarABEBAAH+AwMCLgbvBp7KeMdgcmpy +Eheo+Xi7oLtKh5qc2LsxJnvszt4Q+0+v+dO+nlsRBuZAAo6EryyzH/HcncEoTQeG +Fv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yTlp7HrYLTJvgyAPXPwKZ8Y5YHZTMljWIb04rc5p7yVOOWiu4RZH28dYF63BR +yX+hKBjK1tyEqI3xf+/ukib/4VuvAOUCoH/BqyHelT40Qg1qt3P75fkH/ZRNq2gi +O2axGdlH5xrTOmLh7qGgr+rCAq5wmh6S3RDGT0PE4q/biGOtB2CI+fYin6Z0VC4H +9mVOMz0v9EW15Ra87JkAOA/PAxIlPOrq5SvHseBx7iTL3vWeQzvQfCqeTrJ48AQY +a7A7fMjQOZKCO9UuRIWm87JwOFIKb3JtauOGRFEHFDnlze5FBObUAyKP/dHpLwmm +O4k9smJSCid740UvNbpUpS4xAjen89dQTBtWXxipTpX/iXmsnSbrThUG1mYjEU+q +k5EF54KGfYSe4OJtm4dw/b5XL56CZJ79qBcD2kkjBA8o+/fxJKtnfTvPxGi0NZ2g +sg3EAxem8+SOvcRGr2RmFfWa28+Q1jNIXs+mL4kBHwQYAQIACQUCVh4zJwIbDAAK +CRB7MTFrXWStUqD7CACmnRv7b0uQjgshfBbq4i/PWLH6L5DESnm/YbDA2yl9pZt1 +LaEuRK5qZBFDv0m2s0GJuv72HPJ6EKrqoZCHQpYyL6Vg79e7VxBX0xgOPd3ZU0xF +hbeW7820DejoQbt/dOJQBOCRrZTjmvTig3oLsF253izspXZ5Y9n+68NOXAfbf0Q7 +u09dXUyN/QTE1FJtZaVsWCZONaOfW/YPn6SWZIiACcJzdzMDNbvfwFn06ozUYDAD +uXSGHHnHk8BqILoxvsc/d35bfjY0ISCxtE/Y3dAxQYCAF2auD81+WhQyoxqBWjjm +eq/pKaQSx/xzeqJDBiHH6mjz3ZySNTFxULxc1Daa +=b+vR +-----END PGP PRIVATE KEY BLOCK----- diff --git a/import-layers/yocto-poky/meta-selftest/lib/devtool/__init__.py b/import-layers/yocto-poky/meta-selftest/lib/devtool/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/lib/devtool/__init__.py diff --git a/import-layers/yocto-poky/meta-selftest/lib/devtool/test.py b/import-layers/yocto-poky/meta-selftest/lib/devtool/test.py new file mode 100644 index 000000000..b7474b5ee --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/lib/devtool/test.py @@ -0,0 +1,11 @@ +import argparse + +def selftest_reverse(args, config, basepath, workspace): + """Reverse the value passed to verify the plugin is executing.""" + print args.value[::-1] + +def register_commands(subparsers, context): + parser_build = subparsers.add_parser('selftest-reverse', help='Reverse value (for selftest)', + formatter_class=argparse.ArgumentDefaultsHelpFormatter) + parser_build.add_argument('value', help='Value to reverse') + parser_build.set_defaults(func=selftest_reverse) diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/aspell/aspell_0.0.0.1.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/aspell/aspell_0.0.0.1.bb new file mode 100644 index 000000000..20a0ab7d3 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/aspell/aspell_0.0.0.1.bb @@ -0,0 +1,30 @@ +# This recipe is a copy from the oe-core one. +# It has a lower and invalid version number in order not to be accidentally used by bitbake. +# It is used for tests that require overlayed recipe files. + +SUMMARY = "GNU Aspell spell-checker" +SECTION = "console/utils" + +LICENSE = "LGPLv2 | LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" + +PR = "r1" + +SRC_URI = "${GNU_MIRROR}/aspell/aspell-${PV}.tar.gz" +SRC_URI[md5sum] = "e66a9c9af6a60dc46134fdacf6ce97d7" +SRC_URI[sha256sum] = "f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses" + +PACKAGES += "libaspell libpspell libpspell-dev aspell-utils" + +FILES_${PN}-dbg += "${libdir}/aspell-0.60/.debu*" +FILES_libaspell = "${libdir}/libaspell.so.* ${libdir}/aspell*" +FILES_aspell-utils = "${bindir}/word-list-compress ${bindir}/aspell-import ${bindir}/run-with-aspell ${bindir}/pre*" +FILES_${PN} = "${bindir}/aspell" +FILES_libpspell = "${libdir}/libpspell.so.*" +FILES_libpspell-dev = "${libdir}/libpspell* ${bindir}/pspell-config ${includedir}/pspell" + +ARM_INSTRUCTION_SET = "arm" +inherit autotools gettext diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/aspell/aspell_0.60.6.1.bbappend b/import-layers/yocto-poky/meta-selftest/recipes-test/aspell/aspell_0.60.6.1.bbappend new file mode 100644 index 000000000..205720982 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/aspell/aspell_0.60.6.1.bbappend @@ -0,0 +1,2 @@ +# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests. +include test_recipe.inc diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch new file mode 100644 index 000000000..4ea3d74f0 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch @@ -0,0 +1,25 @@ +From 1478846ebfac690684e9c48049d08e0065f97a36 Mon Sep 17 00:00:00 2001 +From: Paul Eggleton <paul.eggleton@linux.intel.com> +Date: Wed, 24 Feb 2016 17:43:03 +1300 +Subject: [PATCH] Add a note line to the quick reference + +A test patch so we have a file to move around. +--- + doc/quickref.1.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/doc/quickref.1.in b/doc/quickref.1.in +index 389008b..226615c 100644 +--- a/doc/quickref.1.in ++++ b/doc/quickref.1.in +@@ -560,6 +560,7 @@ you want, at runtime, to change the parameters of. + .P + If you find any other problems, please report them. + ++NOTE: this is an important note. + + .SH REPORTING BUGS + Report bugs in +-- +2.5.0 + diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb new file mode 100644 index 000000000..e93b0d551 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb @@ -0,0 +1,16 @@ +SUMMARY = "Pipe viewer test recipe for devtool upgrade test" +LICENSE = "Artistic-2.0" +LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02" + +SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz \ + file://0001-Add-a-note-line-to-the-quick-reference.patch" + +SRC_URI[md5sum] = "9365d86bd884222b4bf1039b5a9ed1bd" +SRC_URI[sha256sum] = "681bcca9784bf3cb2207e68236d1f68e2aa7b80f999b5750dc77dcd756e81fbc" + +PR = "r5" + +S = "${WORKDIR}/pv-${PV}" + +inherit autotools + diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded new file mode 100644 index 000000000..afcc4aa13 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded @@ -0,0 +1,14 @@ +SUMMARY = "Pipe viewer test recipe for devtool upgrade test" +LICENSE = "Artistic-2.0" +LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02" + +SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz \ + file://0001-Add-a-note-line-to-the-quick-reference.patch" + +SRC_URI[md5sum] = "062bca5ff33df1dd09472e7fc3bbe332" +SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3" + +S = "${WORKDIR}/pv-${PV}" + +inherit autotools + diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb new file mode 100644 index 000000000..9bfce0afe --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb @@ -0,0 +1,18 @@ +SUMMARY = "A simple tool to wait for a specific signal over DBus" +HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/dbus-wait" +SECTION = "base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +DEPENDS = "dbus" + +# Note: this is intentionally not the latest version in the original .bb +SRCREV = "1a3e1343761b30750bed70e0fd688f6d3c7b3717" +PV = "0.1+git${SRCPV}" +PR = "r2" + +SRC_URI = "git://git.yoctoproject.org/dbus-wait" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded new file mode 100644 index 000000000..9b947ed9e --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded @@ -0,0 +1,17 @@ +SUMMARY = "A simple tool to wait for a specific signal over DBus" +HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/dbus-wait" +SECTION = "base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +DEPENDS = "dbus" + +# Note: this is intentionally not the latest version in the original .bb +SRCREV = "6cc6077a36fe2648a5f993fe7c16c9632f946517" +PV = "0.1+git${SRCPV}" + +SRC_URI = "git://git.yoctoproject.org/dbus-wait" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/emptytest/emptytest.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/emptytest/emptytest.bb new file mode 100644 index 000000000..905c6694f --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/emptytest/emptytest.bb @@ -0,0 +1,7 @@ +include test_recipe.inc + +# Set LICENSE to something so that bitbake -p that is ran at the beginning +# is successful since test_recipe.inc has not yet been modified. +LICENSE = "" + +EXCLUDE_FROM_WORLD = "1" diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/error/error.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/error/error.bb new file mode 100644 index 000000000..a7bdecf29 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/error/error.bb @@ -0,0 +1,11 @@ +SUMMARY = "Error Test case that fails on do_compile" +DESCRIPTION = "This generates a compile time error to be used to for testing." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +INHIBIT_DEFAULT_DEPS = "1" +EXCLUDE_FROM_WORLD = "1" + +do_compile() { + bbfatal "Failing as expected."; +} diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/images/error-image.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/images/error-image.bb new file mode 100644 index 000000000..13d9cc010 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/images/error-image.bb @@ -0,0 +1,8 @@ +SUMMARY = "An image that includes the error recipe and will therefore fail" +DESCRIPTION = "This generates an error. Not currently used by oe-selftest" + +IMAGE_INSTALL = "error" + +IMAGE_LINGUAS = " " + +inherit core-image diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/images/oe-selftest-image.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/images/oe-selftest-image.bb new file mode 100644 index 000000000..f17094c5d --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/images/oe-selftest-image.bb @@ -0,0 +1,9 @@ +SUMMARY = "An image used during oe-selftest tests" + +IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} dropbear" +IMAGE_FEATURES = "debug-tweaks" + +IMAGE_LINGUAS = " " + +inherit core-image + diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/images/test-empty-image.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/images/test-empty-image.bb new file mode 100644 index 000000000..88d8d612e --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/images/test-empty-image.bb @@ -0,0 +1,6 @@ +SUMMARY = "An empty image." +IMAGE_INSTALL = "" +IMAGE_LINGUAS = "" +PACKAGE_INSTALL = "" + +inherit image diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.bb new file mode 100644 index 000000000..a294ba7af --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.bb @@ -0,0 +1,18 @@ +SUMMARY = "An example of partitioned image." + +SRC_URI = "file://${FILE_DIRNAME}/${BPN}.wks" + +IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}" + +IMAGE_FSTYPES = "wic" +RM_OLD_IMAGE = "1" + +DEPENDS = "syslinux syslinux-native parted-native dosfstools-native mtools-native gptfdisk-native" + +# core-image-minimal is referenced in .wks, so we need its rootfs +# to be ready before our rootfs +do_rootfs[depends] += "core-image-minimal:do_image core-image-minimal:do_rootfs_wicenv" + +IMAGE_ROOTFS_EXTRA_SPACE = "2000" + +inherit image diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.wks b/import-layers/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.wks new file mode 100644 index 000000000..d55075d50 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/images/wic-image-minimal.wks @@ -0,0 +1,10 @@ +# short-description: Example of partitioned image with complex layout +# long-description: This image contains boot partition and 3 rootfs partitions +# created from core-image-minimal and wic-image-minimal image recipes. + +part /boot --source bootimg-pcbios --ondisk vda --label boot --active --align 1024 +part / --source rootfs --ondisk vda --fstype=ext4 --label platform --align 1024 --use-uuid +part /mnt --source rootfs --rootfs-dir=core-image-minimal --ondisk vda --fstype=ext4 --label core --align 1024 +part backup --source rootfs --rootfs-dir=wic-image-minimal --ondisk vda --fstype=ext4 --label backup --align 1024 + +bootloader --ptable gpt --timeout=0 --append="rootwait console=tty0" diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/m4/m4_1.4.17.bbappend b/import-layers/yocto-poky/meta-selftest/recipes-test/m4/m4_1.4.17.bbappend new file mode 100644 index 000000000..205720982 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/m4/m4_1.4.17.bbappend @@ -0,0 +1,2 @@ +# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests. +include test_recipe.inc diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/man/man/man-1.5h1-make.patch b/import-layers/yocto-poky/meta-selftest/recipes-test/man/man/man-1.5h1-make.patch new file mode 100644 index 000000000..a0d59b78c --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/man/man/man-1.5h1-make.patch @@ -0,0 +1,16 @@ +Test patch here! +This is invalid patch used by tests in scripts/lib/selftests. + +--- man-1.5g/man/Makefile.in.mike Fri Apr 9 13:35:54 1999 ++++ man-1.5g/man/Makefile.in Fri Apr 9 13:36:45 1999 +@@ -1,8 +1,8 @@ + #MAKE THIS PATCH INVALID + MAN1 = man whatis apropos +-MAN5 = man.conf ++MAN5 = man.config + MAN8 = makewhatis +-ALL = man.1 whatis.1 apropos.1 man.conf.5 ++ALL = man.1 whatis.1 apropos.1 man.config.5 + MAYBE8 = makewhatis + + .SUFFIXES: .man .1 .5 .8 diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/man/man_1.6g.bbappend b/import-layers/yocto-poky/meta-selftest/recipes-test/man/man_1.6g.bbappend new file mode 100644 index 000000000..205720982 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/man/man_1.6g.bbappend @@ -0,0 +1,2 @@ +# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests. +include test_recipe.inc diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/add-file.patch b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/add-file.patch new file mode 100644 index 000000000..bdc99c94f --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/add-file.patch @@ -0,0 +1,8 @@ +diff --git a/file2 b/file2 +new file mode 100644 +index 0000000..049b42e +--- /dev/null ++++ b/file2 +@@ -0,0 +1,2 @@ ++Test file 2 ++456 diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/file1 b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/file1 new file mode 100644 index 000000000..7571aa7a8 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/file1 @@ -0,0 +1,2 @@ +First test file +123 diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/installscript.sh b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/installscript.sh new file mode 100644 index 000000000..9de30d69c --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/installscript.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Third file" > $1/selftest-replaceme-scripted + diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-func b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-func new file mode 100644 index 000000000..2802bb348 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-func @@ -0,0 +1 @@ +A file installed by a function called by do_install diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-globfile b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-globfile new file mode 100644 index 000000000..996298bf1 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-globfile @@ -0,0 +1 @@ +A file matched by a glob in do_install diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-todir-globfile b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-todir-globfile new file mode 100644 index 000000000..585ae3e9b --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-todir-globfile @@ -0,0 +1 @@ +A file matched by a glob in do_install to a directory diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-orig b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-orig new file mode 100644 index 000000000..593d6a0bb --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-orig @@ -0,0 +1 @@ +Straight through with same nam diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-src-globfile b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-src-globfile new file mode 100644 index 000000000..1e20a2b03 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-src-globfile @@ -0,0 +1 @@ +A file matched by a glob in SRC_URI diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-todir b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-todir new file mode 100644 index 000000000..85bd5eba4 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/selftest-replaceme-todir @@ -0,0 +1 @@ +File in SRC_URI installed just to directory path diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/subdir/fileinsubdir b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/subdir/fileinsubdir new file mode 100644 index 000000000..d516b4951 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/files/subdir/fileinsubdir @@ -0,0 +1 @@ +A file in a subdirectory diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb new file mode 100644 index 000000000..7d0a040be --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb @@ -0,0 +1,42 @@ +SUMMARY = "Test recipe for recipetool appendfile" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +INHIBIT_DEFAULT_DEPS = "1" + +SRC_URI = "file://installscript.sh \ + file://selftest-replaceme-orig \ + file://selftest-replaceme-todir \ + file://file1 \ + file://add-file.patch \ + file://subdir \ + file://selftest-replaceme-src-glob* \ + file://selftest-replaceme-inst-globfile \ + file://selftest-replaceme-inst-todir-globfile \ + file://selftest-replaceme-inst-func" + +install_extrafunc() { + install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func +} + +do_install() { + install -d ${D}${datadir}/ + install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig + install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir} + install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed + install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir + install -m 0644 ${WORKDIR}/selftest-replaceme-src-globfile ${D}${datadir}/selftest-replaceme-src-globfile + cp ${WORKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile + cp ${WORKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir} + install -d ${D}${sysconfdir} + install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched + sh ${WORKDIR}/installscript.sh ${D}${datadir} + install_extrafunc +} + +pkg_postinst_${PN} () { + echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst +} + +FILES_${PN} += "${datadir}" + diff --git a/import-layers/yocto-poky/meta-selftest/recipes-test/xcursor-transparent-theme/xcursor-transparent-theme_%.bbappend b/import-layers/yocto-poky/meta-selftest/recipes-test/xcursor-transparent-theme/xcursor-transparent-theme_%.bbappend new file mode 100644 index 000000000..205720982 --- /dev/null +++ b/import-layers/yocto-poky/meta-selftest/recipes-test/xcursor-transparent-theme/xcursor-transparent-theme_%.bbappend @@ -0,0 +1,2 @@ +# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests. +include test_recipe.inc |