libvirt_cloud/roles/toxcore/overlay/Linux/usr/local/src/usr_local_toxcore.bash

66 lines
1.7 KiB
Bash
Raw Normal View History

2024-01-01 01:04:40 +00:00
#!/bin/bash
# -*- mode: sh; tab-width: 8; coding: utf-8-unix -*-
prog=`basename $0 .bash`
ROLE=toxcore
2024-01-04 14:53:42 +00:00
PREFIX=/usr/local
2024-01-15 12:44:06 +00:00
LOCAL_DOCTEST=/usr/local/bin/testforge_run_doctest3.bash
DOCTEST=${LOCAL_DOCTEST}
2024-01-01 01:04:40 +00:00
2024-01-04 14:53:42 +00:00
. /usr/local/bin/usr_local_tput.bash
2024-01-09 14:16:55 +00:00
# we install into /usr/local/bin and it takes precedence
2024-01-01 01:04:40 +00:00
# export PATH=$PREFIX/bin:$PATH
2024-01-09 14:16:55 +00:00
. $PREFIX/src/usr_local_src.bash || exit 2
2024-01-01 01:04:40 +00:00
[ `id -u` -eq 0 ] && ERROR $prog should not be run as root && exit 3
if [ "$#" -eq 0 ] ; then
cd $PREFIX/src || exit 2
WD=$PWD
2024-01-15 12:44:06 +00:00
bash c-toxcore.bash # || exit 13$?
bash tox_profile.bash # || 14$?
2024-01-04 14:53:42 +00:00
# sh mitogen.bash
2024-01-15 12:44:06 +00:00
# sh toxcore_docker.bash || exit 14$?
2024-01-04 14:53:42 +00:00
# which sdwdate >/dev/null 2>/dev/null || \
# [ -f $PREFIX/bin/sdwdate.bash ] || \
# sh sdwdate.bash
2024-01-15 12:44:06 +00:00
bash gridfire.bash # || exit 16$?
bash pyassuan.bash #|| exit 17$?
bash tinfoilhat.shmoo.com.bash
2024-01-04 14:53:42 +00:00
# sh negotiator.bash
2024-01-15 12:44:06 +00:00
bash kernelexpect.bash
# bash dracut-055.bash
bash toxygen_wrapper.bash
2024-01-09 14:16:55 +00:00
[ -d testssl.sh ] || \
2024-01-15 12:44:06 +00:00
sh testssl.bash || exit 19$?
2024-01-01 01:04:40 +00:00
exit 0
elif [ "$1" = 'check' ] ; then
exit 0
2024-01-08 12:51:06 +00:00
msys_run_checks_pip3
msys_var_local_src_prog_key check || exit 10$?
2024-01-01 01:04:40 +00:00
exit $?
elif [ "$1" = 'lint' ] ; then
2024-01-09 14:16:55 +00:00
# ols_run_tests_shellcheck $ROLE || exit 2$?
2024-01-08 12:51:06 +00:00
msys_var_local_src_prog_key $1 || exit 21$?
2024-01-15 12:44:06 +00:00
msys_run_tests_pylint || exit 22$?
2024-01-09 14:16:55 +00:00
exit 0
2024-01-01 01:04:40 +00:00
elif [ "$1" = 'test' ] ; then
exit 0
2024-01-08 12:51:06 +00:00
msys_var_local_src_prog_key $1 || exit 30$?
msys_check_pips_inst
msys_gentoo_test_imports || exit 32$?
2024-01-01 01:04:40 +00:00
#hangs /usr/bin/expect gpgkey_test_gpg.exp foobar || exit 31$?
2024-01-15 12:44:06 +00:00
elif [ "$1" = 'doctest' ] ; then # 8*
msys_var_local_src_prog_key $1 || exit 8$?
${DOCTEST} /usr/local/share/doc/txt/${ROLE}3.txt
2024-01-01 01:04:40 +00:00
fi