pjdfstest
pjdfstest copied to clipboard
Excluding file types
trafficstars
I would like to exclude file types that are not interesting to network file systems, e.g., block and char. I could add an array with all types to misc.sh which the environment would override. This would require doing some math in all the test plans, e.g., echo "1..203" becomes something like echo "1..$((${#DEVICE_TYPES[@]} * 7))". Is there a better approach to this than doing a bunch of arithmetic? I see some existing feature detecting code like:
if supported lchmod; then
echo "1..203"
else
echo "1..119"
fi
Calculating the plan would become very complicated with your proposal. This is one of the problems with TAP. I don't see a better option that doing arithmetic like you propose.