SQUASH - Samba3 add 00.test eventscript
authorMichael Adam <obnox@samba.org>
Thu, 20 Oct 2011 14:13:16 +0000 (16:13 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 20 Oct 2011 14:13:16 +0000 (16:13 +0200)
selftest/target/Samba3.pm

index e06778d8193a4516062b94af27b5dea27213f1b7..85168970349a864b34537237afd08fce9d4ef9f4 100755 (executable)
@@ -1378,6 +1378,19 @@ sub provision_ctdb($$$$)
        print PUBLIC_ADDR "$public_ip/32 swrap$pub_iface\n";
        close(PUBLIC_ADDR);
 
+       my $event_script = "$event_script_dir/00.test";
+       unless(open(EVENTSCRIPT, ">$event_script")) {
+               warn("Unable to open event script '$event_script'");
+               return undef;
+       }
+       print EVENTSCRIPT "#!/bin/sh
+# event script for clustered samba selftest
+
+echo \"event script called: '\$0 \$\@'\"
+
+exit 0
+";
+
 
        $ret{CTDBD_TEST_LOG} = "$prefix/ctdbd_test.log";
        $ret{CTDBD_TEST_LOG_POS} = 0;