[PATCHv1 2/3] tests: build tests by default

Josh Boyer jwboyer at gmail.com
Tue Apr 5 08:44:24 EDT 2011


On Tue, Apr 5, 2011 at 7:33 AM, Andy Shevchenko
<ext-andriy.shevchenko at nokia.com> wrote
>
> -install:: ${TARGETS} ${SCRIPTS}
> +install:: ${TARGETS} ${SCRIPTS} tests
>        mkdir -p ${DESTDIR}/${SBINDIR}
>        install -m 0755 ${TARGETS} ${SCRIPTS} ${DESTDIR}/${SBINDIR}/
>        mkdir -p ${DESTDIR}/${MANDIR}/man1
> diff --git a/tests/Makefile b/tests/Makefile
> new file mode 100644
> index 0000000..05b37e9
> --- /dev/null
> +++ b/tests/Makefile
> @@ -0,0 +1,8 @@
> +
> +SUBDIRS = checkfs fs-tests jittertest ubi-tests
> +
> +all clean tests: $(SUBDIRS)
> +
> +.PHONY: $(SUBDIRS)
> +$(SUBDIRS):
> +       $(MAKE) -C $@ $(MAKECMDGOALS)

We don't want the tests installed by default, do we?  If we do for
some reason, it might be better to stick them in
/usr/libexec/mtd-utils/ or /usr/share/mtd-utils/ or something.  I
doubt we need them sitting in /usr/sbin,/sbin,/bin,/usr/bin on 99% of
the installs.

josh



More information about the linux-mtd mailing list