]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/test-plugin-test
Backport from Bacula Enterprise
[bacula/bacula] / regress / tests / test-plugin-test
index c1fe9aad22eda38d2a1fe07c9f72f85ff6823658..7c21a7f94e32d60c86e90aa0aa0f978ee779aec7 100755 (executable)
@@ -1,29 +1,41 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 # Run test-plugin-fd.  Note, this plugin is for testing
 #   new features and probably should not be run in normal
 #   testing
 #
 TestName="test-plugin-test"
-JobName=TestpluginTest
+JobName=TestPluginTest
 . scripts/functions
 
 scripts/cleanup
 scripts/copy-plugin-confs
 file=encrypt-bug.jpg
 rm -rf ${cwd}/tmp/*
-echo "${cwd}/README" >${cwd}/tmp/file-list
+echo "${cwd}/build/src" >${cwd}/tmp/file-list
+
+# Build and install the test plugin
+cd ${cwd}/build/src/plugins/fd
+make
+make install-test-plugin
+cd ${cwd}
 
 start_test
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@output /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
 label storage=File1 volume=TestVolume001
-setdebug level=150 client=$CLIENT
+setdebug level=100 client=$CLIENT
 estimate job=$JobName level=Full
-setdebug level=50 client=$CLIENT
+@#setdebug level=150 client=$CLIENT
+@#setdebug level=150 storage=File1
 run job=$JobName storage=File1 yes
 wait
 status client=$CLIENT
@@ -53,6 +65,8 @@ run_bconsole
 
 stop_bacula
 
+exit 0
+
 # ****FIXME**** test if the restore of the two files is OK
 
 #