summaryrefslogtreecommitdiffstats
path: root/patches/01_fix-tests-output.patch
blob: 120b9a8243ca0fe511ac8c41fbce85af34169da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Author: "P. J. McDermott" <pj@pehjota.net>
Subject: Fix tests output

ProteanOS's BusyBox is built without support for echo's -n option, so this
happens:

    if [ 'xamd64-linux-glibc' = 'xamd64-linux-glibc' ]; then \
    	oh-autotest; \
    fi
    make[1]: Entering directory `/usr/src/pkgconf_0.9.6-1/tmp/src'
    /bin/sh tests/run.sh ./pkgconf
    -n .
    -n .
    -n .
    [...]
    -n .
    -n .
    
    83 tests done. All succeeded.
    make[1]: Leaving directory `/usr/src/pkgconf_0.9.6-1/tmp/src'

diff -Naur src.orig/tests/run.sh.in src/tests/run.sh.in
--- src.orig/tests/run.sh.in	2014-06-07 16:32:08.000000000 -0400
+++ src/tests/run.sh.in	2014-06-14 02:12:18.663272084 -0400
@@ -34,7 +34,7 @@
 	done
 
 	if [ ${t_ret} -eq 0 ]; then
-		echo -n "."
+		printf "."
 	else
 		failed=$(( failed + 1 ))
 	fi