pth_typ_exists test 30Mar2023 16h43m24s +--+------------+---------------------------------------+----+------+------+---------------------------------- |OK|test# |[dir, pth] |type|stndrd|calc |comments +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|01_d_exists |+-----------------+ |dinn| l| l|should be OK - dir exists | | ||test input files/| | | | | | | |+-----------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|02_d_exists |+-----------------+ |dnew|?pte10|?pte10|should fail - dir already exists | | ||test input files/| | | | | | | |+-----------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|03_d_exists |+-----------------+ |pinn|?pte3 |?pte3 |should fail - dir is not a path | | ||test input files/| | | | | | | |+-----------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|04_d_exists |+-----------------+ |pnew|?pte3 |?pte3 |should fail - dir is not a path | | ||test input files/| | | | | | | |+-----------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|05_d_exists |+-----------------+ |povr|?pte3 |?pte3 |should fail - dir is not a path | | ||test input files/| | | | | | | |+-----------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|06_d_exists |+-----------------+ |padd|?pte3 |?pte3 |should fail - dir is not a path | | ||test input files/| | | | | | | |+-----------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|01_d_empty |+---------------------------------+ |dinn| l| l|should be OK - dir exists though e | | ||dir empty tests (dont add files)/| | | | | | | |+---------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|02_d_empty |+---------------------------------+ |dnew|?pte10|?pte10|should fail - dir already exists | | ||dir empty tests (dont add files)/| | | | | | | |+---------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|03_d_empty |+---------------------------------+ |pinn|?pte3 |?pte3 |should fail - dir is not a path | | ||dir empty tests (dont add files)/| | | | | | | |+---------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|04_d_empty |+---------------------------------+ |pnew|?pte3 |?pte3 |should fail - dir is not a path | | ||dir empty tests (dont add files)/| | | | | | | |+---------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|05_d_empty |+---------------------------------+ |povr|?pte3 |?pte3 |should fail - dir is not a path | | ||dir empty tests (dont add files)/| | | | | | | |+---------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|06_d_empty |+---------------------------------+ |padd|?pte3 |?pte3 |should fail - dir is not a path | | ||dir empty tests (dont add files)/| | | | | | | |+---------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | o|01_d_noExist|+-------------------------+ |dinn|?pte1 | l|should fail - dir doesn"t exist | | ||test input files/noExist/| | | | | | | |+-------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | o|02_d_noExist|+-------------------------+ |dnew|?pte11|?pte10|should fail - dirUp doesn"t exist | | ||test input files/noExist/| | | | | | | |+-------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|03_d_noExist|+-------------------------+ |pinn|?pte3 |?pte3 |should fail - dir is not a path | | ||test input files/noExist/| | | | | | | |+-------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|04_d_noExist|+-------------------------+ |pnew|?pte3 |?pte3 |should fail - dir is not a path | | ||test input files/noExist/| | | | | | | |+-------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | o|05_d_noExist|+-------------------------+ |povr|?pte9 |?pte3 |should fail - dirUp doesn"t exist | | ||test input files/noExist/| | | | | | | |+-------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | o|06_d_noExist|+-------------------------+ |padd|?pte9 |?pte3 |should fail - dirUp doesn"t exist | | ||test input files/noExist/| | | | | | | |+-------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|01_p_exists |+----------------------------------+ |dinn|?pte2 |?pte2 |should fail - pth is not a dir | | ||test input files/test- strings.ndf| | | | | | | |+----------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|02_p_exists |+----------------------------------+ |dnew|?pte2 |?pte2 |should fail - pth is not a dir | | ||test input files/test- strings.ndf| | | | | | | |+----------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|03_p_exists |+----------------------------------+ |pinn| l| l|should be OK - pth exists | | ||test input files/test- strings.ndf| | | | | | | |+----------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|04_p_exists |+----------------------------------+ |pnew|?pte7 |?pte7 |should fail - pth already exists | | ||test input files/test- strings.ndf| | | | | | | |+----------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|05_p_exists |+----------------------------------+ |povr| l| l|should be OK - dirUp exists | | ||test input files/test- strings.ndf| | | | | | | |+----------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|06_p_exists |+----------------------------------+ |padd| l| l|should be OK - pth exists | | ||test input files/test- strings.ndf| | | | | | | |+----------------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|01_p_empty |+-------------------------------------+|dinn|?pte2 |?pte2 |should fail - pth is not a dir | | ||test input files/test- empty file.txt|| | | | | | |+-------------------------------------+| | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|02_p_empty |+-------------------------------------+|dnew|?pte2 |?pte2 |should fail - pth is not a dir | | ||test input files/test- empty file.txt|| | | | | | |+-------------------------------------+| | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|03_p_empty |+-------------------------------------+|pinn| l| l|should be OK - pth exists even if | | ||test input files/test- empty file.txt|| | | | | | |+-------------------------------------+| | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|04_p_empty |+-------------------------------------+|pnew|?pte7 |?pte7 |should fail - pth exists even if | | ||test input files/test- empty file.txt|| | | | | | |+-------------------------------------+| | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|05_p_empty |+-------------------------------------+|povr| l| l|should be OK - dirUp exists | | ||test input files/test- empty file.txt|| | | | | | |+-------------------------------------+| | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|06_p_empty |+-------------------------------------+|padd| l| l|should be OK - upDir exists, appen | | ||test input files/test- empty file.txt|| | | | | | |+-------------------------------------+| | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|01_p_noExist|+---------------------------+ |dinn|?pte2 |?pte2 |should fail - pth is not a dir | | ||test input files/strngs.ndf| | | | | | | |+---------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|02_p_noExist|+---------------------------+ |dnew|?pte2 |?pte2 |should fail - pth is not a dir | | ||test input files/strngs.ndf| | | | | | | |+---------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | o|03_p_noExist|+---------------------------+ |pinn|?pte5 | l|should fail - pth doesn"t exist | | ||test input files/strngs.ndf| | | | | | | |+---------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | o|04_p_noExist|+---------------------------+ |pnew| l|?pte7 |should be OK - upDir exists, pth n | | ||test input files/strngs.ndf| | | | | | | |+---------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|05_p_noExist|+---------------------------+ |povr| l| l|should be OK - dirUp exists | | ||test input files/strngs.ndf| | | | | | | |+---------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- | l|06_p_noExist|+---------------------------+ |padd| l| l|should be OK - upDir exists, creat | | ||test input files/strngs.ndf| | | | | | | |+---------------------------+ | | | | +--+------------+---------------------------------------+----+------+------+---------------------------------- ~~...~~ -----+ | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ mpty | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ | | | -----+ empty| | | -----+ empty| | | -----+ | | | -----+ d | | | -----+ | | | -----+ | | | -----+ | | | -----+ ot | | | -----+ | | | -----+ e | | | -----+ ~~...~~ calc = null means that the test generated nofaults Important point : for d_new, checks dir one level up, for p_new checks current dir All [dir, file]s are in link d_Qtest "fileops/" For [d,p]_new, the next highest subDir in the d_new string is checked for existance 26Oct2021 Still need tests for faults [8, 9, 10], and add other tests as well to be sure for list of well described faults see : $ geany -i "$d_bin"QNial Howell fault list generate.sh