#
# Lists of the ptest in meta-oe, sorted into two sets by the time they take
# Please keep these sorted in alphabetical order
#
# A first pass at getting all meta-oe recipes which inherit ptest
# meta_oe_ptest_recipes=$(bitbake-layers show-recipes --recipes-only --layer meta-oe --inherits ptest --bare | tr '\n' ' ' | pcregrep -o1 '^NOTE:.+===(.+)$')
#
# ptests which take less than ~30s each
PTESTS_FAST_META_OE = "\
    asio \
    audiofile \
    botan \
    cjson \
    cli11 \
    cmocka \
    conserver \
    cunit \
    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'dbus-broker', '', d)} \
    duktape \
    exiv2 \
    freerdp3 \
    fuse3 \
    function2 \
    fwupd \
    gcab \
    googletest \
    hunspell \
    imagemagick \
    jemalloc \
    jq \
    lcms \
    leveldb \
    libcereal \
    libdbi-perl \
    libgpiod \
    libjcat \
    libio-pty-perl \
    libmanette \
    libpcre \
    libplist \
    librelp \
    libssh \
    libteam \
    libtinyxml2 \
    libtoml11 \
    libxml++-5.0 \
    libyang \
    lmdb \
    mbedtls \
    microsoft-gsl \
    minicoredumper \
    minizip-ng \
    neon \
    nlohmann-json \
    nodejs \
    onig \
    openjpeg \
    oprofile \
    pegtl \
    pv \
    sdbus-c++ \
    tomlplusplus \
    uriparser \
    utf8proc \
    uthash \
    xdg-dbus-proxy \
    ${@bb.utils.contains('DISTRO_FEATURES', 'pam x11', 'xrdp', '', d)} \
    zeromq \
"
PTESTS_FAST_META_OE:append:x86 = " mcelog"
PTESTS_FAST_META_OE:append:x86-64 = " mcelog"

PTESTS_FAST_META_OE:remove:libc-musl = "jemalloc minicoredumper oprofile"
PTESTS_FAST_META_OE:remove:riscv64 = "nodejs oprofile"
# botan needs go
PTESTS_FAST_META_OE:remove:riscv32 = "botan nodejs oprofile"

PTESTS_SLOW_META_OE = "\
    c-ares \
    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'freerdp', '', d)} \
    fftw \
    jsoncpp \
    libusb-compat \
    mariadb \
    postgresql \
    re2 \
    rocksdb \
    tbb \
"
PTESTS_SLOW_META_OE:append:x86 = " kernel-selftest"
PTESTS_SLOW_META_OE:append:x86-64 = " kernel-selftest"
PTESTS_SLOW_META_OE:remove:libc-musl = "kernel-selftest"

PTESTS_PROBLEMS_META_OE = "\
    keyutils \
    ostree \
    poco \
    psqlodbc \
    rsyslog \
"
PTESTS_PROBLEMS_META_OE:append:libc-musl = " jemalloc minicoredumper oprofile"
