New options to only run assert or competion tests
New tests for missing permissions
This commit is contained in:
@@ -35,6 +35,13 @@ tocompete_init() {
|
||||
touch "${_tc_tmp}/a"
|
||||
ln -s "${_tc_tmp}/a" "${_tc_tmp}/a 2"
|
||||
ln -s "${_tc_tmp}/a 2" "${_tc_tmp}/a 3"
|
||||
|
||||
# compete_no_permission
|
||||
mkdir -p "${_tc_tmp}/noperm"
|
||||
chmod 400 "${_tc_tmp}/noperm"
|
||||
ln -s "noperm" "${_tc_tmp}/lnoperm"
|
||||
|
||||
#ls -l "${_tc_tmp}"
|
||||
}
|
||||
|
||||
# Base directory for the test
|
||||
@@ -50,8 +57,14 @@ tocompete_init() {
|
||||
"/bin/adb"
|
||||
)
|
||||
|
||||
compete_no_permission=( "No permission to enter directory (direct and link)"
|
||||
"noperm"
|
||||
"lnoperm"
|
||||
)
|
||||
|
||||
# Add tests to global test array from test_rdlink
|
||||
tocompete+=(
|
||||
compete_no_permission
|
||||
compete_links
|
||||
compete_canonicalize
|
||||
#compete_all
|
||||
|
Reference in New Issue
Block a user