randomconfig testsuite fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
1602a5cdb9
commit
e3d90a90d4
@ -33,12 +33,14 @@ testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \
|
|||||||
testing "awk gsub falls back to non-extended-regex" \
|
testing "awk gsub falls back to non-extended-regex" \
|
||||||
"awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n"
|
"awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n"
|
||||||
|
|
||||||
tar xjf awk_t1.tar.bz2
|
optional FEATURE_SEAMLESS_BZ2
|
||||||
|
test x"$SKIP" != x"1" && tar xjf awk_t1.tar.bz2
|
||||||
testing "awk 'gcc build bug'" \
|
testing "awk 'gcc build bug'" \
|
||||||
"awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \
|
"awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \
|
||||||
"f842e256461a5ab1ec60b58d16f1114f -\n" \
|
"f842e256461a5ab1ec60b58d16f1114f -\n" \
|
||||||
"" ""
|
"" ""
|
||||||
rm -rf awk_t1_*
|
rm -rf awk_t1_* 2>/dev/null
|
||||||
|
SKIP=
|
||||||
|
|
||||||
Q='":"'
|
Q='":"'
|
||||||
|
|
||||||
|
@ -10,12 +10,15 @@ testing "expand" \
|
|||||||
"expand" \
|
"expand" \
|
||||||
" 12345678 12345678\n" \
|
" 12345678 12345678\n" \
|
||||||
"" \
|
"" \
|
||||||
"\t12345678\t12345678\n" \
|
"\t12345678\t12345678\n"
|
||||||
|
|
||||||
|
optional UNICODE_SUPPORT
|
||||||
testing "expand with unicode characher 0x394" \
|
testing "expand with unicode characher 0x394" \
|
||||||
"expand" \
|
"expand" \
|
||||||
"Δ 12345ΔΔΔ 12345678\n" \
|
"Δ 12345ΔΔΔ 12345678\n" \
|
||||||
"" \
|
"" \
|
||||||
"Δ\t12345ΔΔΔ\t12345678\n" \
|
"Δ\t12345ΔΔΔ\t12345678\n"
|
||||||
|
SKIP=
|
||||||
|
|
||||||
|
|
||||||
exit $FAILCOUNT
|
exit $FAILCOUNT
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# FEATURE: CONFIG_UNEXPAND
|
||||||
|
|
||||||
rm -f foo bar
|
rm -f foo bar
|
||||||
echo -e "\ty" | expand -t 3 ../../busybox > foo
|
echo -e "\ty" | expand -t 3 ../../busybox > foo
|
||||||
echo -e "\ty" | busybox unexpand -t 3 ../../busybox > bar
|
echo -e "\ty" | busybox unexpand -t 3 ../../busybox > bar
|
||||||
|
@ -28,6 +28,7 @@ be preserved
|
|||||||
is here:>\0< - they must be preserved
|
is here:>\0< - they must be preserved
|
||||||
" \
|
" \
|
||||||
|
|
||||||
|
optional UNICODE_SUPPORT
|
||||||
# The text was taken from English and Ukrainian wikipedia pages
|
# The text was taken from English and Ukrainian wikipedia pages
|
||||||
testing "fold -sw66 with unicode input" "fold -sw66" \
|
testing "fold -sw66 with unicode input" "fold -sw66" \
|
||||||
"\
|
"\
|
||||||
@ -54,6 +55,7 @@ Way.
|
|||||||
каталогом Мессьє та NGC224 за Новим загальним каталогом) — \
|
каталогом Мессьє та NGC224 за Новим загальним каталогом) — \
|
||||||
спіральна галактика, що знаходиться на відстані приблизно у 2,5 \
|
спіральна галактика, що знаходиться на відстані приблизно у 2,5 \
|
||||||
мільйони світлових років від нашої планети у сузір'ї Андромеди. \
|
мільйони світлових років від нашої планети у сузір'ї Андромеди. \
|
||||||
На початку ХХІ ст. в центрі галактики виявлено чорну дірку." \
|
На початку ХХІ ст. в центрі галактики виявлено чорну дірку."
|
||||||
|
SKIP=
|
||||||
|
|
||||||
exit $FAILCOUNT
|
exit $FAILCOUNT
|
||||||
|
@ -16,6 +16,7 @@ FILTER_LS2="sed -e 's/, */,/g' -e 's/ */ /g' | cut -d' ' -f 1-4,9-"
|
|||||||
rm -rf makedevs.testdir
|
rm -rf makedevs.testdir
|
||||||
mkdir makedevs.testdir
|
mkdir makedevs.testdir
|
||||||
|
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "makedevs -d ../makedevs.device_table.txt ." \
|
testing "makedevs -d ../makedevs.device_table.txt ." \
|
||||||
"(cd makedevs.testdir && makedevs -d ../makedevs.device_table.txt . 2>&1);
|
"(cd makedevs.testdir && makedevs -d ../makedevs.device_table.txt . 2>&1);
|
||||||
find makedevs.testdir ! -type d | sort | xargs ls -lnR | $FILTER_LS" \
|
find makedevs.testdir ! -type d | sort | xargs ls -lnR | $FILTER_LS" \
|
||||||
@ -132,6 +133,7 @@ crw-rw-rw- 1 0 0 1,9 makedevs.testdir/dev/urandom
|
|||||||
crw-rw-rw- 1 0 0 1,5 makedevs.testdir/dev/zero
|
crw-rw-rw- 1 0 0 1,5 makedevs.testdir/dev/zero
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
rm -rf makedevs.testdir
|
rm -rf makedevs.testdir
|
||||||
|
@ -75,6 +75,7 @@ br--r--r-- 1 2 2 8,0 sda
|
|||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf
|
echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "mdev move/symlink rule '>bar/baz'" \
|
testing "mdev move/symlink rule '>bar/baz'" \
|
||||||
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
||||||
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
||||||
@ -87,10 +88,12 @@ mdev.testdir/dev/disk:
|
|||||||
br--r--r-- 1 0 0 scsiA
|
br--r--r-- 1 0 0 scsiA
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf
|
echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "mdev move/symlink rule '>bar/'" \
|
testing "mdev move/symlink rule '>bar/'" \
|
||||||
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
||||||
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
||||||
@ -103,11 +106,13 @@ mdev.testdir/dev/disk:
|
|||||||
br--r--r-- 1 0 0 sda
|
br--r--r-- 1 0 0 sda
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
# here we complicate things by having non-matching group 1 and using %0
|
# here we complicate things by having non-matching group 1 and using %0
|
||||||
echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf
|
echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "mdev regexp substring match + replace" \
|
testing "mdev regexp substring match + replace" \
|
||||||
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
||||||
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
||||||
@ -120,10 +125,12 @@ mdev.testdir/dev/sd:
|
|||||||
brw-r--r-- 1 0 0 a_sda
|
brw-r--r-- 1 0 0 a_sda
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf
|
echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "mdev command" \
|
testing "mdev command" \
|
||||||
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
||||||
ls -lnR mdev.testdir/dev | $FILTER_LS" \
|
ls -lnR mdev.testdir/dev | $FILTER_LS" \
|
||||||
@ -133,10 +140,12 @@ mdev.testdir/dev:
|
|||||||
brw-r--r-- 1 0 0 8,0 sda
|
brw-r--r-- 1 0 0 8,0 sda
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
echo "sda 0:0 644 =block/ @echo @echo TEST:\$MDEV" >mdev.testdir/etc/mdev.conf
|
echo "sda 0:0 644 =block/ @echo @echo TEST:\$MDEV" >mdev.testdir/etc/mdev.conf
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "mdev move and command" \
|
testing "mdev move and command" \
|
||||||
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
||||||
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
ls -lnR mdev.testdir/dev | $FILTER_LS2" \
|
||||||
@ -149,10 +158,12 @@ mdev.testdir/dev/block:
|
|||||||
brw-r--r-- 1 0 0 sda
|
brw-r--r-- 1 0 0 sda
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
echo "@8,0 0:1 644" >mdev.testdir/etc/mdev.conf
|
echo "@8,0 0:1 644" >mdev.testdir/etc/mdev.conf
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "mdev #maj,min and no explicit uid" \
|
testing "mdev #maj,min and no explicit uid" \
|
||||||
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
|
||||||
ls -lnR mdev.testdir/dev | $FILTER_LS" \
|
ls -lnR mdev.testdir/dev | $FILTER_LS" \
|
||||||
@ -161,6 +172,7 @@ mdev.testdir/dev:
|
|||||||
brw-r--r-- 1 0 1 8,0 sda
|
brw-r--r-- 1 0 1 8,0 sda
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# continuing to use directory structure from prev test
|
# continuing to use directory structure from prev test
|
||||||
rm -rf mdev.testdir/dev/*
|
rm -rf mdev.testdir/dev/*
|
||||||
@ -174,6 +186,7 @@ echo "capi 0:0 0660 =capi20" >mdev.testdir/etc/mdev.conf
|
|||||||
echo "capi([0-9]) 0:0 0660 =capi20.0%1" >>mdev.testdir/etc/mdev.conf
|
echo "capi([0-9]) 0:0 0660 =capi20.0%1" >>mdev.testdir/etc/mdev.conf
|
||||||
echo "capi([0-9]*) 0:0 0660 =capi20.%1" >>mdev.testdir/etc/mdev.conf
|
echo "capi([0-9]*) 0:0 0660 =capi20.%1" >>mdev.testdir/etc/mdev.conf
|
||||||
# mdev invocation with DEVPATH=/class/tty/capi20 was deleting /dev/capi20
|
# mdev invocation with DEVPATH=/class/tty/capi20 was deleting /dev/capi20
|
||||||
|
optional FEATURE_LS_RECURSIVE
|
||||||
testing "move rule does not delete node with name == device_name" \
|
testing "move rule does not delete node with name == device_name" \
|
||||||
"\
|
"\
|
||||||
env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi chroot mdev.testdir /mdev 2>&1;
|
env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi chroot mdev.testdir /mdev 2>&1;
|
||||||
@ -187,6 +200,7 @@ crw-rw---- 1 0 0 191,1 capi20.01
|
|||||||
crw-rw---- 1 0 0 191,20 capi20.20
|
crw-rw---- 1 0 0 191,20 capi20.20
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
rm -rf mdev.testdir
|
rm -rf mdev.testdir
|
||||||
|
@ -9,6 +9,7 @@ mkdir tar.tempdir && cd tar.tempdir || exit 1
|
|||||||
|
|
||||||
# testing "test name" "script" "expected result" "file input" "stdin"
|
# testing "test name" "script" "expected result" "file input" "stdin"
|
||||||
|
|
||||||
|
optional FEATURE_TAR_CREATE
|
||||||
testing "tar hardlinks and repeated files" '\
|
testing "tar hardlinks and repeated files" '\
|
||||||
rm -rf input_* test.tar 2>/dev/null
|
rm -rf input_* test.tar 2>/dev/null
|
||||||
>input_hard1
|
>input_hard1
|
||||||
@ -39,7 +40,9 @@ drwxr-xr-x input_dir
|
|||||||
-rw-r--r-- input_hard2
|
-rw-r--r-- input_hard2
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
|
optional FEATURE_TAR_CREATE
|
||||||
testing "tar hardlinks mode" '\
|
testing "tar hardlinks mode" '\
|
||||||
rm -rf input_* test.tar 2>/dev/null
|
rm -rf input_* test.tar 2>/dev/null
|
||||||
>input_hard1
|
>input_hard1
|
||||||
@ -68,7 +71,9 @@ dr-xr-x--- input_dir
|
|||||||
-rwxr----x input_hard2
|
-rwxr----x input_hard2
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
|
optional FEATURE_TAR_CREATE
|
||||||
testing "tar symlinks mode" '\
|
testing "tar symlinks mode" '\
|
||||||
rm -rf input_* test.tar 2>/dev/null
|
rm -rf input_* test.tar 2>/dev/null
|
||||||
>input_file
|
>input_file
|
||||||
@ -97,6 +102,7 @@ dr-xr-x--- input_dir
|
|||||||
lrwxrwxrwx input_file
|
lrwxrwxrwx input_file
|
||||||
" \
|
" \
|
||||||
"" ""
|
"" ""
|
||||||
|
SKIP=
|
||||||
|
|
||||||
optional FEATURE_TAR_LONG_OPTIONS
|
optional FEATURE_TAR_LONG_OPTIONS
|
||||||
testing "tar --overwrite" "\
|
testing "tar --overwrite" "\
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# FEATURE: CONFIG_FEATURE_TAR_UNAME_GNAME
|
||||||
|
|
||||||
# This tarball contains a softlink with size field != 0.
|
# This tarball contains a softlink with size field != 0.
|
||||||
# If not ignored, it makes hext header to be skipped
|
# If not ignored, it makes hext header to be skipped
|
||||||
# and data to be read as a header.
|
# and data to be read as a header.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# FEATURE: CONFIG_FEATURE_TAR_UNAME_GNAME
|
||||||
|
|
||||||
tar1_bz2()
|
tar1_bz2()
|
||||||
{
|
{
|
||||||
$ECHO -ne "\x42\x5a\x68\x39\x31\x41\x59\x26\x53\x59\x12\xd1\x86\x30\x00\x0c"
|
$ECHO -ne "\x42\x5a\x68\x39\x31\x41\x59\x26\x53\x59\x12\xd1\x86\x30\x00\x0c"
|
||||||
|
@ -30,7 +30,9 @@ testing "unexpand case 7" "unexpand" \
|
|||||||
testing "unexpand case 8" "unexpand" \
|
testing "unexpand case 8" "unexpand" \
|
||||||
"a b\n" "" "a b\n" \
|
"a b\n" "" "a b\n" \
|
||||||
|
|
||||||
|
optional UNICODE_SUPPORT
|
||||||
testing "unexpand with unicode characher 0x394" "unexpand" \
|
testing "unexpand with unicode characher 0x394" "unexpand" \
|
||||||
"1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n" \
|
"1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n"
|
||||||
|
SKIP=
|
||||||
|
|
||||||
exit $FAILCOUNT
|
exit $FAILCOUNT
|
||||||
|
Loading…
Reference in New Issue
Block a user