Switch from /usr/local/src to /usr/share

Addressing:

| 00:53:47 3m51.5s ERROR: FAIL: After purging files have disappeared:
| 00:53:47   /usr/local/src/	 owned by: kamailio-config-tests

  -- https://jenkins.mgm.sipwise.com/view/piuparts/job/kamailio-config-tests-piuparts/68/console

Acked-by: Victor Seva
vseva/base_dirs
Michael Prokop 13 years ago
parent c0d83bd773
commit 7471d7d324

@ -19,7 +19,7 @@ Manual Installation:
You can install the scripts in other place but you have
to modify BASE_DIR environment variable.
#cd /usr/local/src
#cd /usr/share/kamailio-config-tests
#git clone git@git.mgm.sipwise.com:kamailio-config-tests
#apt-get install python-yaml sip-tester \
libgraphviz-perl libtemplate-perl libtext-csv-perl \
@ -49,9 +49,9 @@ In a ce-3.0 installation:
Usage:
------
# cd /usr/local/src/kamailio-config-tests
# cd /usr/share/kamailio-config-tests
If you are using the git version and not in /usr/local/src/kamailio-config-tests
If you are using the git version and not in /usr/share/kamailio-config-tests
you need to set BASE_DIR environment variable accordingly:
# export BASE_DIR=`pwd`
This is not needed if you are using the Debian packaged version.

@ -322,7 +322,7 @@ if [[ $# != 1 ]]; then
fi
NAME_CHECK="$1"
BASE_DIR="${BASE_DIR:-/usr/local/src/kamailio-config-tests}"
BASE_DIR="${BASE_DIR:-/usr/share/kamailio-config-tests}"
BIN_DIR="${BASE_DIR}/bin"
LOG_DIR="${BASE_DIR}/log/${NAME_CHECK}"
RESULT_DIR="${BASE_DIR}/result/${NAME_CHECK}"

@ -37,7 +37,7 @@ if (exists $ENV{'BASE_DIR'})
}
else
{
$base_dir = '/usr/local/src/kamailio-config-tests';
$base_dir = '/usr/share/kamailio-config-tests';
}
$yaml = YAML::Tiny->read($file) or die "File $file could not be read";

@ -1,5 +1,5 @@
#!/bin/bash
BASE_DIR="${BASE_DIR:-/usr/local/src/kamailio-config-tests}"
BASE_DIR="${BASE_DIR:-/usr/share/kamailio-config-tests}"
BIN_DIR="${BASE_DIR}/bin"
LOG_DIR="${BASE_DIR}/log"
RESULT_DIR="${BASE_DIR}/result"

@ -31,8 +31,8 @@ my $filename = abs_path($ARGV[0]);
our $base_check_dir = dirname($filename);
my $cf = YAML::LoadFile($filename);
our $bin_dir = '/usr/local/src/kamailio-config-tests/bin';
our $template_dir = '/usr/local/src/kamailio-config-tests/scenarios/templates';
our $bin_dir = '/usr/share/kamailio-config-tests/bin';
our $template_dir = '/usr/share/kamailio-config-tests/scenarios/templates';
if (exists $ENV{'BASE_DIR'})
{
$bin_dir = File::Spec->catfile(abs_path($ENV{'BASE_DIR'}), 'bin');

2
debian/dirs vendored

@ -1 +1 @@
/usr/local/src/kamailio-config-tests
/usr/share/kamailio-config-tests

10
debian/install vendored

@ -1,5 +1,5 @@
bin/ /usr/local/src/kamailio-config-tests/
scenarios/ /usr/local/src/kamailio-config-tests/
run_tests.sh /usr/local/src/kamailio-config-tests/
get_results.sh /usr/local/src/kamailio-config-tests/
bench.sh /usr/local/src/kamailio-config-tests/
bin/ /usr/share/kamailio-config-tests/
scenarios/ /usr/share/kamailio-config-tests/
run_tests.sh /usr/share/kamailio-config-tests/
get_results.sh /usr/share/kamailio-config-tests/
bench.sh /usr/share/kamailio-config-tests/

@ -1,5 +1,5 @@
#!/bin/bash
BASE_DIR="${BASE_DIR:-/usr/local/src/kamailio-config-tests}"
BASE_DIR="${BASE_DIR:-/usr/share/kamailio-config-tests}"
BIN_DIR="${BASE_DIR}/bin"
LOG_DIR="${BASE_DIR}/log"
RESULT_DIR="${BASE_DIR}/result"

@ -1,5 +1,5 @@
#!/bin/bash
BASE_DIR=${BASE_DIR:-"/usr/local/src/kamailio-config-tests"}
BASE_DIR=${BASE_DIR:-"/usr/share/kamailio-config-tests"}
BIN_DIR="${BASE_DIR}/bin"
LOG_DIR="${BASE_DIR}/log"
RESULT_DIR="${BASE_DIR}/result"

Loading…
Cancel
Save