From ec1e276b05f46e704b6612eb8a72c581b5890256 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 7 Apr 2010 21:25:45 +0200 Subject: [PATCH] Make test-plugin regression test work --- .../scripts/plugin-test-bacula-dir.conf.in | 24 +++++++++++++++++++ regress/tests/test-plugin-test | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/regress/scripts/plugin-test-bacula-dir.conf.in b/regress/scripts/plugin-test-bacula-dir.conf.in index 7a94c5ae61..44e95f9098 100644 --- a/regress/scripts/plugin-test-bacula-dir.conf.in +++ b/regress/scripts/plugin-test-bacula-dir.conf.in @@ -124,6 +124,16 @@ Job { Write Bootstrap = "@working_dir@/NightlySave.bsr" } +Job { + Name = "TestPluginTest" + Type = Backup + Client=@hostname@-fd + FileSet="TestPluginSet" + Storage = File + Messages = Standard + Pool = Default + Write Bootstrap = "@working_dir@/NightlySave.bsr" +} # Backup the catalog database (after the nightly save) @@ -227,6 +237,20 @@ FileSet { } } +FileSet { + Name = "TestPluginSet" + Include { + Options { + readfifo = yes + signature=MD5 + } + File = <@tmpdir@/file-list + Plugin = "test-plugin:/@test-plugin@/encrypt-bug.jpg:cat @builddir@/../encrypt-bug.jpg:cat >@tmpdir@/encrypt-bug.jpg" + Plugin = "test-plugin:/@test-plugin@/Makefile:cat @builddir@/../Makefile:cat >@tmpdir@/Makefile" + } +} + + FileSet { Name = "SparseCompressedSet" diff --git a/regress/tests/test-plugin-test b/regress/tests/test-plugin-test index c1fe9aad22..3327ff1bb9 100755 --- a/regress/tests/test-plugin-test +++ b/regress/tests/test-plugin-test @@ -5,7 +5,7 @@ # testing # TestName="test-plugin-test" -JobName=TestpluginTest +JobName=TestPluginTest . scripts/functions scripts/cleanup @@ -53,6 +53,8 @@ run_bconsole stop_bacula +exit 0 + # ****FIXME**** test if the restore of the two files is OK # -- 2.39.5