aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: add basic pspax testMathias Krause2024-07-222-0/+20
| | | | | | | | Add a basic test that simply makes sure pspax executes just fine, i.e. doesn't get killed by the seccomp policy. Signed-off-by: Mathias Krause <minipli@grsecurity.net> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* build: use standard config.h namingMike Frysinger2024-01-241-1/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Probe the target system for needed headersArsen Arsenović2022-07-121-1/+1
| | | | | | | | | | | This prevents new or unconventional systems requiring upstream changes, though, this is not perfect, as it doesn't address some of the other defines related to OSes the preprocessor does (namely, wrt the ldso cache handling). I didn't touch these yet as I took a more conservative approach of (probably) not changing what happens at runtime. Signed-off-by: Arsen Arsenović <arsen@aarsen.me> Signed-off-by: Sam James <sam@gentoo.org>
* Convert build system to mesonArsen Arsenović2022-07-1210-83/+30
| | | | | | | | | | | | | | | | | Some notes about the new build systems: - I don't fully understand the testing system, but I think I understood it well enough to implement an equivalent one. - use_seccomp could be replaced by detecting seccomp support at runtime (without support, Linux returns -EINVAL in include/linux/seccomp.h) - The fuzzing test is broken and seems to have been for a while (see commit 67f3ba64c91b5e1ac9fbbd0bc039fb8ca653cae1, it fails to fuzz on my machine) - make-tarball.sh has been replaced with meson dist - hopefully this works. meson dist should also call seccomp-bpf.c to update seccomp-bpf.h Signed-off-by: Arsen Arsenović <arsen@aarsen.me> Signed-off-by: Sam James <sam@gentoo.org>
* build: drop external function.sh useMike Frysinger2021-10-041-1/+3
| | | | | | | We use very little from it anymore, and can easily inline the few things we want. This makes code work on non-Gentoo systems. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: rename files to avoid ".py" suffix on non-python filesMike Frysinger2017-02-167-7/+7
|
* tests: add out-of-tree build supportMike Frysinger2015-12-166-32/+47
|
* use `sed -E -i.tmp` everywhereMike Frysinger2015-12-161-1/+1
| | | | | | | | POSIX is adding the -E flag to enable ERE behavior, and GNU/sed already supports this, as do various BSD systems (including OS X). While GNU makes the suffix to -i optional, POSIX/etc... do not, so make sure we always specify it.
* lddtree: handle direct ldso linkage betterv1.0.5Mike Frysinger2015-07-201-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | If the ELF we're showing is linked directly against the ELF which is used as the ELF interp (i.e. the ldso), make sure we don't list it twice. We want to see it "twice" in the pretty form: $ ./lddtree.py /bin/bash /bin/bash (interpreter => /lib/ld-linux-armhf.so.3) <= here libreadline.so.6 => /lib/libreadline.so.6 libncurses.so.5 => /lib/libncurses.so.5 libc.so.6 => /lib/libc.so.6 ld-linux-armhf.so.3 => /lib/ld-linux-armhf.so.3 <= here But not in the list form (as that is used by scripts): $ ./lddtree.py -l /bin/bash /bin/bash /lib/ld-linux-armhf.so.3 <= only here /lib/libreadline.so.6 /lib/libncurses.so.5 /lib/libc.so.6 We also reconcile a few differences wrt interp display and the sh/py implementations. Reported-by: Tomasz Buchert <tomasz@debian.org>
* tests: clean up a bitMike Frysinger2015-03-141-17/+25
| | | | | | | | The functions.sh messes with PATH, so mangle it after we load it. Pull out pass/fail so tests can use it directly. Clean up the style of testit to be more bashy and safe (quotes).
* migrate to gitv1.0Mike Frysinger2015-03-021-2/+2
|
* add autotools supportMike Frysinger2014-10-191-8/+14
| | | | URL: https://bugs.gentoo.org/413967
* enable python by defaultMike Frysinger2014-08-011-1/+1
|
* drop features.h and such from elf.h again as we do not use it and it breaks ↵Mike Frysinger2014-04-271-0/+9
| | | | no non-GNU systems #507470 by Yuta SATOH
* tests: more flexible parallel build logicMike Frysinger2013-04-071-11/+7
|
* ignore testing test python filesMike Frysinger2013-04-071-1/+4
|
* add some lddtree testsMike Frysinger2013-04-076-0/+51
|
* run pyflakes on .py files if availableMike Frysinger2012-12-141-0/+14
|
* ignore elf.h as we do not author itMike Frysinger2012-12-141-0/+3
|
* avoid using python and md5sum when possibleMike Frysinger2011-03-173-46/+35
|
* patch by Arfrever Frehtes Taifersar Arahesis for python-3Mike Frysinger2011-03-041-12/+15
|
* include filename in test outputMike Frysinger2010-02-142-2/+2
|
* start some scanelf testsMike Frysinger2010-02-146-26/+69
|
* check for lenght typoMike Frysinger2008-12-311-0/+1
|
* add test frameworkMike Frysinger2008-12-304-0/+169