Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
systemtest: updated testrunner for dbcopy
  • Loading branch information
franku authored and pstorz committed Jan 31, 2020
1 parent 46dcd49 commit 13828b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions systemtests/tests/dbcopy-mysql-postgresql-test/testrunner
Expand Up @@ -27,12 +27,13 @@ BackupDirectory="${tmp}/data"
# Data will be placed at "${tmp}/data/".
setup_data

echo "$conf" > "$tmp/file-list-python-plugin"
echo "$conf"/bareos-fd.d > "$tmp/file-list-python-plugin"

start_test

#enable only mysql
mv "${conf}"/bareos-dir.d/catalog/postgresql.conf "${conf}"/bareos-dir.d/catalog/postgresql.conf.disabled
rm -f "${conf}"/bareos-dir.d/catalog/postgresql.conf "${conf}"/bareos-dir.d/catalog/mysql.conf
cp "${conf}"/bareos-dir.d/catalog/mysql.conf.template "${conf}"/bareos-dir.d/catalog/mysql.conf

cat <<END_OF_DATA >$tmp/bconcmds
@$out /dev/null
Expand All @@ -55,13 +56,13 @@ run_bareos
stop_bareos

#enable mysql and postgresql
mv "${conf}"/bareos-dir.d/catalog/postgresql.conf.disabled "${conf}"/bareos-dir.d/catalog/postgresql.conf
cp "${conf}"/bareos-dir.d/catalog/postgresql.conf.template "${conf}"/bareos-dir.d/catalog/postgresql.conf

#do the database copy
"${sbin}"/bareos-dbcopy -d -c ${current_test_directory}/etc/bareos mysql postgresql

#enable only postgresql
mv "${conf}"/bareos-dir.d/catalog/mysql.conf "${conf}"/bareos-dir.d/catalog/mysql.conf.disabled
rm "${conf}"/bareos-dir.d/catalog/mysql.conf

cat <<END_OF_DATA >$tmp/bconcmds
@#
Expand Down

0 comments on commit 13828b4

Please sign in to comment.