From: Kern Sibbald Date: Wed, 7 Apr 2010 19:25:45 +0000 (+0200) Subject: Make test-plugin regression test work X-Git-Tag: Release-5.2.1~1506 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3317c20e401f9a1743e527540dccca7f9e1e4ea;p=bacula%2Fbacula Make test-plugin regression test work --- 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 #