From 995627d04eb73abd689ba243c058616d4dfd3b58 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 8 Feb 2012 01:51:17 -0200 Subject: [PATCH] build-sys: add rule to pack rootfs --- Makefile.am | 5 +++++ testsuite/README | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e847c5df..141c1026 100644 --- a/Makefile.am +++ b/Makefile.am @@ -157,6 +157,11 @@ testsuite_init_module_la_LIBADD = libkmod/libkmod-private.la testsuite-distclean: -rm -rf testsuite/rootfs +testsuite-pack-rootfs: + $(AM_V_GEN) ( cd testsuite && tar -cJf \ + $(abs_top_srcdir)/testsuite/rootfs.tar.xz \ + rootfs ) + DISTCLEAN_LOCAL_HOOKS += testsuite-distclean EXTRA_DIST += testsuite/rootfs.tar.xz diff --git a/testsuite/README b/testsuite/README index e7e58b28..d5843bfc 100644 --- a/testsuite/README +++ b/testsuite/README @@ -50,7 +50,7 @@ pay attention when writing a test: expected not to be 0. 7 - If you added files to the rootfs, be sure to compact it back to - rootfs.tar.xz before sending patches. + rootfs.tar.xz before sending patches: use 'make testsuite-pack-rootfs' 8 - Tests can be run individually, outside of 'make check'. strace and gdb work too, as long as you tell them to operate on child process. -- 2.47.2