aboutsummaryrefslogtreecommitdiff
path: root/src/test/runtests.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-26 08:43:05 +0000
committerRoy Marples <roy@marples.name>2008-03-26 08:43:05 +0000
commit1b40379a79cb96d9ca8fb0d268a73fe7426fbf5c (patch)
treeb6a5ffd513401d2f55f04ceda2cba45ac074e56c /src/test/runtests.sh
parentbe1f9b0a93ac3af0899fc7cf70ed7604dbc598a4 (diff)
We should sort using LC_ALL=C to avoid locale issues.
Diffstat (limited to 'src/test/runtests.sh')
-rwxr-xr-xsrc/test/runtests.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/runtests.sh b/src/test/runtests.sh
index 47bac3b1..01e4dd8f 100755
--- a/src/test/runtests.sh
+++ b/src/test/runtests.sh
@@ -24,14 +24,14 @@ ebegin "Checking exported symbols in libeinfo.so (data)"
checkit einfo.data $(
readelf -Ws ${libeinfo_builddir}/libeinfo.so \
| awk '$4 == "OBJECT" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
- | sort -u
+ | LC_ALL=C sort -u
)
ebegin "Checking exported symbols in libeinfo.so (functions)"
checkit einfo.funcs $(
readelf -Ws ${libeinfo_builddir}/libeinfo.so \
| awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
- | sort -u \
+ | LC_ALL=C sort -u \
| egrep -v \
-e '^_(init|fini)$'
)
@@ -40,25 +40,25 @@ ebegin "Checking exported symbols in librc.so (data)"
checkit rc.data $(
readelf -Ws ${librc_builddir}/librc.so \
| awk '$4 == "OBJECT" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
- | sort -u
+ | LC_ALL=C sort -u
)
ebegin "Checking exported symbols in librc.so (functions)"
checkit rc.funcs $(
readelf -Ws ${librc_builddir}/librc.so \
| awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
- | sort -u \
+ | LC_ALL=C sort -u \
| egrep -v \
-e '^_(init|fini)$'
)
ebegin "Checking hidden functions in librc.so"
sed -n '/^librc_hidden_proto/s:.*(\(.*\))$:\1:p' ${librc_srcdir}/librc.h \
- | sort -u \
+ | LC_ALL=C sort -u \
> librc.funcs.hidden.list
readelf -Wr $(grep -l '#include[[:space:]]"librc\.h"' ${librc_srcdir}/*.c | sed 's:\.c$:.o:') \
| awk '$5 ~ /^rc_/ {print $5}' \
- | sort -u \
+ | LC_ALL=C sort -u \
| egrep -v '^rc_environ_fd$' \
> librc.funcs.hidden.out
syms=$(diff -u librc.funcs.hidden.list librc.funcs.hidden.out | sed -n '/^+[^+]/s:^+::p')