t2sde/tests/004-awk.cmd
René Rebe 307cadbae9 * imported unit tests from int repo
git-svn-id: https://svn.exactcode.de/t2/trunk@69305 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
2024-06-04 14:42:09 +00:00

12 lines
154 B
Batchfile

#!/bin/sh
[ "$QEMU" ] || exit 43
[ -e $SYSROOT/bin/sh ] || exit 42
echo "1
2
3
4" |
$QEMU -chroot $SYSROOT bin/awk '{ sum += $1 }; END { print sum }'