mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
94f9f60b1b
Instead of the http://github.com/dachary namespace. It is not an issue in the common case because it should be cloned because it is in the .gitmodules file with the proper namespace. http://tracker.ceph.com/issues/10836 Fixes: #10836 Signed-off-by: Loic Dachary <ldachary@redhat.com>
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/bash -ex
|
|
#
|
|
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
|
#
|
|
# Author: Loic Dachary <loic@dachary.org>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU Library Public License as published by
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Library Public License for more details.
|
|
#
|
|
: ${CORPUS:=https://github.com/ceph/ceph-erasure-code-corpus.git}
|
|
: ${DIRECTORY:=../ceph-erasure-code-corpus}
|
|
|
|
# when running from sources, the current directory must have precedence
|
|
export PATH=:$PATH
|
|
|
|
if ! test -d $DIRECTORY ; then
|
|
git clone $CORPUS $DIRECTORY
|
|
fi
|
|
|
|
my_version=v$(ceph --version | cut -f3 -d ' ')
|
|
|
|
all_versions=$((ls -d $DIRECTORY/v* ; echo $DIRECTORY/$my_version ) | sort)
|
|
|
|
for version in $all_versions ; do
|
|
if test -d $version ; then
|
|
$version/non-regression.sh
|
|
fi
|
|
if test $version = $DIRECTORY/$my_version ; then
|
|
break
|
|
fi
|
|
done
|