Kelvin M. Klann
68427a2333
test: fix unescaped newlines in error messages ( #7146 )
...
Commands used to search and replace:
$ git grep -IElz 'ERROR [0-9]+n"' -- test |
xargs -0 perl -pi -e 's/(ERROR [0-9]+)n"/$1\\n"/'
Related commits:
* 63e16bfcd ("major cleanup and testing", 2016-11-13)
* 2155203b3 ("xdg macro testing", 2018-08-07)
2026-04-27 07:36:57 +00:00
Kelvin M. Klann
167a0ea74a
Fix misc whitespace
...
Command used to check for whitespace errors:
$ git diff --check 0.9.78..
2026-02-23 13:20:38 -03:00
netblue30
2f6afc99d5
gcov testing
2026-01-16 11:17:29 -05:00
netblue30
b8eae09740
make test-utils
2026-01-15 07:37:50 -05:00
netblue30
053e5daf44
jailcheck testing
2026-01-14 12:58:15 -05:00
netblue30
188d5f16d4
--profile=FILE rework ( #6896 )
2026-01-05 12:42:17 -05:00
netblue30
2a5062c800
copyright 2014-2026 all over the place
2025-12-30 08:20:44 -05:00
netblue30
212ac3cb19
update copyright
2025-01-12 19:26:24 -05:00
netblue30
ae8f62dba0
update copyright 2024
2024-01-12 11:23:22 -05:00
Kelvin M. Klann
7e91a0414c
tests: disable broken wget tests in utils/sysutils
...
They are taking longer than the 30s timeout[1] [2]:
runner@fv-az246-621:~/work/firejail/firejail/test/sysutils$
<ysutils$ firejail --ignore=quiet wget -q debian.org
Reading profile /etc/firejail/wget.profile
[...]
Child process initialized in 115.54 ms
TESTING ERROR 2
runner@fv-az1234-541:~/work/firejail/firejail/test/utils$
<irejail --build wget --output-document=~ debian.org
[...]
Resolving www.debian.org (www.debian.org)... 128.31.0.62
Connecting to www.debian.org (www.debian.org)|128.31.0.62|:443... connected.
TESTING ERROR 13
[1] https://github.com/kmk3/firejail/actions/runs/6005119423/job/16287436840
[2] https://github.com/kmk3/firejail/actions/runs/6005314148/job/16287794321
2023-08-28 19:03:09 -03:00
Kelvin M. Klann
d5c90b7416
tests: disable wget test in utils/trace.exp
...
It is apparently getting in the way of the rm test[1]:
runner@fv-az1417-728:~/work/firejail/firejail/test/utils$
<ail/test/utils$ firejail --trace wget -q debian.org
5:wget:exec /usr/local/bin/wget:0
5:wget:stat64 /etc/wgetrc:0
5:wget:fopen64 /etc/wgetrc:0x561585600510
5:wget:stat64 /home/runner/.wgetrc:-1
OK
[...]
firejail --trace rm index.html
5:wget:connect 4 128.31.0.62 port 443:0
[...]
5:wget:stat64 /home/runner/.wget-hsts:0
runner@fv-az1417-728:~/work/firejail/firejail/test/utils$ TESTING ERROR 9
[1] https://github.com/kmk3/firejail/actions/runs/6004405511/job/16284920616
2023-08-28 19:03:09 -03:00
Kelvin M. Klann
2dc28f636e
tests: fix wget test in utils/trace.exp
...
This should fix the following error[1]:
runner@fv-az1230-523:~/work/firejail/firejail/test/utils$
<ail/test/utils$ firejail --trace wget -q debian.org
[...]
5:wget:stat64 index.html:-1
5:wget:stat64 index.html:-1
5:wget:stat64 /home/runner/.netrc:-1
5:wget:socket AF_INET SOCK_STREAM IPPROTO_IP:4
5:wget:connect 4 151.101.66.132 port 80:0
5:wget:stat64 index.html:-1
5:wget:stat64 index.html:-1
5:wget:stat64 index.html:-1
[...]
TESTING ERROR 8.6
[1] https://github.com/kmk3/firejail/actions/runs/6004266783/job/16284476671
2023-08-28 19:03:09 -03:00
Kelvin M. Klann
486ef54287
tests: increase the timeouts in wget.exp and build.exp
...
To try to fix the following errors[1] [2]:
runner@fv-az298-480:~/work/firejail/firejail/test/utils$
<irejail --build wget --output-document=~ debian.org
[...]
Resolving www.debian.org (www.debian.org)... 128.31.0.62
Connecting to www.debian.org (www.debian.org)|128.31.0.62|:443... connected.
TESTING ERROR 13
runner@fv-az305-745:~/work/firejail/firejail/test/sysutils$
<ysutils$ firejail --ignore=quiet wget -q debian.org
[...]
Child process initialized in 106.89 ms
TESTING ERROR 2
[1] https://github.com/netblue30/firejail/actions/runs/5996420917/job/16278071977?pr=5979
[2] https://github.com/netblue30/firejail/actions/runs/5996420917/job/16278071219?pr=5979
2023-08-28 19:02:41 -03:00
glitsj16
9863f982ca
modif: drop deprecated 'shell' option references ( #5894 )
...
The `shell` option has been removed. Remove stale references.
This does NOT remove `shell none`-related code comments in:
- src/firejail/fs_lib.c (L433-L441)
- src/firejail/join.c (L415-L417)
Relates to #5196 .
Suggested by #5891 .
2023-07-19 12:54:53 +00:00
netblue30
c79aa14295
testing
2023-03-09 08:39:25 -05:00
netblue30
8835b130e2
testing
2023-03-08 17:32:20 -05:00
netblue30
aa0194eae7
testing
2023-03-08 17:09:17 -05:00
David Fetter
2dc16cc247
Update copyright to 2023 ( #5664 )
2023-02-15 18:57:44 +00:00
netblue30
18a4af4f77
testing --name
2023-02-14 16:11:39 -05:00
a1346054
7a5c2b205e
tests: use bash-style [[...]] instead of [...]
2022-09-13 22:37:20 +00:00
a1346054
270f0d95e3
tests: stop mixing tabs and spaces
2022-09-13 22:37:20 +00:00
a1346054
e04d6b7bf5
tests: directly test for presence of command
...
Test directly for presence of command instead of indirectly testing
the return code.
Additionally:
* uses a shell builtin `command -v` instead of external `which`
* `command -v` is the standardized version of `which`
2022-09-13 22:37:18 +00:00
Reiner Herrmann
b4f4444862
tests: add alternative message for skipping test
2022-07-30 10:48:33 +02:00
Reiner Herrmann
e1cb7ce296
tests: drop checking for hosts file in trace test
...
firejail is no longer detecting that /etc/hosts is getting opened.
in strace it can still be seen that the file is opened via syscall,
but on C library layer (which firejail is tracing) it's probably
implemented differently now.
2022-07-30 10:48:33 +02:00
netblue30
bb14c205b5
shell none set as default (6)
2022-06-19 20:03:14 -04:00
netblue30
95544a17fa
more on disable cgroups
2022-06-13 09:26:37 -04:00
smitsohu
04ff0edf74
shutdown testing
2022-06-08 15:19:46 +02:00
smitsohu
7578e86ef8
testing: fix expect matching of numbers
...
The sandbox timestamp should not be available for matching
when output is already expected from the next command
(this is only a problem if numeric output if expected from the
first command in the sandbox).
A possible alternative would be to flush the expect output buffer
with 'expect "*"' after the sandbox is up.
2022-02-09 18:30:45 +01:00
netblue30
121749f0ca
2022 copyright update
2022-01-07 12:23:47 -05:00
Kelvin M. Klann
a7e4b9b9b2
Revert "allow/deny fbuilder"
...
This reverts commit 4438f14f28 .
Also, partially revert related commit e4307b409 ("fix whitelist/allow in
make test-utils") to keep the tests working.
The profiles are being generated using aliases, which are not used on
the profiles in the repository. So generate them using the normal
commands for consistency. See also commit dd13595b8 ("Revert
"allow/deny help and man pages"") / PR #4502 .
Relates to #4410 .
Misc: I noticed this on issue #4592 .
2021-10-06 15:19:52 -03:00
startx2017
e4307b409b
fix whitelist/allow in make test-utils
2021-07-29 08:07:28 -04:00
Reiner Herrmann
632d47c906
tests: adjust expected values of --build test
2021-05-12 23:36:49 +02:00
Reiner Herrmann
c69836c5b8
tests: adjust expected values of --build test
...
Fixes #4256
2021-05-10 22:17:57 +02:00
Reiner Herrmann
e4eada2b2f
tests: drop (f)audit from tests
2021-03-01 20:21:19 +01:00
startx2017
2609e5cf0b
copyright update
2021-02-15 08:33:05 -05:00
Reiner Herrmann
c40b781481
tests: check with faudit if tests are run sandboxed
2021-02-03 18:25:11 +01:00
Reiner Herrmann
04ce86d018
tests: increase shutdown timeout a bit
...
in Debian CI and during local tests I ran into the timeout
2021-01-31 13:58:15 +01:00
Reiner Herrmann
300efec351
let github CI run tests
2020-10-24 21:44:57 +02:00
netblue30
2c55e7f152
some dbus tests
2020-09-12 07:56:25 -04:00
netblue30
e7a61d334b
fixing some of the tests
2020-05-18 07:33:28 -04:00
glitsj16
4a2a771b2c
move copyright statement to 2020 (part 1) ( #3180 )
...
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* Update file.exp
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* move copyright statement to 2020
* fix indentation
2020-01-24 16:32:28 +00:00
Reiner Herrmann
28eab84f13
tests: use pid 1, which will also exist in containers
2020-01-02 13:42:38 +01:00
Reiner Herrmann
6a9bb48ca2
tests: wait until sandbox is shutdown before running next command
2020-01-02 13:37:40 +01:00
netblue30
0e723a8391
testing
2019-10-31 15:49:41 -04:00
smitsohu
da84323594
testing suite fixes: remove shell localization
2019-09-24 14:17:37 +02:00
Fred-Barclay
6181f75e3f
Housekeeping
...
Make sure all files end with a newline
Strip extra newlines and trailing whitespace from files
2019-02-17 17:04:02 -06:00
smitsohu
0d2f252230
move copyright statement to 2019
2019-02-07 14:58:35 +01:00
netblue30
f79d62c1ea
--name rework
2019-02-01 09:18:29 -05:00
Reiner Herrmann
df1831299f
tests: skip audit.exp if tests are already running in a pid namespace
2018-10-01 14:23:24 +02:00
startx2017
69b0adead1
fixed fs-print test
2018-09-28 06:53:13 -04:00