Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F3021428
ltp_collect_xattr_testcases.sh
fsu (Fedor Uporov)
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
fsu
Nov 23 2017, 8:34 AM
2017-11-23 08:34:14 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
ltp_collect_xattr_testcases.sh
View Options
#!/bin/bash
#
# Rebuild LTP package and collect xattr testcases binaries to single directory.
# Then it could be sent to FreeBSD machine and ran here.
#
LTP_PATH
=
"
${
PWD
}
/ltp"
LTP_SYSCALL_PATH
=
"
${
LTP_PATH
}
/testcases/kernel/syscalls"
LTP_TESTCASES
=
"flistxattr getxattr lgetxattr listxattr llistxattr removexattr setxattr"
LTP_TESTCASES_DIR
=
"
${
PWD
}
/ltp_tests"
echo
"Rebuild ltp..."
cd
${
LTP_PATH
}
&&
make
echo
"Collect bins..."
rm
-r
-f
${
LTP_TESTCASES_DIR
}
mkdir
${
LTP_TESTCASES_DIR
}
for
testcase
in
${
LTP_TESTCASES
}
do
cp
-r
${
LTP_SYSCALL_PATH
}
/
${
testcase
}
${
LTP_TESTCASES_DIR
}
done
echo
"Remove unusable testscases..."
rm
${
LTP_TESTCASES_DIR
}
/getxattr/getxattr04
# <= additional investigation required
rm
${
LTP_TESTCASES_DIR
}
/setxattr/setxattr03
# <= stat flags setup is not worked thru ioctl
echo
"Place FreeBSD xattr testcases run script into the binaries directory..."
echo
'#!/bin/sh
#
# Run ltp xattrs system calls tests on FreeBSD side.
#
TEST_DIRS="flistxattr getxattr lgetxattr listxattr llistxattr removexattr setxattr"
for dir in ${TEST_DIRS}
do
echo "Run tests from ${dir}..."
i=1
while [ true ]
do
echo "Check file: ./${dir}/${dir}0${i}"
if [ -f ./${dir}/${dir}0${i} ]
then
./${dir}/${dir}0${i}
else
break
fi
i=$((i+1))
done
done'
>
${
LTP_TESTCASES_DIR
}
/run_ltp_xattrs.sh
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1202527
Default Alt Text
ltp_collect_xattr_testcases.sh (1 KB)
Attached To
Mode
D13209: linuxulator: Add user xattrs support for i386 and amd64 platforms.
Attached
Detach File
Event Timeline
Log In to Comment