Skip to content

Commit

Permalink
WIP: tests: temporarily debug some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kmk3 committed Apr 18, 2024
1 parent a82bb5b commit 68f2b02
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/network/net_scan.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spawn $env(SHELL)
match_max 100000

#
send -- "firejail --net=br0 --ip=10.10.20.50\r"
send -- "firejail --ignore=quiet --debug --net=br0 --ip=10.10.20.50 2>&1\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"eth0"
Expand All @@ -28,7 +28,7 @@ expect {
sleep 1

spawn $env(SHELL)
send -- "firejail --net=br0 --ip=10.10.20.60\r"
send -- "firejail --ignore=quiet --debug --net=br0 --ip=10.10.20.60 2>&1\r"
expect {
timeout {puts "TESTING ERROR 4\n";exit}
"eth0"
Expand Down
19 changes: 19 additions & 0 deletions test/sysutils/gzip.exp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ set timeout 10
spawn $env(SHELL)
match_max 100000

puts "\ngzip 0\n"
send -- "firejail --ignore=quiet --debug --profile=gzip /usr/bin/true 2>&1\r"
expect {
timeout {puts "TESTING ERROR 0.1\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}

after 5000
puts "\ngzip 1\n"

send -- "firejail --ignore=quiet --debug --profile=gzip /usr/bin/true 2>&1\r"
expect {
timeout {puts "TESTING ERROR 0.2\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}

after 5000
puts "\ngzip 2\n"

send -- "firejail gzip -c ../../mkdeb.sh | firejail gunzip -c\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
Expand Down

0 comments on commit 68f2b02

Please sign in to comment.