aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAge
* random hostname by default; fix --hostname and --hosts-fileLibravatar netblue302023-02-27
|
* test2.profile: restore leading spacesLibravatar Kelvin M. Klann2023-02-25
| | | | | | | | | | | | | | | | | | | As pointed out by @rusty-snake[1]: > I think this is intentional to test if firejail can parse commands > with leading spaces. This amends commit b406b2420 ("tests: Fix mixed space/tabs indentation", 2023-02-19) / PR #5674. Note: This is the only profile in test/ that the commit changed: $ git show --pretty= --name-only b406b2420 -- test/ test/fs/private-whitelist.exp test/network/firemon-route.exp test/profiles/test2.profile [1] https://github.com/netblue30/firejail/pull/5674#discussion_r1117891957
* Merge pull request #5674 from kmk3/fix-ws-add-editorconfigLibravatar netblue302023-02-24
|\ | | | | build: Fix whitespace and add .editorconfig
| * tests: Fix mixed space/tabs indentationLibravatar Kelvin M. Klann2023-02-20
| | | | | | | | | | | | | | | | Command used to find the errors: $ git grep -I '^ [^*]' -- test/ Misc: All of the affected files were added in 2016.
| * test/filters/namespaces.c: use tabs for indentationLibravatar Kelvin M. Klann2023-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This appears to be the only C file in the repository that uses spaces for indentation. Commands used to check for the above: $ git grep '^ ' -- '*.c' '*.h' Commands used to search and replace: $ f=test/filters/namespaces.c; printf '%s\n' \ "$(sed 's/ /\t/g' "$f")" >"$f" Note: The mmap call was aligned manually. Added on commit 5116c1ced ("testing", 2022-12-24).
| * Fix EOL at EOFLibravatar Kelvin M. Klann2023-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands used to search and replace: $ git grep -Ilz '.' | xargs -0 -I '{}' sh -c \ "printf '%s\n' \"\$(cat '{}')\" >'{}'" The above commands ensure that there is exaclty 1 line terminator at EOF (rather than 0 or more than 1) on all non-empty text files. This fixes all of the "new blank line at EOF" errors raised by git: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD | grep '^[^+]' | cut -f 3 -d : | LC_ALL=C sort | uniq -c 21 new blank line at EOF. 72 space before tab in indent. 4 trailing whitespace.
* | more private-etcLibravatar netblue302023-02-24
|/
* merges, testing, private-etcLibravatar netblue302023-02-16
|
* Update copyright to 2023 (#5664)Libravatar David Fetter2023-02-15
|
* testing --nameLibravatar netblue302023-02-14
|
* private-etc: kdiff3, gzip, gunzip, tar etcLibravatar netblue302023-02-10
|
* private-etc: libreoffice, audacity, forzen-bubble, transmission, ↵Libravatar netblue302023-02-08
| | | | md5sum/sha512sum, more sysutils testing, fix electron-hardened.inc.profile
* testingLibravatar netblue302023-02-06
|
* private-etc testingLibravatar netblue302023-02-06
|
* testingLibravatar netblue302023-02-06
|
* testing sysutilsLibravatar netblue302023-01-31
|
* private-etc rework: /etc file groupsLibravatar netblue302023-01-22
|
* small test fixesLibravatar netblue302023-01-20
|
* cleanupLibravatar netblue302023-01-19
|
* cleanupLibravatar netblue302023-01-19
|
* more profile fixes/testingLibravatar netblue302023-01-19
|
* tests: check for sh instead of bash in nice.expLibravatar Reiner Herrmann2023-01-18
| | | | (in Debian CI only sh is getting printed)
* Merge pull request #5591 from smitsohu/private-etc-no-blacklistedLibravatar netblue302023-01-15
|\ | | | | opt-in: hide blacklisted files in /etc
| * testingLibravatar smitsohu2023-01-15
| |
* | fix make test-filtersLibravatar netblue302023-01-12
| |
* | rel 0.9.72 testing: disable whitelisting /dev directoryLibravatar netblue302023-01-12
| |
* | rel 0.9.72 testing: cleanup make test-private-libLibravatar netblue302023-01-12
|/
* testingLibravatar smitsohu2022-12-24
|
* tests: remove stray ;Libravatar a13460542022-09-13
|
* tests: use bash-builtin instead of external `seq`Libravatar a13460542022-09-13
|
* tests: use bash-style [[...]] instead of [...]Libravatar a13460542022-09-13
|
* tests: stop mixing tabs and spacesLibravatar a13460542022-09-13
|
* tests: add missing final newlineLibravatar a13460542022-09-13
|
* tests: fix underquotingLibravatar a13460542022-09-13
|
* tests: use an arrayLibravatar a13460542022-09-13
|
* tests: directly test for presence of commandLibravatar a13460542022-09-13
| | | | | | | | | | 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`
* tests: fix unintentional overwriting of array valueLibravatar a13460542022-09-13
|
* tests: disable calling curl in dns test, as systemd-resolved is used on CI ↵Libravatar Reiner Herrmann2022-07-30
| | | | runner
* tests: try curl instead of wget for tracing dns resolutionLibravatar Reiner Herrmann2022-07-30
|
* tests: add alternative message for skipping testLibravatar Reiner Herrmann2022-07-30
|
* tests: drop checking for hosts file in trace testLibravatar Reiner Herrmann2022-07-30
| | | | | | | 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.
* CI: fix wrong matching for test errorsLibravatar Reiner Herrmann2022-07-30
| | | | | grep was returning non-zero exit code if it did NOT find the error marker, and zero if it did.
* testing fixLibravatar netblue302022-07-10
|
* Merge pull request #5219 from kmk3/build-reduce-config-filesLibravatar netblue302022-06-30
|\ | | | | build: reduce autoconf input files from 32 to 2
| * build: reduce autoconf input files from 32 to 2Libravatar Kelvin M. Klann2022-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure summary: autoconf essentially only parses configure.ac and generates the configure script (that is, the "./configure" shell script). The latter is what actually checks what is available on the system and internally sets the value of the output variables. It then, for every filename foo in AC_CONFIG_FILES (and for every output variable name BAR in AC_SUBST), reads foo.in, replaces every occurrence of `@BAR@` with the value of the shell variable `$BAR` and generates the file foo from the result. After this, configure is finished and `make` could be executed to start the build. Now that (as of #5140) all output variables are only defined on config.mk.in and on config.sh.in, there is no need to generate any makefile nor any other mkfile or shell script at configure time. So rename every "Makefile.in" to "Makefile", mkdeb.sh.in to mkdeb.sh, src/common.mk.in to src/common.mk and leave just config.mk and config.sh as the files to be generated at configure time. This allows editing and committing all makefiles directly, without potentially having to run ./configure in between. Commands used to rename the makefiles: $ git ls-files -z -- '*Makefile.in' | xargs -0 -I '{}' sh -c \ "git mv '{}' \"\$(dirname '{}')/Makefile\"" Additionally, from my (rudimentary) testing, this commit reduces the time it takes to run ./configure by about 20~25% compared to commit 72ece92ea ("Transmission fixes: drop private-lib (#5213)", 2022-06-22). Environment: dash 0.5.11.5-1, gcc 12.1.0-2, Artix Linux, ext4 on an HDD. Commands used for benchmarking each commit: $ : >time_configure && ./configure && make distclean && for i in $(seq 1 10); do { time -p ./configure; } 2>>time_configure; done $ grep real time_configure | awk '{ total += $2 } END { print total/NR }'
* | test/fs: enable private-lib in firejail.configLibravatar Kelvin M. Klann2022-06-25
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Before running test/fs/private-lib.exp. Inspired by the configuration changes that are done on test/root/checkcfg.exp. Reason: Since commit 9741d0b60 ("fix disabled private-lib in /etc/firejail/firejail.config", 2022-06-23), the "build_and_test" job fails with the following error[1]: TESTING: private-lib (test/fs/private-lib.exp) spawn /bin/bash firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty runner@fv-az489-993:~/work/firejail/firejail/test/fs$ <private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty Error: private-lib feature is disabled in Firejail configuration file runner@fv-az489-993:~/work/firejail/firejail/test/fs$ TESTING ERROR 1 This fixes CI. Fixes #5214. Relates to #5190. [1] https://github.com/netblue30/firejail/runs/7030862406
* deprecating --shell (3) (#5196)Libravatar netblue302022-06-21
|
* shell none set as default (6)Libravatar netblue302022-06-19
|
* shell none set as default (5)Libravatar netblue302022-06-19
|
* shell none set as default (4)Libravatar netblue302022-06-19
|