#!/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-09-18 00:19
# App version: 1.2.1
# App source revision: 240
# App source signature: 3170c50859b24b58ba4cb895ee2d9f3f872ba2b33bdcdd3cafaf9830081aca1c
# Source file last modification: 2026-08-13 01:08:37.859339867 +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/${APP}/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
