mirror of
https://github.com/hengyoush/kyanos.git
synced 2025-12-20 01:03:46 +08:00
* support watch record print to console * support watch record print to console * fix. fix npe issue * fix. fix pid filter not works * feat. support filter pid for forked child proc * test. add some e2e tests * test. add test workflow * update btf file & print more info when find btf file failed * fix. fix test issue * fix. fix test issue * fix. fix test issue * test. add Test filter by l3/l4 info to e2e test * test. add install dig command before test * test. use /sys/kernel/btf/vmlinux as default btf * test. fix workflow bug * test. fix workflow bug * test. fix workflow bug * test. fix workflow issue * test. fix workflow issue * test. uncomment testdata/run_e2e.sh * test. uncomment testdata/run_e2e.sh * test. add test docker filter by container id * test. uncomment testdata/run_e2e.sh * test. add Test filter by pid * test. add log options * test. add log options * ci. add go release config * ci. fix ci config bug * ci. fix ci config bug * ci. fix ci config bug * ci. fix ci config bug * ci. fix ci config bug * ci. fix ci config bug * ci. fix ci config bug * ci. fix bug * test. add some log --------- Co-authored-by: root <root@kind-4.19>
24 lines
374 B
Bash
Executable File
24 lines
374 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
CMD="$1"
|
|
FILE_PREFIX="/tmp/kyanos"
|
|
LNAME="${FILE_PREFIX}_base.log"
|
|
|
|
function test_kyanos() {
|
|
timeout 20 ${CMD} watch --debug-output http 2>&1 | tee "${LNAME}" &
|
|
sleep 10
|
|
curl http://www.baidu.com &>/dev/null || true
|
|
wait
|
|
|
|
cat "${LNAME}"
|
|
cat "${LNAME}" | grep 'www.baidu.com'
|
|
}
|
|
|
|
function main() {
|
|
test_kyanos
|
|
}
|
|
|
|
main
|