summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-14 02:44:43 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-14 02:44:43 (EDT)
commitc71b6162fa8e41f8d265f63ebe20a318ba7e0932 (patch)
tree6719c915a1afd24528abd33976b5e93448ced9ff
parent3d6b94d5e120a85d3ff845828967373873a8fab5 (diff)
Add patch to fix tests output.
-rw-r--r--patches/01_fix-tests-output.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/01_fix-tests-output.patch b/patches/01_fix-tests-output.patch
new file mode 100644
index 0000000..120b9a8
--- /dev/null
+++ b/patches/01_fix-tests-output.patch
@@ -0,0 +1,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