Skip to content

Commit

Permalink
install.sh: add Darwin test workaround
Browse files Browse the repository at this point in the history
Easy to extend to xBSD or other if needed.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Sep 21, 2023
1 parent 5274d6f commit 4c3f26d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ main()

for sdir in sof sof-ipc4 sof-ace-tplg sof-tplg; do
if test -e "$path/$sdir${optversuffix}" ; then
( set -x; ln -sT "$sdir-$ver" "${FW_DEST}/$sdir" ) || {
# Test workaround. Currently enough to run the whole test suite on Darwin
case "$(uname)" in
Darwin) safer_ln=;;
*) safer_ln='--no-target-directory';;
esac
( set -x; ln -s $safer_ln "$sdir-$ver" "${FW_DEST}/$sdir" ) || {
set +x
die '%s already installed? (Re)move it first.\n' "${FW_DEST}/$sdir"
}
Expand Down

0 comments on commit 4c3f26d

Please sign in to comment.