Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
only enable test-plugin when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Apr 20, 2017
1 parent a815afa commit 1b72765
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/cleanup
Expand Up @@ -25,7 +25,6 @@ rm -rf ${working}/*.trace ${working}/*.traceback ${working}/*.bactrace
rm -rf ${working}/*.state
rm -rf ${working}/CLEANUPMARKER
rm -rf ${tmp}disk-changer
rm -f ${cwd}/bin/plugins/test-plugin-fd.so
find . -name "gigaslam.gif" -exec rm -f {} \;
# cleanup old config files
rm -f ${conf}/bareos-*.conf
Expand Down
3 changes: 3 additions & 0 deletions scripts/setup
Expand Up @@ -118,6 +118,9 @@ cd ../..
cd src/plugins/filed
make install-test-plugin
)
#disable test-plugin
mv ${cwd}/bin/plugins/test-plugin-fd.so ${cwd}/bin/plugins/test-plugin-fd.sox


cd ${cwd}
bin/bareos stop
Expand Down
7 changes: 7 additions & 0 deletions tests/plugin-test
Expand Up @@ -9,6 +9,10 @@ JobName=pluginTest
scripts/cleanup
scripts/copy-plugin-confs

# enable test-plugin
mv -f ${cwd}/bin/plugins/test-plugin-fd.sox ${cwd}/bin/plugins/test-plugin-fd.so

mv -f ${cwd}/bin/plugins/bpipe-fd.sox ${cwd}/bin/plugins/bpipe-fd.so

file=encrypt-bug.jpg
echo "${cwd}/README" >${cwd}/tmp/file-list
Expand Down Expand Up @@ -155,4 +159,7 @@ perl -ne '

estat=$?

# disable test-plugin
mv -f ${cwd}/bin/plugins/test-plugin-fd.so ${cwd}/bin/plugins/test-plugin-fd.sox

end_test

0 comments on commit 1b72765

Please sign in to comment.