]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport regress/scripts/create_sed
authorRadoslaw Korzeniewski <radekk@inteos.pl>
Fri, 4 Sep 2020 11:46:46 +0000 (13:46 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:56 +0000 (09:02 +0100)
This commit is the result of the squash of the following main commits:

Author: RadosÅ‚aw Korzeniewski <radekk@inteos.pl>
Date:   Tue Nov 19 19:47:35 2019 +0100

    k8s: Update regression tests preparation.

Author: Alain Spineux <alain@baculasystems.com>
Date:   Tue Oct 23 11:17:55 2018 +0200

    regress: win32 misc

    - new sed @win32_wsep_file@, this is win32_file, but with Windows
      separators:  win32_file="c:/tmp" -> win32_wsep_file="c:\\tmp"

Author: Radoslaw Korzeniewski <radekk@inteos.pl>
Date:   Mon Dec 4 17:12:08 2017 +0100

    regress: Add swift plugin regression tests using backend and Swift store.

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Fri Nov 14 15:13:05 2014 +0100

    regress: Add test for kvm plugin

regress/scripts/create_sed

index d5914a62c08857d8e605505e3fc1b0892a43c6ce..fef953c4b94f1ebfc5d67a3d3edcd5369b34cbf7 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
 # License: BSD 2-Clause; see file LICENSE-FOSS
 #
 
@@ -38,6 +38,7 @@ dbengine=`echo ${WHICHDB} | sed -e 's/--with-//' -e 's/=.*//'`
 bversion=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
 bdate=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
 builddir="${src}"
+win32_wsep_file=`echo $WIN32_FILE | sed -e 's=/=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\=g'`
 
 # Create sed command script
 echo "s%@remotehostaddr@%${REMOTE_HOST_ADDR}%g" >${out}
@@ -85,10 +86,17 @@ echo "s%@win32_client@%${WIN32_CLIENT}%g" >>${out}
 echo "s%@win32_addr@%${WIN32_ADDR}%g" >>${out}
 echo "s%@win32_store_addr@%${WIN32_STORE_ADDR}%g" >>${out}
 echo "s%@win32_file@%${WIN32_FILE}%g" >>${out}
+echo "s%@win32_wsep_file@%${win32_wsep_file}%g" >>${out}
 echo "s%@win32_port@%${WIN32_PORT}%g" >>${out}
 echo "s%@win32_password@%${WIN32_PASSWORD}%g" >>${out}
 echo "s%@db_name@%${db_name}%g" >>${out}
 echo "s%@db_user@%${db_user}%g" >>${out}
 echo "s%@db_password@%${db_password}%g" >>${out}
 echo "s%@builddir@%${builddir}%g" >>${out}
+echo "s%@kvm_host1@%${KVM_HOST1}%g" >> ${out}
+echo "s%@kvm_host2@%${KVM_HOST2}%g" >> ${out}
+echo "s%@st_auth@%${ST_AUTH}%g" >>${out}
+echo "s%@st_user@%${ST_USER}%g" >>${out}
+echo "s%@st_key@%${ST_KEY}%g" >>${out}
 echo "s%@plugdockerhost@%${PLUGDOCKERHOST}%g" >>${out}
+echo "s%@k8spwd@%${cwd}%g" >>${out}