summaryrefslogtreecommitdiff
path: root/embedded-test.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-05-31 02:47:07 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-05-31 02:47:07 -0500
commit7405c014267e569ed0e7109c4b037d6045f0353a (patch)
tree577d23b31ea588de45e6015fd638c98ce04aca54 /embedded-test.sh
parent01233129ce297438afeecccba3e940cada093c20 (diff)
fix for dash
Diffstat (limited to 'embedded-test.sh')
-rwxr-xr-xembedded-test.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/embedded-test.sh b/embedded-test.sh
index 5650b8e..2918086 100755
--- a/embedded-test.sh
+++ b/embedded-test.sh
@@ -165,7 +165,7 @@ runtest() {
qemu=qemu-system-${arch}
qemu_args=
- if [[ $ntp ]]; then
+ if [ $ntp ]; then
qemu_append="-append ntpserver=$ntp"
fi
if [ $shell -eq 1 ]; then
@@ -386,18 +386,18 @@ runtest() {
cat > ${root}/run.sh << EOF
#!/bin/sh
uname -a
-if [[ \$ntpserver ]]; then
+if [ \$ntpserver ]; then
rdate \$ntpserver
else
rdate time.fu-berlin.de
fi
-file /bin/busybox
EOF
if [ $test = "boot" ];then
cat >> ${root}/run.sh << EOF
+file /bin/busybox
+size /bin/busybox
for i in \$(ls /lib/*.so|grep -v libgcc);do
- size /bin/busybox
size \$i
done
exit
@@ -422,7 +422,7 @@ EOF
musl|glibc)
cat >> ${root}/run.sh << EOF
cd /opt/libc-test
-make run
+CC=: make run
exit
EOF
;;