blob: a4498fa44ed327ce31c0e58f909e50d14b37a651 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001require mariadb.inc
2
Andrew Geissler220dafd2023-10-04 10:18:08 -05003inherit ptest
4SRC_URI += "${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', d)}"
5DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'rsync-native', '', d)}"
6RDEPENDS:${PN}-ptest += "cmake sed perl-module-test-more"
7
8do_install_ptest () {
9 rsync -a ${B}/unittest ${B}/dbug ${D}${PTEST_PATH} \
10 --exclude CMakeFiles \
11 --exclude cmake_install.cmake \
12 --exclude Makefile \
13 --exclude=*.a \
14 --exclude=*.h \
15 --exclude=*.o \
16 --exclude=*.so \
17 --exclude=*.d \
18 --exclude=*.txt
19 install -m 0755 -d ${D}${PTEST_PATH}/storage
20 rsync -a ${B}/storage/maria ${B}/storage/perfschema ${B}/storage/innobase ${D}${PTEST_PATH}/storage \
21 --exclude CMakeFiles \
22 --exclude cmake_install.cmake \
23 --exclude Makefile \
24 --exclude=*.a \
25 --exclude=*.h \
26 --exclude=*.o \
27 --exclude=*.so \
28 --exclude=*.d \
29 --exclude=*.txt
30 cp -r ${B}/CTestTestfile.cmake ${D}${PTEST_PATH}
31 sed -i -e 's#${WORKDIR}##g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
32}
33
Patrick Williams2194f502022-10-16 14:26:09 -050034DEPENDS += "mariadb-native bison-native boost libpcre2 curl ncurses \
Andrew Geissler615f2f12022-07-15 14:00:58 -050035 zlib libaio libedit libevent libxml2 gnutls fmt lzo zstd"
Andrew Geissler9aee5002022-03-30 16:27:02 +000036
37PROVIDES += "mysql5 libmysqlclient"
38
39RPROVIDES:${PN} += "mysql5"
40RREPLACES:${PN} += "mysql5"
41RCONFLICTS:${PN} += "mysql5"
42
43RPROVIDES:${PN}-dbg += "mysql5-dbg"
44RREPLACES:${PN}-dbg += "mysql5-dbg"
45RCONFLICTS:${PN}-dbg += "mysql5-dbg"
46
47RPROVIDES:${PN}-leftovers += "mysql5-leftovers"
48RREPLACES:${PN}-leftovers += "mysql5-leftovers"
49RCONFLICTS:${PN}-leftovers += "mysql5-leftovers"
50
51RPROVIDES:${PN}-client += "mysql5-client"
52RREPLACES:${PN}-client += "mysql5-client"
53RCONFLICTS:${PN}-client += "mysql5-client"
54
55RPROVIDES:${PN}-server += "mysql5-server"
56RREPLACES:${PN}-server += "mysql5-server"
57RCONFLICTS:${PN}-server += "mysql5-server"