diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-10-31 11:20:34 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-11-24 15:50:16 +0100 |
commit | a784cc3a7f2043a5762d426e904a90e44b101ecd (patch) | |
tree | 74bed65d2440bb2705e823d0c1bf89d0f784410a /testprogs | |
parent | 25ae8d72d66cbe7342b50254ede7e5890bc23b73 (diff) | |
download | samba-a784cc3a7f2043a5762d426e904a90e44b101ecd.tar.gz |
selftest: Additional check for a backlink pointing at a deleted object
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rw-r--r-- | testprogs/blackbox/common-links.sh | 8 | ||||
-rwxr-xr-x | testprogs/blackbox/dbcheck-links.sh | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/testprogs/blackbox/common-links.sh b/testprogs/blackbox/common-links.sh index 7c80e35007a..e36cb0b8f66 100644 --- a/testprogs/blackbox/common-links.sh +++ b/testprogs/blackbox/common-links.sh @@ -96,6 +96,14 @@ add_deleted_target_backlink() { fi } +add_deleted_source_backlink() { + ldif=$release_dir/add-deleted-source-backlink.ldif + TZ=UTC $ldbmodify -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb.d/DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb $ldif + if [ "$?" != "0" ]; then + return 1 + fi +} + add_deleted_target_link() { ldif=$release_dir/add-dangling-deleted-link.ldif TZ=UTC $ldbmodify -H tdb://$PREFIX_ABS/${RELEASE}/private/sam.ldb.d/DC%3DRELEASE-4-5-0-PRE1,DC%3DSAMBA,DC%3DCORP.ldb $ldif diff --git a/testprogs/blackbox/dbcheck-links.sh b/testprogs/blackbox/dbcheck-links.sh index e1db50f4faa..a64e8a326d6 100755 --- a/testprogs/blackbox/dbcheck-links.sh +++ b/testprogs/blackbox/dbcheck-links.sh @@ -150,6 +150,7 @@ if [ -d $release_dir ]; then testit "add_dangling_link" add_dangling_link testit "add_dangling_backlink" add_dangling_backlink testit "add_deleted_dangling_backlink" add_deleted_dangling_backlink + testit "add_deleted_source_backlink" add_deleted_source_backlink testit "add_deleted_target_link" add_deleted_target_link testit "add_deleted_target_backlink" add_deleted_target_backlink testit "dbcheck_dangling" dbcheck_dangling |