Skip to content

Commit

Permalink
Merge pull request #780 from bareos/dev/joergs/master/remove-regress
Browse files Browse the repository at this point in the history
Remove old regress tests
  • Loading branch information
pstorz committed Jun 21, 2021
2 parents bd90224 + d19597c commit 54a788a
Show file tree
Hide file tree
Showing 695 changed files with 2,393 additions and 67,432 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -35,6 +35,8 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
- fix drive parameter handling on big endian architectures [PR #850]

### Added
- Add systemtests fileset-multiple-include-blocks, fileset-multiple-options-blocks, quota-softquota, sparse-file, truncate-command and block-size, (migrated from ``regress/``) [PR #780]
- Add bvfs and dbcheck tests to python-bareos systemtest [PR #780]
- systemtests for NDMP functionalities [PR #822]
- added choice for the drive number in the truncate command [PR #823]
- systemtests for S3 functionalities (droplet, libcloud) now use https [PR #765]
Expand All @@ -48,6 +50,8 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:

### Changed
- core: systemd service: change daemon type from forking to simple and start daemons in foreground [PR #824]
- systemtests: define variable BackupDirectory globally [PR #780]
- systemtests: run all systemstests with ``set -o pipefail`` [PR #780]
- core: cleanup systemd service dependencies: Requires network.target, but start after the network-online.target [PR #700]
- core: Make the jansson library mandatory when compiling the Bareos Director [PR #793]
- core: Make the jansson library mandatory when compiling the Bareos Director [PR #793]
Expand Down Expand Up @@ -75,6 +79,7 @@ and since Bareos version 20 this project adheres to [Semantic Versioning](https:
### Deprecated

### Removed
- Remove regression tests (``regress/`` directory). Tests still relevant tests have been migrated into systemtests [PR #780]
- Removed outdated configuration files (example files).
- Removed package **bareos-devel**.
- Removed package **bareos-regress** and **bareos-regress-config**. The package **bareos-regress** has not been build for a long time.
Expand Down
1 change: 0 additions & 1 deletion core/.gitignore
Expand Up @@ -36,7 +36,6 @@ platforms/univention/conffiles/etc/apt/sources.list.d/60_bareos.list
scripts/bareos-config
scripts/bareos-explorer
scripts/bareos-glusterfind-wrapper
scripts/bareos-regress.conf
scripts/bareos
scripts/bconsole
scripts/disk-changer
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/bareos-ctl-dir.in
Expand Up @@ -55,7 +55,7 @@ case "$1" in

stop)
if [ -x "${BAREOS_DIRECTOR_BINARY}" ]; then
echo -n "Stopping the Bareos Director daemon: "
printf "Stopping the Bareos Director daemon: "
killproc "${BAREOS_DIRECTOR_BINARY}" "${BAREOS_DIRECTOR_PORT}"
fi
;;
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/bareos-ctl-fd.in
Expand Up @@ -54,7 +54,7 @@ case "$1" in

stop)
if [ -x ${BAREOS_FILEDAEMON_BINARY} ]; then
echo -n "Stopping the Bareos File daemon: "
printf "Stopping the Bareos File daemon: "
killproc ${BAREOS_FILEDAEMON_BINARY} ${BAREOS_FD_PORT}
fi
;;
Expand Down
21 changes: 16 additions & 5 deletions core/scripts/bareos-ctl-funcs
Expand Up @@ -49,14 +49,25 @@ checkPid()
{
pid="$1"
wait="${2:-0}"
waittext="${3:-}"
output=""

if [ -z "$pid" ]; then
return 1
fi
while [ $wait -gt 0 ] && ${PS} -p "$pid" >/dev/null 2>&1; do
sleep 1
wait=$(expr $wait - 1)

start=$(date +%s)
end=$(expr $start + $wait)

while [ "$(date +%s)" -lt "$end" ] && ${PS} -p "$pid" >/dev/null 2>&1; do
if [ "${waittext}" ]; then
printf "%s" "$waittext"
output="yes"
fi
# not all systems offer floating point numbers as sleep parameter, therefore try both.
sleep 0.1 || sleep 1
done
if [ "${output}" ]; then printf " "; fi
${PS} -p "$pid" >/dev/null 2>&1
return $?
}
Expand Down Expand Up @@ -90,10 +101,10 @@ killproc() {
if [ "$notset" = "1" ] ; then
# TERM first, then KILL if not dead
kill -TERM $pid 2>/dev/null
if checkPid "$pid" 1; then
if checkPid "$pid" 3 "."; then
kill -KILL $pid 2>/dev/null
fi
if checkPid "$pid" 1; then
if checkPid "$pid" 3 "_"; then
failure
else
success
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/bareos-ctl-sd.in
Expand Up @@ -53,7 +53,7 @@ case "$1" in

stop)
if [ -x ${BAREOS_STORAGEDAEMON_BINARY} ]; then
echo -n "Stopping the Bareos Storage daemon: "
printf "Stopping the Bareos Storage daemon: "
killproc ${BAREOS_STORAGEDAEMON_BINARY} ${BAREOS_SD_PORT}
fi
;;
Expand Down
84 changes: 0 additions & 84 deletions core/scripts/bareos-regress.conf.in

This file was deleted.

2 changes: 1 addition & 1 deletion core/src/dird/ua_status.cc
Expand Up @@ -929,7 +929,7 @@ static void ListRunningJobs(UaContext* ua)
endeach_jcr(jcr);

if (njobs == 0) {
/* Note the following message is used in regress -- don't change */
// Note the following message is used by external programs -- don't change
if (!ua->api) ua->SendMsg(_("No Jobs running.\n====\n"));
Dmsg0(200, "leave list_run_jobs()\n");
return;
Expand Down
1 change: 0 additions & 1 deletion docs/manuals/source/DeveloperGuide/BuildAndTestBareos.rst
Expand Up @@ -5,4 +5,3 @@ Build And Test Bareos

BuildAndTestBareos/documentation.rst
BuildAndTestBareos/systemtests.rst
BuildAndTestBareos/regression.rst

0 comments on commit 54a788a

Please sign in to comment.