VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /proc/self/root/usr/local/lib/node_modules/mediasoup/worker/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/local/lib/node_modules/mediasoup/worker/scripts/lcov.sh
#!/usr/bin/env bash

current_dir=${PWD##*/}

LCOV="./deps/lcov/bin/lcov"
GENHTML="./deps/lcov/bin/genhtml"
HTML_REPORT_DIR="/tmp/mediasoup-worker-lcov-report"
COVERAGE_INFO="/tmp/mediasoup-worker-lcov-report.info"

if [ "${current_dir}" != "worker" ] ; then
	echo ">>> [ERROR] $(basename $0) must be called from mediasoup/worker/ directory" >&2
	exit 1
fi

echo ">>> [INFO] clearing counters..."
$LCOV --directory ./ --zerocounters

echo ">>> [INFO] running tests..."
make test

echo ">>> [INFO] generating coverage info file..."
$LCOV --no-external --capture --directory ./ --output-file ${COVERAGE_INFO}

echo ">>> [INFO] removing tests from coverage info file..."
$LCOV -r ${COVERAGE_INFO} "$(pwd)/test/*" -o ${COVERAGE_INFO}

echo ">>> [INFO] removing deps from coverage info file..."
$LCOV -r ${COVERAGE_INFO} "$(pwd)/deps/*" -o ${COVERAGE_INFO}

echo ">>> [INFO] removing json.hpp from coverage info file..."
$LCOV -r ${COVERAGE_INFO} "$(pwd)/include/json.hpp" -o ${COVERAGE_INFO}

echo ">>> [INFO] clearing previous report data..."
if [[ -d ${HTML_REPORT_DIR} ]] ; then
	rm -rf ${HTML_REPORT_DIR}
else
	mkdir ${HTML_REPORT_DIR}
fi

echo ">>> [INFO] generating HTML report..."
$GENHTML -o ${HTML_REPORT_DIR} ${COVERAGE_INFO}

echo ">>> [INFO] clearing coverage info file..."
rm ${COVERAGE_INFO}

echo ">>> [INFO] clearing counters..."
$LCOV --directory ./ --zerocounters

if type "open" &> /dev/null; then
	echo ">>> [INFO] opening HTML report..."
	open ${HTML_REPORT_DIR}/index.html
fi

VaKeR 2022