Skip to content

Commit

Permalink
chore: increase timeout for selftests (#349)
Browse files Browse the repository at this point in the history
All selftests are now running with a timeout of 10 seconds, except for
attachgenericfd, which has now its own run.sh with a timeout of
15 seconds.
  • Loading branch information
geyslan authored Aug 2, 2023
1 parent 342bc20 commit 7da9580
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
1 change: 0 additions & 1 deletion selftest/attachgenericfd/run.sh

This file was deleted.

22 changes: 22 additions & 0 deletions selftest/attachgenericfd/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# SETTINGS

TEST=$(dirname $0)/$1 # execute
TIMEOUT=15 # seconds

# COMMON

COMMON="$(dirname $0)/../common/common.sh"
[[ -f $COMMON ]] && { . $COMMON; } || { error "no common"; exit 1; }

# MAIN

kern_version ge 5.8

check_build
check_ppid
test_exec
test_finish

exit 0
4 changes: 2 additions & 2 deletions selftest/common/run-5.8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# SETTINGS

TEST=$(dirname $0)/$1
TIMEOUT=5
TEST=$(dirname $0)/$1 # execute
TIMEOUT=10 # seconds

# COMMON

Expand Down
4 changes: 2 additions & 2 deletions selftest/common/run-warn-bt-5.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# SETTINGS

TEST=$(dirname $0)/$1
TIMEOUT=5
TEST=$(dirname $0)/$1 # execute
TIMEOUT=10 # seconds

# COMMON

Expand Down
4 changes: 2 additions & 2 deletions selftest/common/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# SETTINGS

TEST=$(dirname $0)/$1 # execute
TIMEOUT=5 # seconds
TEST=$(dirname $0)/$1 # execute
TIMEOUT=10 # seconds

# COMMON

Expand Down
4 changes: 2 additions & 2 deletions selftest/uprobe/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# SETTINGS

TEST=$(dirname $0)/$1 # execute
TIMEOUT=5 # seconds
TEST=$(dirname $0)/$1 # execute
TIMEOUT=10 # seconds

CTEST=$(dirname $0)/ctest
GOTEST=$(dirname $0)/gotest
Expand Down

0 comments on commit 7da9580

Please sign in to comment.