#
# 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 \
    imagemagick \
    jemalloc \
    jq \
    leveldb \
    libcereal \
    libdbi-perl \
    libgpiod \
    libjcat \
    libio-pty-perl \
    libmanette \
    libplist \
    librelp \
    libssh \
    libteam \
    libtinyxml2 \
    libtoml11 \
    libxml++-5.0 \
    libyang \
    lmdb \
    mbedtls \
    microsoft-gsl \
    minicoredumper \
    minizip-ng \
    neon \
    nlohmann-json \
    nodejs \
    onig \
    oprofile \
    pegtl \
    protobuf \
    pv \
    sdbus-c++ \
    tomlplusplus \
    uriparser \
    utf8proc \
    uthash \
    xmlsec1 \
    ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '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 \
    libusb-compat \
    mariadb \
    re2 \
    rocksdb \
"
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"
