build-sys: add rule to pack rootfs
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 8 Feb 2012 03:51:17 +0000 (01:51 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 8 Feb 2012 04:04:10 +0000 (02:04 -0200)
Makefile.am
testsuite/README

index e847c5d..141c102 100644 (file)
@@ -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
 
index e7e58b2..d5843bf 100644 (file)
@@ -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.