403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/freeswitch-1.10.12/tests/unit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/freeswitch-1.10.12/tests/unit/collect-test-logs.sh
#!/bin/bash

echo "Collecting test logs"
LOG_DIR=./logs
html="<html><h3>There are failed unit-tests:</h3><table>"
logs=$(find $LOG_DIR -type f -iname "*.html" -print | sort)
logs_found=0
olddirname=""
for name in $logs
do
	logname=$(basename $name)
	testname=$(echo $logname | awk -F 'log_run-tests_' '{print $2}' | awk -F '.html' '{print $1}')
	testpath="${testname//!/\/}"
	dirname=$(dirname $testpath)
	test=$(basename $testpath)
	if [ "$olddirname" != "$dirname" ]; then
		html+="<tr align=\"left\"><th><br>$dirname</th></tr>" ;
		olddirname=$dirname ;
	fi
	html+="<tr align=\"left\"><td><a href="$logname">$test</a>"
	backtrace="backtrace_$testname.txt"
	if test -f "${LOG_DIR}/$backtrace"; then
		html+=". Core dumped, backtrace is available <a href=\"$backtrace\">here</a>"
	fi
	html+="</td></tr>"
	logs_found=1
done

if [ $logs_found -ne 0 ]; then
	html+="</table></html>"
	echo $html > $LOG_DIR/artifacts.html
	exit 1
fi

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit