Skip to content

Commit 7328475

Browse files
Implement microbench test target type
Unify declaration and add assertions on target types Fix dirname usages for macos
1 parent fc0ee48 commit 7328475

18 files changed

+112
-71
lines changed

.build/build-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717

1818
# variables, with defaults
19-
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)"
19+
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname -- "$0")/..)"
2020

2121
# pre-conditions
2222
command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; }

.build/build-jars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# temporary between CASSANDRA-18133 and CASSANDRA-18594
1919

2020
# variables, with defaults
21-
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)"
21+
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname -- "$0")/..)"
2222

2323
# pre-conditions
2424
command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; }

.build/check-code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717

1818
# variables, with defaults
19-
[ "x${CASSANDRA_DIR}" != "x" ] || { CASSANDRA_DIR="$(dirname "$0")/.."; }
19+
[ "x${CASSANDRA_DIR}" != "x" ] || { CASSANDRA_DIR="$(dirname -- "$0")/.."; }
2020

2121
# pre-conditions
2222
command -v ant >/dev/null 2>&1 || { echo >&2 "ant needs to be installed"; exit 1; }

.build/ci/generate-ci-summary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#
2929

3030
# variables, with defaults
31-
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/../..)"
31+
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname -- "$0")/../..)"
3232
[ "x${DIST_DIR}" != "x" ] || DIST_DIR="${CASSANDRA_DIR}/build"
3333

3434
# pre-conditions

.build/ci/generate-test-report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#
2525

2626
# variables, with defaults
27-
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/../..)"
27+
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname -- "$0")/../..)"
2828
[ "x${DIST_DIR}" != "x" ] || DIST_DIR="${CASSANDRA_DIR}/build"
2929

3030
# pre-conditions

.build/docker/_build-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
[ $DEBUG ] && set -x
2525

2626
# variables, with defaults
27-
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)"
27+
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname -- "$0")/..)"
2828
[ "x${DIST_DIR}" != "x" ] || DIST_DIR="${CASSANDRA_DIR}/build"
2929

3030
# pre-conditions

.build/docker/_build-redhat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
################################
2323

2424
# variables, w/ defaults, w/ checks
25-
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)"
25+
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname -- "$0")/..)"
2626
[ "x${DIST_DIR}" != "x" ] || DIST_DIR="${CASSANDRA_DIR}/build"
2727
[ "x${RPM_BUILD_DIR}" != "x" ] || RPM_BUILD_DIR="$(mktemp -d /tmp/rpmbuild.XXXXXX)"
2828

.build/docker/_docker_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
[ $DEBUG ] && set -x
3030

3131
# variables, with defaults
32-
[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)"
32+
[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname -- "$0")/../..)"
3333
[ "x${build_dir}" != "x" ] || build_dir="${cassandra_dir}/build"
3434
[ "x${m2_dir}" != "x" ] || m2_dir="${HOME}/.m2/repository"
3535
[ -d "${build_dir}" ] || { mkdir -p "${build_dir}" ; }

.build/docker/build-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
#
1919
# Creates the tarball artifact
2020

21-
$(dirname "$0")/_docker_run.sh bullseye-build.docker build-artifacts.sh $1
21+
$(dirname -- "$0")/_docker_run.sh bullseye-build.docker build-artifacts.sh $1
2222
exit $?

.build/docker/build-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ echo
3232
#
3333
# Creates the debian package
3434

35-
$(dirname "$0")/_docker_run.sh bullseye-build.docker docker/_build-debian.sh $1
35+
$(dirname -- "$0")/_docker_run.sh bullseye-build.docker docker/_build-debian.sh $1
3636
exit $?

0 commit comments

Comments
 (0)