]> git.draconx.ca Git - gentoo-draconx.git/blob - sys-apps/mosys/files/mosys-verbose-library-tests.patch
Add mosys ebuild.
[gentoo-draconx.git] / sys-apps / mosys / files / mosys-verbose-library-tests.patch
1 From 19547bc72e2fb9a5d314d778b1cbf277c9dd882b Mon Sep 17 00:00:00 2001
2 From: Nick Bowler <nbowler@draconx.ca>
3 Date: Fri, 21 Apr 2017 22:01:48 -0400
4 Subject: [PATCH] Make library tests verbose.
5
6 Hard to tell WTF is going on when the commands are suppressed.  Get rid
7 of the pass/fail messages too since we don't need suggestions in ebuild
8 logs.
9 ---
10  Makefile | 10 ++--------
11  1 file changed, 2 insertions(+), 8 deletions(-)
12
13 diff --git a/Makefile b/Makefile
14 index 74cbec32d607..cedc40284c94 100644
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -1013,10 +1013,7 @@ export LIBUUID_TEST
18  test_libuuid:
19         @echo "Testing libuuid..."
20         @echo "$$LIBUUID_TEST" > .uuid_test.c
21 -       @$(CC) $(CFLAGS) $(CC_LDFLAGS) -o .uuid_test .uuid_test.c -luuid >/dev/null 2>&1 && \
22 -       echo "libuuid test passed." || \
23 -       ( echo "libuuid test failed. Please install libuuid" ; exit 1)
24 -       @rm -f .uuid_test.c .uuid_test
25 +       $(CC) $(CFLAGS) $(CC_LDFLAGS) -o .uuid_test .uuid_test.c -luuid
26  
27  define LIBFMAP_TEST
28  #include <inttypes.h>
29 @@ -1033,10 +1030,7 @@ export LIBFMAP_TEST
30  test_libfmap:
31         @echo "Testing libfmap..."
32         @echo "$$LIBFMAP_TEST" > .fmap_test.c
33 -       @$(CC) $(CFLAGS) $(CC_LDFLAGS) -o .fmap_test .fmap_test.c $(FMAP_LINKOPT) >/dev/null 2>&1 && \
34 -       echo "libfmap test passed." || \
35 -       ( echo "libfmap test failed. Please install libfmap (http://flashmap.googlecode.com)"; exit 1 )
36 -       @rm -f .fmap_test.c .fmap_test
37 +       $(CC) $(CFLAGS) $(CC_LDFLAGS) -o .fmap_test .fmap_test.c $(FMAP_LINKOPT)
38  
39  libcheck: test_libuuid test_libfmap
40  
41 -- 
42 2.10.2
43