1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-12 08:58:29 +00:00

tests refactoring

This commit is contained in:
deadc0de6
2023-09-21 14:09:16 +02:00
committed by deadc0de
parent c4fbd1f650
commit 6386808384
151 changed files with 469 additions and 317 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/sh
#!/usr/bin/env bash
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2023, deadc0de6
# stop on first error
set -e
set -euo errtrace pipefail
tmpworkdir="/tmp/dotdrop-tests-workdir"
export DOTDROP_WORKDIR="${tmpworkdir}"
@@ -13,7 +13,8 @@ workdir_tmp_exists="no"
[ -d "${HOME}/.config/dotdrop/tmp" ] && workdir_tmp_exists="yes"
# run bash tests
if [ -z "${GITHUB_WORKFLOW}" ]; then
GH_WORKFLOW=${GITHUB_WORKFLOW:-}
if [ -z "${GH_WORKFLOW}" ]; then
## local
tests-ng/tests_launcher.py -s
else
@@ -26,4 +27,6 @@ fi
# clear workdir
[ "${workdir_tmp_exists}" = "no" ] && rm -rf ~/.config/dotdrop/tmp
# clear temp workdir
rm -rf "${tmpworkdir}"
rm -rf "${tmpworkdir}"
echo "tests-ng done"