mirror of
https://git.yoctoproject.org/poky
synced 2026-07-25 18:57:02 +00:00
36f6caae93
These script use /bin/sh as the interpreter, but contains bashism:
recipes-devtools/insserv/files/run-ptest
recipes-devtools/quilt/quilt/run-ptest
recipes-devtools/tcltk/tcl/run-ptest
recipes-extended/gawk/gawk-4.1.1/run-ptest
recipes-support/beecrypt/beecrypt/run-ptest
Fixed:
"==" -> "=" (should be -eq when integer)
"&>log" -> ">log 2>&1"
And quilt's test scripts requires bash, add bash to RDEPENDS_quilt-ptest
(From OE-Core rev: 70c6e0b84d3e17807cbea0677df2f0772a284130)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
261 B
Bash
18 lines
261 B
Bash
#!/bin/sh
|
|
|
|
basedir=$(dirname $0)
|
|
. $basedir/common
|
|
|
|
output() {
|
|
if [ $? -eq 0 ]; \
|
|
then echo "PASS: $i"; \
|
|
else echo "FAIL: $i"; \
|
|
fi;
|
|
}
|
|
|
|
for i in test_simple_sequence test_undetected_loop; \
|
|
do $i >/dev/null 2>&1; output; \
|
|
done
|
|
|
|
rm -rf ${tmpdir}
|