#!/bin/bash
###############################################################################
# Arcv-test
# 
# Copyright (c) 2026 Michel MEHL. All rights reserved. 
# 
# License terms written down in file LICENSE.txt
# Release file path: dock-install-app
# Release file date: 2026-07-26 13:05
# App version: 1.0.1
# App source revision: 153
# App source signature: 2be56a9c9c90716e56960ba0fee106882c6f78f7e63cfbe5a31251166aa7cb54
# Source file last modification: 2026-07-23 13:09:29.120544354 +0200
#
# This header was generated. Do not modify.
#
# ------------------------------------------------------------------------------
#
# To update the file in the container:
#
#  sudo docker run --rm -it --name arcv-test-ubuntu26 arcv-test-ubuntu26
#  sudo docker cp ~/riffian/Data/Data/admin/linux/arcv-test/dock-install-app arcv-test-ubuntu26:/home
#  sudo docker cp ~/riffian/Data/Data/admin/linux/arcv-test/install_arcv.sh arcv-test-ubuntu26:/home
#  sudo docker commit arcv-test-ubuntu26 arcv-test-ubuntu26 
# ------------------------------------------------------------------------------
# 
# Report bugs and suggestions: 
#     assistance@slashetc.fr
# 
# Specific or corporate requirements or extensions: 
#     info@slashetc.fr
# 
# The author is overall not required to provide maintenance or support 
# outside specific commercial terms agreed.
# 
###############################################################################
APP=arcv

export PATH=/usr/bin/${APP}:/usr/bin/${APP}-test:$PATH
export PATH=/usr/bin/shell-api:$PATH
export PATH=/usr/bin/shotplan:$PATH
export PATH=/usr/bin/utils:$PATH # for correct yq

# Use this if dev version is used
DEBIAN_FRONTEND="noninteractive" /home/install_arcv-test.sh

# Force --subproc option for not triggering terminal screen clearing
cfgDir="$HOME/.config/Arcv"
if [ ! -e "${cfgDir}"  ] ; then
    mkdir -p "${cfgDir}"
    echo "arcv config: $HOME/arcv.yml" > "${cfgDir}/arcv.yml"
fi

echo 'default app options: --subproc' >> "${cfgDir}/arcv.yml"

# When no argument specified leave with a shell, otherwise do not
if [ $# -eq 0 ] ; then

    echo "Type the following to start running all tests in interactive mode:"
    echo "  test_arcv --force-defaults -C all -y -T -i"
    echo
    echo "Type the following to start running all tests in automatic mode:"
    echo "  test_arcv --force-defaults -C all -y -T -a"

    # End up by dropping a shell
    /bin/bash
fi
