From: NishiOwO <89888985+NishiOwO@users.noreply.github.com> Date: Sun, 17 Apr 2022 15:34:02 +0000 (+0900) Subject: OpenBSD seq alias settings for scripts/test.sh (#244) X-Git-Tag: nightly~305^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=270592a7dbbc70ae46ef14c8590c83411456944e;p=gwion.git OpenBSD seq alias settings for scripts/test.sh (#244) * NetBSD / OpenBSD Support * OpenBSD seq alias settings --- diff --git a/scripts/test.sh b/scripts/test.sh index e0568311..c97d6e5a 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,5 +1,19 @@ #!/bin/bash +if [ "$(uname -s)" = "OpenBSD" ]; then + gseq --version >/dev/null 2>&1 + if [ $? -ne 0 ]; then + echo "gseq was not found." + echo "You can install gseq with installing coreutils, should we install it?" + read -p "(y/N): " yn + case "$yn" in + [yY]*) doas pkg_add coreutils;; + *) echo "Test aborted." ; exit 1;; + esac + fi + alias seq="gseq" +fi + : "${PRG:=gwion}" : "${GWION_TEST_DIR:=/tmp}" : "${GWION_TEST_PREFIX:=gwt_}" @@ -405,4 +419,3 @@ then else exit 0 fi -