feat: Add basic struture for tests

This commit is contained in:
rodia
2025-09-04 11:42:55 -03:00
parent a4ebb77705
commit 3cab88fae2
14 changed files with 474 additions and 0 deletions

31
.dev/run.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
# script para iniciar entorno vivo
SCRIPT_DIR=$(dirname `realpath $0`)
die() {
echo $1
exit 1
}
[ ! -d "$SRC" ] && die "no se ubica ruta en SRC"
[ -z "$DB_NAME" ] && die "se requiere variable DB_NAME"
set -e
# instalar modulo
source ${SCRIPT_DIR}/install_module.sh
# inicializar base de datos
# https://docs.tryton.org/projects/server/en/latest/tutorial/module/setup_database.html
yes admin | trytond-admin -d ${DB_NAME} --all --act
# ejecutar servidor
export SCRIPT_DIR
export MODULES=$module_names
export DB_NAME
export SRC
honcho -d ${SCRIPT_DIR} start