/media/bill/Dell2/Website - raw/Qnial/code develop_test/fileops/test results/pth_typ_exists_test log.txt # +-----+ #] pth_typ_exists test 26Oct2021 18h48m46s +--+------------+-------------------------------------+-----+----------+-------------------------------------- |OK|test# |[dir, pth] |type |calc |comments +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|01_d_exists |test input files/ |d_old| |should be OK - dir exists +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|02_d_exists |test input files/ |d_new|pte6 |should fail - 6 cannot overwrite dir +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|03_d_exists |test input files/ |p_old|pte2 |should fail - 2 dir is not a path +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|04_d_exists |test input files/ |p_new|pte2 pte6 |should fail - 2 dir is not a path, 6 +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|01_d_empty |dir empty tests (dont add files)/ |d_old| |should be OK - dir exists though empty +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|02_d_empty |dir empty tests (dont add files)/ |d_new|pte6 |should fail - 6 cannot overwrite dir +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|03_d_empty |dir empty tests (dont add files)/ |p_old|pte2 |should fail - 2 dir is not a path +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|04_d_empty |dir empty tests (dont add files)/ |p_new|pte2 pte6 |should fail - 2 dir is not a path, 6 +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|01_d_noExist|test input files/noExist/ |d_old|pte1 |should fail - 1 [dir,path] not found +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|02_d_noExist|test input files/noExist/ |d_new|pte4 |should fail - 4 containing dir noExis +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|03_d_noExist|test input files/noExist/ |p_old|pte1 pte2 |should fail - 1 [dir,path] not found, +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|04_d_noExist|test input files/noExist/ |p_new|pte2 pte5 |should fail - 2 dir is not a path, 5 +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|01_p_exists |test input files/test- strings.ndf |d_old|pte3 |should fail - 3 pth is not a dir +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|02_p_exists |test input files/test- strings.ndf |d_new|pte3 pte6 |should fail - 3 pth is not a dir, 6 c +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|03_p_exists |test input files/test- strings.ndf |p_old| |should be OK - pth exists +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|04_p_exists |test input files/test- strings.ndf |p_new|pte7 |should fail - pth exists so 7 to over +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|05_p_exists |test input files/test- strings.ndf |p_ovr| |should be OK - pth exists and "p_ovr a +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|01_p_empty |test input files/test- empty file.txt|d_old|pte3 |should fail - pth is not a dir +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|02_p_empty |test input files/test- empty file.txt|d_new|pte3 pte6 |should fail - 3 pth is not a dir, 6 c +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|03_p_empty |test input files/test- empty file.txt|p_old| |should be OK - pth exists even if empt +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|04_p_empty |test input files/test- empty file.txt|p_new|pte7 |should fail - 7 to overwrite pth use +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|01_p_noExist|test input files/strngs.ndf |d_old|pte1 pte3 |should fail - 1 [dir,path] not found, +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|02_p_noExist|test input files/strngs.ndf |d_new|pte3 |should fail - 3 pth is not a dir +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|03_p_noExist|test input files/strngs.ndf |p_old|pte1 |should fail - 1 [dir,path] not found +--+------------+-------------------------------------+-----+----------+-------------------------------------- | l|04_p_noExist|test input files/strngs.ndf |p_new| |should be OK - containing dir exists, +--+------------+-------------------------------------+-----+----------+-------------------------------------- --------------------------------+ | --------------------------------+ | --------------------------------+ | --------------------------------+ | --------------------------------+ cannot overwrite dir | --------------------------------+ | --------------------------------+ | --------------------------------+ | --------------------------------+ cannot overwrite dir | --------------------------------+ | --------------------------------+ t, so can"t add new subDir to it| --------------------------------+ 2 dir is not a path | --------------------------------+ "pnew containing dir noExist | --------------------------------+ | --------------------------------+ annot overwrite dir | --------------------------------+ | --------------------------------+ write pth use "p_ovr | --------------------------------+ llows overwrites | --------------------------------+ | --------------------------------+ annot overwrite dir | --------------------------------+ y | --------------------------------+ "p_ovr | --------------------------------+ 3 pth is not a dir | --------------------------------+ | --------------------------------+ | --------------------------------+ so new file can be added | --------------------------------+ ?pth_typ_exists error [dir,path] not found ?pth_typ_exists error dir is not a path ?pth_typ_exists error path is not a dir ?pth_typ_exists error "dnew containing dir noExist ?pth_typ_exists error "pnew containing dir noExist ?pth_typ_exists error cannot overwrite dir ?pth_typ_exists error to overwrite pth use "p_ovr ?pth_typ_exists error "p_ovr containing dir noExist ?pth_typ_exists error unknown type ?pth_typ_exists error stdOut only with OR["pnew, "p_ovr] 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 +------------------+----+-------+ |test sub[dir, pth]|n_OK|n_total| +------------------+----+-------+ |pth_typ_exists | 25| 25| +------------------+----+-------+ pth_typ_exists 25 25