From e8ee8e30ce859c804ea6dcfa5c2439a2c5747925 Mon Sep 17 00:00:00 2001 From: Lucius Hu Date: Tue, 1 Sep 2020 19:34:05 -0400 Subject: [PATCH] removed testfiles for BitBake modules --- tests/testfiles/bb/catkin-runtime_0.6.19.bb | 30 ------ tests/testfiles/bb/catkin.inc | 32 ------ tests/testfiles/bb/catkin_0.6.19.bb | 20 ---- tests/testfiles/bb/htop_1.0.3.bb | 22 ---- tests/testfiles/bb/op_tests.bb | 17 --- tests/testfiles/bb/vim_8.0.0983.bb | 112 -------------------- 6 files changed, 233 deletions(-) delete mode 100644 tests/testfiles/bb/catkin-runtime_0.6.19.bb delete mode 100644 tests/testfiles/bb/catkin.inc delete mode 100644 tests/testfiles/bb/catkin_0.6.19.bb delete mode 100644 tests/testfiles/bb/htop_1.0.3.bb delete mode 100644 tests/testfiles/bb/op_tests.bb delete mode 100644 tests/testfiles/bb/vim_8.0.0983.bb diff --git a/tests/testfiles/bb/catkin-runtime_0.6.19.bb b/tests/testfiles/bb/catkin-runtime_0.6.19.bb deleted file mode 100644 index 55617cc..0000000 --- a/tests/testfiles/bb/catkin-runtime_0.6.19.bb +++ /dev/null @@ -1,30 +0,0 @@ -ROS_SPN = "catkin" - -require catkin.inc - -SRC_URI += "\ - file://0001-ignore-LD_LIBRARY_PATH-set-in-environment_cache.py.patch \ - " - -S = "${WORKDIR}/catkin-${PV}" - -# This package includes ONLY the python packages AND catkin_find -# The catkin_${PV} package includes all other files -# from the catkin tool. -FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR} ${ros_bindir}/catkin_find" - -RDEPENDS_${PN}_class-native = "" -RDEPENDS_${PN} = "\ - ${PYTHON_PN}-catkin-pkg ${PYTHON_PN}-argparse ${PYTHON_PN}-misc ${PYTHON_PN}-multiprocessing \ - ${PYTHON_PN}-shell ${PYTHON_PN}-subprocess ${PYTHON_PN}-xml ${PYTHON_PN}-pkgutil" - -# Delete everything but the python packages in order to avoid -# that the QA error [installed-vs-shipped] hits on us. -do_install_append() { - rm ${D}${ros_bindir}/catkin_*_* - rm ${D}${ros_bindir}/catkin_make - rm -rf ${D}${ros_datadir} - rm -rf ${D}${ros_libdir}/pkgconfig -} - -BBCLASSEXTEND += "native" diff --git a/tests/testfiles/bb/catkin.inc b/tests/testfiles/bb/catkin.inc deleted file mode 100644 index 157c931..0000000 --- a/tests/testfiles/bb/catkin.inc +++ /dev/null @@ -1,32 +0,0 @@ -DESCRIPTION = "Low-level build system macros and infrastructure for ROS" -SECTION = "devel" -LICENSE = "BSD" -LIC_FILES_CHKSUM = "file://package.xml;beginline=7;endline=7;md5=d566ef916e9dedc494f5f793a6690ba5" - -DEPENDS = "cmake ${PYTHON_PN}-empy-native ${PYTHON_PN}-catkin-pkg-native" - -SRC_URI = "https://github.com/ros/${ROS_SPN}/archive/${PV}.tar.gz;downloadfilename=${ROS_SP}.tar.gz" -SRC_URI[md5sum] = "d58460cc9112812d8c4e6ecf98bbcc85" -SRC_URI[sha256sum] = "90a639d67db7f9039487af555e432a5b4b6e339f22892d75d03b823b3f38c947" - -SRC_URI += "\ - file://0001-CATKIN_WORKSPACES-Don-t-require-.catkin-file.patch \ - file://0001-use-python-provided-by-environment-instead-of-the-ge.patch \ - file://0001-avoid-using-host-s-paths-when-cross-compiling.patch \ - file://0001-relocate-dependency-s-headers-to-current-sysroot.patch \ - ${@'file://0001-python.cmake-look-for-python3-first.patch' if d.getVar('PYTHON_PN', True) == 'python3' else ''} \ - " - -inherit catkin - -FILES_${PN}-dev += "\ - ${ros_datadir}/eigen/cmake \ - ${ros_datadir}/ros/cmake \ - ${ros_datadir}/.catkin \ - ${ros_prefix}/.catkin \ - ${ros_prefix}/.rosinstall \ - ${ros_prefix}/_setup_util.py \ - ${ros_prefix}/env.sh \ - ${ros_prefix}/setup.* \ - " - diff --git a/tests/testfiles/bb/catkin_0.6.19.bb b/tests/testfiles/bb/catkin_0.6.19.bb deleted file mode 100644 index c74f998..0000000 --- a/tests/testfiles/bb/catkin_0.6.19.bb +++ /dev/null @@ -1,20 +0,0 @@ -require catkin.inc - -DEPENDS_class-native += "catkin-runtime" - -RDEPENDS_${PN}_class-native = "${PYTHON_PN}-catkin-pkg" -RDEPENDS_${PN} = "cmake make binutils binutils-symlinks gcc gcc-symlinks g++ g++-symlinks \ - catkin-runtime" - -# The files in ${PYTHON_SITEPACKAGES_DIR} and catkin_find are -# installed by the catkin-runtime package. Therefore, we remove -# them here so that they are not installed. -# Moreover: the ${ros_libdir}/python2.7 is empty. We need to -# remove it, otherwise the QA error [installed-vs-shipped] will hit on us. -do_install_append() { - rm ${D}${ros_bindir}/catkin_find - rm -rf ${D}${PYTHON_SITEPACKAGES_DIR} - rmdir ${D}${ros_libdir}/${PYTHON_DIR} -} - -BBCLASSEXTEND += "native" diff --git a/tests/testfiles/bb/htop_1.0.3.bb b/tests/testfiles/bb/htop_1.0.3.bb deleted file mode 100644 index 181661a..0000000 --- a/tests/testfiles/bb/htop_1.0.3.bb +++ /dev/null @@ -1,22 +0,0 @@ -SUMMARY = "htop process monitor" -HOMEPAGE = "http://htop.sf.net" -SECTION = "console/utils" -LICENSE = "GPLv2" - -LIC_FILES_CHKSUM = "file://COPYING;md5=c312653532e8e669f30e5ec8bdc23be3" - -DEPENDS = "ncurses" -RDEPENDS_${PN} = "ncurses-terminfo" - -SRC_URI = "http://hisham.hm/htop/releases/${PV}/htop-${PV}.tar.gz" - -SRC_URI[md5sum] = "e768b9b55c033d9c1dffda72db3a6ac7" -SRC_URI[sha256sum] = "055c57927f75847fdc222b5258b079a9542811a9dcf5421c615c7e17f55d1829" - -LDFLAGS_append_libc-uclibc = " -lubacktrace" - -do_configure_prepend () { - rm -rf ${S}/config.h -} - -inherit autotools diff --git a/tests/testfiles/bb/op_tests.bb b/tests/testfiles/bb/op_tests.bb deleted file mode 100644 index 5b506e9..0000000 --- a/tests/testfiles/bb/op_tests.bb +++ /dev/null @@ -1,17 +0,0 @@ -ONE ??= "first value" -ONE ?= "second value" - -TWO ?= "first value" -TWO ??= "second value" - -THREE ??= "first value" -THREE ?= "second value" -THREE = "third value" - -FOUR = "first value" -FOUR += "second value" -FOUR =+ "third value" - -FIVE = "first value" -FIVE .= "second value" -FIVE =. "third value" diff --git a/tests/testfiles/bb/vim_8.0.0983.bb b/tests/testfiles/bb/vim_8.0.0983.bb deleted file mode 100644 index 407ce5e..0000000 --- a/tests/testfiles/bb/vim_8.0.0983.bb +++ /dev/null @@ -1,112 +0,0 @@ -SUMMARY = "Vi IMproved - enhanced vi editor" -SECTION = "console/utils" -DEPENDS = "ncurses gettext-native" -# vimdiff doesn't like busybox diff -RSUGGESTS_${PN} = "diffutils" -LICENSE = "vim" -LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=eea32ac1424bba14096736a494ae9045" - -SRC_URI = "git://github.com/vim/vim.git \ - file://disable_acl_header_check.patch;patchdir=.. \ - file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \ -" -SRCREV = "3f9a1ff141412e9e85f7dff47d02946cb9be9228" - -S = "${WORKDIR}/git/src" - -VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" - -inherit autotools update-alternatives -inherit autotools-brokensep - -# vim configure.in contains functions which got 'dropped' by autotools.bbclass -do_configure () { - rm -f auto/* - touch auto/config.mk - aclocal - autoconf - oe_runconf - touch auto/configure - touch auto/config.mk auto/config.h -} - -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny -PACKAGECONFIG ??= "" -PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}" - -PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+," -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," -PACKAGECONFIG[x11] = "--with-x,--without-x,xt," -PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," -PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," - -EXTRA_OECONF = " \ - --disable-gpm \ - --disable-gtktest \ - --disable-xim \ - --disable-netbeans \ - --with-tlib=ncurses \ - ac_cv_small_wchar_t=no \ - vim_cv_getcwd_broken=no \ - vim_cv_memmove_handles_overlap=yes \ - vim_cv_stat_ignores_slash=no \ - vim_cv_terminfo=yes \ - vim_cv_tgent=non-zero \ - vim_cv_toupper_broken=no \ - vim_cv_tty_group=world \ - STRIP=/bin/true \ -" - -do_install() { - autotools_do_install - - # Work around file-rdeps picking up csh, awk, perl or python as a dep - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py - - # Install example vimrc from runtime files - install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc - - # we use --with-features=big as default - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} -} - -PARALLEL_MAKEINST = "" - -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" -FILES_${PN}-data = "${datadir}/${BPN}" -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" -FILES_${PN}-common = " \ - ${datadir}/${BPN}/${VIMDIR}/*.vim \ - ${datadir}/${BPN}/${VIMDIR}/autoload \ - ${datadir}/${BPN}/${VIMDIR}/colors \ - ${datadir}/${BPN}/${VIMDIR}/compiler \ - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ - ${datadir}/${BPN}/${VIMDIR}/indent \ - ${datadir}/${BPN}/${VIMDIR}/keymap \ - ${datadir}/${BPN}/${VIMDIR}/lang \ - ${datadir}/${BPN}/${VIMDIR}/macros \ - ${datadir}/${BPN}/${VIMDIR}/plugin \ - ${datadir}/${BPN}/${VIMDIR}/print \ - ${datadir}/${BPN}/${VIMDIR}/spell \ - ${datadir}/icons \ -" - -RDEPENDS_${BPN} = "ncurses-terminfo-base" -# Recommend that runtime data is installed along with vim -RRECOMMENDS_${BPN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common" - -ALTERNATIVE_${PN} = "vi vim" -ALTERNATIVE_TARGET = "${bindir}/${BPN}.${BPN}" -ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi" -ALTERNATIVE_LINK_NAME[vim] = "${bindir}/vim" -ALTERNATIVE_PRIORITY = "100" - -BBCLASSEXTEND = "native"