$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bpipe-fd.la $(DESTDIR)$(plugindir)
$(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.la
+install-test-plugin: all
+ $(MKDIR) $(DESTDIR)$(plugindir)
+ $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) test-plugin-fd.la $(DESTDIR)$(plugindir)
+ $(RMF) $(DESTDIR)$(plugindir)/test-plugin-fd.la
+
libtool-clean:
@find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
@$(RMF) *.la
switch (event->eventType) {
case bEventJobStart:
bfuncs->DebugMessage(ctx, fi, li, dbglvl, "test-plugin-fd: JobStart=%s\n", (char *)value);
-// bfuncs->AddExclude(ctx, "/home/kern/bacula/regress/README");
break;
case bEventJobEnd:
- case bEventStartBackupJob:
case bEventEndBackupJob:
case bEventLevel:
case bEventSince:
case bEventStartRestoreJob:
case bEventEndRestoreJob:
break;
-
+ case bEventStartBackupJob:
+ bfuncs->AddExclude(ctx, "/home/kern/bacula/regress/README");
+ break;
/* Plugin command e.g. plugin = <plugin-name>:<name-space>:read command:write command */
case bEventRestoreCommand:
/* Fall-through wanted */
JobName=TestPluginTest
. scripts/functions
+# Build and install the test plugin
+cd ${cwd}/build/src/plugins/fd
+make
+make install-test-plugin
+cd ${cwd}
+
scripts/cleanup
scripts/copy-plugin-confs
file=encrypt-bug.jpg