From 270592a7dbbc70ae46ef14c8590c83411456944e Mon Sep 17 00:00:00 2001 From: NishiOwO <89888985+NishiOwO@users.noreply.github.com> Date: Mon, 18 Apr 2022 00:34:02 +0900 Subject: [PATCH] OpenBSD seq alias settings for scripts/test.sh (#244) * NetBSD / OpenBSD Support * OpenBSD seq alias settings --- scripts/test.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 - -- 2.43.0