#!/bin/bash
###############################################################################
# Arcv-test
# 
# Copyright (c) 2026 Michel MEHL. All rights reserved. 
# 
# License terms written down in file LICENSE.txt
# Release file path: dock-debug-app
# Release file date: 2026-10-24 17:07
# App version: 2.0.0
# App source revision: 269
# App source signature: 6316b8b5ecbeb6abdeb59dfcc2108cc35a724a5c177ea5b82e41cd3a1f96ad6f
# Source file last modification: 2026-08-25 12:12:09.880634081 +0200
#
# This header was generated. Do not modify.
#
# ------------------------------------------------------------------------------
#
# ------------------------------------------------------------------------------
# 
# 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

# 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"

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
