Skip to content

Commit

Permalink
test: increase worker number
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed May 5, 2024
1 parent abebcec commit b147a27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/libpcap
Submodule libpcap updated 199 files
3 changes: 2 additions & 1 deletion testdata/test_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RNAME="${FILE_PREFIX}_base.read.txt"


function test_ptcpdump() {
timeout 30s ${CMD} -c 1 -i any --print -w "${FNAME}" --delay-before-handle-packet-events=1s --event-chan-size=1024 \
timeout 30s ${CMD} -c 1 -i any --print -w "${FNAME}" \
--delay-before-handle-packet-events=1s --exec-events-worker-number=50 \
'dst host 1.1.1.1 and tcp[tcpflags] = tcp-syn' | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
Expand Down
3 changes: 2 additions & 1 deletion testdata/test_pid_filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RNAME="${FILE_PREFIX}_filter_by_pid.read.txt"


function test_ptcpdump() {
timeout 30s ${CMD} -c 6 --pid $$ -f -i any --print -w "${FNAME}" --delay-before-handle-packet-events=1s --event-chan-size=1024 | tee "${LNAME}" &
timeout 30s ${CMD} -c 6 --pid $$ -f -i any --print -w "${FNAME}" \
--delay-before-handle-packet-events=1s --exec-events-worker-number=50 | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
wait
Expand Down
3 changes: 2 additions & 1 deletion testdata/test_pname_filter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ RNAME="${FILE_PREFIX}_filter_by_pname.read.txt"


function test_ptcpdump() {
timeout 30s ${CMD} -c 6 --pname curl -f -i any --print -w "${FNAME}" --delay-before-handle-packet-events=1s --event-chan-size=1024 | tee "${LNAME}" &
timeout 30s ${CMD} -c 6 --pname curl -f -i any --print -w "${FNAME}" \
--delay-before-handle-packet-events=1s --exec-events-worker-number=50 | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
wait
Expand Down

0 comments on commit b147a27

Please sign in to comment.