Skip to content

Commit b864985

Browse files
authored
feat: move v2 tool tests to new test function (#5101)
1 parent d2412b1 commit b864985

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/usr/local/containerbase/tools/v2/elixir.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ function link_tool () {
6767
shell_wrapper "${TOOL_NAME}" "${versioned_tool_path}/bin"
6868
shell_wrapper mix "${versioned_tool_path}/bin"
6969

70-
elixir --version
71-
mix --version
72-
7370
if [[ $(is_root) -eq 0 ]]; then
7471
su -c 'mix local.hex --force' "${USER_NAME}"
7572
su -c 'mix local.rebar --force' "${USER_NAME}"
@@ -80,3 +77,8 @@ function link_tool () {
8077

8178
# TODO: check rights of files and folder in ~/.mix and ~/.hex
8279
}
80+
81+
function test_tool () {
82+
elixir --version
83+
mix --version
84+
}

src/usr/local/containerbase/tools/v2/erlang.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,8 @@ function link_tool () {
9797
# only works for v24+
9898
#export_tool_env ERL_ROOTDIR "${versioned_tool_path}"
9999
shell_wrapper erl "${versioned_tool_path}/bin"
100+
}
101+
102+
test_tool () {
100103
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
101104
}

src/usr/local/containerbase/tools/v2/git-lfs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ function install_tool () {
3535
function link_tool () {
3636
shell_wrapper "${TOOL_NAME}" "$(find_versioned_tool_path)/bin"
3737

38-
git lfs version
39-
4038
if [ "$(is_root)" -eq 0 ]; then
4139
git lfs install --system
4240
else
4341
git lfs install
4442
fi
4543
}
44+
45+
test_tool () {
46+
git lfs version
47+
}

0 commit comments

Comments
 (0)