mas/script/test
Ross Goldberg 8306c6eb2c
Unfinished: Only bump formulae; don't generate them or store them in git.
Obtain version & revision from most recent version tag in the current branch, not from environment variable or argument.

Do not branch or commit on release.

Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-16 19:12:32 -05:00

20 lines
353 B
Bash
Executable file

#!/bin/bash -eu
#
# script/test
# mas
#
# Runs mas tests.
#
mas_dir="$(readlink -fn "$(dirname "${BASH_SOURCE:-"${0}"}")/..")"
if ! cd -- "${mas_dir}"; then
printf $'Error: Could not cd into mas directory: %s\n' "${mas_dir}" >&2
exit 1
fi
script/generate_version_info_for_swift
printf $'==> ✅ Testing mas %s\n' "$(script/version)"
swift test