Commit Graph

19 Commits

Author SHA1 Message Date
Paul Ewing a7987e94de Update packaging/installation for new man pages 2020-09-15 22:18:56 -07:00
Jens Axboe a81c0849f9 test/runtests.sh: add dmesg check
Lifted this from blktests, basically it just checks for known patterns
of kernel complaints. If we trigger one while running a test, we fail
the test case.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-06-15 10:49:27 -06:00
Stefan Metzmacher 3e63af4f25 Fix liburing.so symlink source if libdir != libdevdir
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-07 09:24:28 -07:00
Stefan Metzmacher b57dbc2d30 configure/Makefile: introduce libdevdir defaults to $(libdir)
This makes it possible to install runtime libraries to
/lib/* and developement libraries to /usr/lib/*

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06 12:11:08 -07:00
Johannes Thumshirn 6e3f6f3a35 liburing: create an installation target for tests
Create an installation target for liburing's regression test suite.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-28 08:00:55 -07:00
Jackie Liu 2e7d744903 built liburing.so and test binary first when runtests
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-19 20:35:57 -07:00
Stefan Hajnoczi 9f4714c22c Makefile: add missing .pc dependency on .spec file
The version number is extracted from the .spec file.  Make .pc depend on
.spec so that VERSION variable substitutions are always up-to-date.

Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-05 08:13:39 -07:00
Jens Axboe 4fb3c9e9c7 Add runtests-loop target
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-10-24 19:19:49 -06:00
Stefan Hajnoczi 3af7ea17bc pkgconfig: add missing config-host.mak dependency
Rebuild the .pc file when config-host.mak changes since @prefix@,
@libdir@, etc could have changed.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-07-24 09:11:44 -06:00
Stefan Hajnoczi fd26c1a2f0 configure: move directory options to ./configure
libdir is hardcoded to ${prefix}/lib in Makefile.  Fedora x86_64 uses
/usr/lib64 and this means libaries will be installed in the wrong place.

This patch moves prefix, includedir, libdir, and mandir into ./configure
for easier customization.  To build and install on Fedora x86_64:

  # ./configure --libdir=/usr/lib64
  # make && make install

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-25 06:36:33 -06:00
Stefan Hajnoczi 1b049c1265 pkgconfig: install a liburing.pc file
pkg-config (https://pkgconfig.freedesktop.org/) makes it easier to build
applications that have library dependencies.  Libraries ship .pc files
containing the compiler and linker flags needed to build successfully.
This saves applications from hardcoding these details into their build
scripts, especially when these details can change between operating
systems or distributions.

To build a liburing application:

  gcc $(pkg-config --cflags --libs liburing) -o myapp myapp.c

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-25 06:36:21 -06:00
Weiping Zhang 2e719820d4 clean examples when make clean
Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-21 10:52:20 -06:00
Kevin Vigor 54cc960db0 liburing: improve 'make install'
'make install' did not install all the headers necessary to use the
library; fix.

Additionally allow specifying the install prefix, which was previously
hardcoded to /usr.

Signed-off-by: Kevin Vigor <kvigor@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-06 15:44:58 -06:00
Shenghui Wang 6cd873cec6 liburing: install man pages on running 'make install'
Install man pages on running 'make install', so that
we can run commands like 'man 2 io_uring_setup'.

Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-04-26 06:42:42 -06:00
Jens Axboe 4916320ec3 Separate test cases from examples
Also adds a runtests makefile target.
2019-04-17 11:39:39 -06:00
Jens Axboe b080d0680c Makefile: add cscope target
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-03-05 16:19:59 -07:00
Jens Axboe f16b83b293 Add configure script
Some older installs don't have __kernel_rwf_t in linux/fs.h, so
add a check for that.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-01-15 11:19:16 -07:00
Jens Axboe baa8d243cc Add simple test/ Makefile
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-01-08 15:49:32 -07:00
Jens Axboe f93c84e1b0 Initial commit
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-01-08 07:38:15 -07:00