r9834: More tests for the upgrade from Samba3
[gd/samba-autobuild/.git] / source / setup / upgrade
index 331892c3db28bc61a8a7940f55a2b03d6baa9024..8dc10caa3f7894a911205322564f25dc1854271c 100755 (executable)
@@ -10,6 +10,7 @@ options = GetOptions(ARGV,
                "POPT_AUTOHELP",
                "POPT_COMMON_SAMBA",
                "POPT_COMMON_VERSION",
                "POPT_AUTOHELP",
                "POPT_COMMON_SAMBA",
                "POPT_COMMON_VERSION",
+               'verify',
                'targetdir=s',
                'quiet', 'blank');
 
                'targetdir=s',
                'quiet', 'blank');
 
@@ -92,4 +93,10 @@ if (ret > 0) {
 } else {
        message("All OK\n");
 }
 } else {
        message("All OK\n");
 }
-return 0;
+
+if (options.verify != undefined) {
+       message("Verifying...\n");
+       ret = upgrade_verify(subobj, samba3,paths,message);
+}
+
+return ret;