Skip to content

Commit

Permalink
systemtests: cleanup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Mar 6, 2019
1 parent 75c043e commit 1cd5c5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions systemtests/CMakeLists.txt
Expand Up @@ -55,7 +55,6 @@ message(STATUS "DEFAULT_DB_TYPE is ${DEFAULT_DB_TYPE}")
set(archivedir "${PROJECT_BINARY_DIR}/archivedir")
set(backenddir "${PROJECT_BINARY_DIR}/../core/src/cats")

set(basename test)
set(bin ${PROJECT_BINARY_DIR}/bin)
set(bindir ${PROJECT_BINARY_DIR}/bin)

Expand Down Expand Up @@ -168,6 +167,7 @@ set(BASEPORT 42001)
foreach(TEST_NAME ${SYSTEM_TESTS})
# base directory for this test
set(current_test_directory ${PROJECT_BINARY_DIR}/tests/${TEST_NAME})
set(basename ${TEST_NAME})

#db parameters
set(db_password "")
Expand Down Expand Up @@ -210,7 +210,7 @@ foreach(TEST_NAME ${SYSTEM_TESTS})
configure_file("environment.in" "tests/${TEST_NAME}/environment" @ONLY)
# create a bin/bareos and bin/bconsole script
# in every testdir for start/stop and bconsole
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/tests/${TEST_NAME}/bin")
#file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/tests/${TEST_NAME}/bin")
configure_file("bin/bconsole" "tests/${TEST_NAME}/bin/bconsole" COPYONLY)
configure_file("bin/bareos" "tests/${TEST_NAME}/bin/bareos" COPYONLY)

Expand Down
2 changes: 2 additions & 0 deletions systemtests/scripts/cleanup
Expand Up @@ -8,6 +8,8 @@ rm -rf ${working}/log
rm -rf ${working}/*.bsr ${working}/log*.sd
rm -rf ${working}/*.trace ${working}/*.traceback ${working}/*.bactrace
rm -rf ${working}/*.state
rm -rf ${working}/*.conmsg
rm -rf ${working}/*.pid
rm -rf ${working}/CLEANUPMARKER
rm -rf ${working}/plugins/*
find . -name "gigaslam.gif" -exec rm -f {} \;
Expand Down
7 changes: 0 additions & 7 deletions systemtests/scripts/setup
Expand Up @@ -13,10 +13,3 @@ ${scripts}/make_bareos_tables ${DBTYPE} >/dev/null 2>&1
${scripts}/grant_bareos_privileges ${DBTYPE} >/dev/null 2>&1

exit 0
/bin/cp -f ${rscripts}/bareos-dir.conf ${conf}/bareos-dir.conf
/bin/cp -f ${rscripts}/bareos-sd.conf ${conf}/bareos-sd.conf
/bin/cp -f ${rscripts}/bareos-fd.conf ${conf}/bareos-fd.conf
/bin/cp -f ${rscripts}/bconsole.conf ${conf}/bconsole.conf
/bin/cp -f ${rscripts}/bconsole.conf ${conf}/bat.conf

${rscripts}/set_tape_options

0 comments on commit 1cd5c5a

Please sign in to comment.