firejail/test/sysutils/strings.exp
Kelvin M. Klann ec504406b9 test: disable broken sysutils strings test
And limit the output of `diff` in the test to avoid logging thousands of
lines of a hexdump.

Likely broken by commit 3077b2d1f ("update disable-devel.inc",
2023-08-22)[1].

[1] https://github.com/netblue30/firejail/actions/runs/5945120115/job/16123622451
2023-08-23 08:08:51 -03:00

26 lines
528 B
Text
Executable file

#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2023 Firejail Authors
# License GPL v2
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "/usr/bin/strings /usr/bin/firejail > firejail_t1\r"
sleep 1
send -- "firejail /usr/bin/strings /usr/bin/firejail > firejail_t2\r"
sleep 1
send -- "diff -s firejail_t1 firejail_t2 | head\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"firejail_t1 and firejail_t2 are identical"
}
send -- "rm firejail_t*\r"
sleep 1
puts "\nall done\n"