Run tests in OpenBSD with doas. (#5234)

* fix netbsd dbg map test
* openbsd: run doas rz-test with with correct environment
This commit is contained in:
well-mannered-goat 2025-07-05 16:14:13 +05:30 committed by GitHub
parent 9875a993f3
commit 2ac62f1d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -49,4 +49,8 @@ tasks:
ln -s ${HOME}/rizin-testbins test/bins
cd test
# Running the unit tests
MALLOC_OPTIONS=CFGU rz-test -t 1200 -L -o results.json
doas env PATH="${HOME}/bin:${PATH}" \
LD_LIBRARY_PATH="${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}" \
PKG_CONFIG_PATH="${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}" \
MALLOC_OPTIONS=CFGU \
rz-test -t 1200 -L -o results.json

View file

@ -23,9 +23,10 @@ CMDS=<<EOF
dm~hello~[3-9]
dc
EOF
REGEXP_FILTER_OUT=(?:(\-\susr\s4K\ss\sr-x)|(?:\s[0-9]+\s(?=\d))|(\/home\/build\/rizin-testbins\/elf\/netbsd-hello-x64))
EXPECT=<<EOF
- usr 4K s r-x 1581277 /home/build/rizin-testbins/elf/netbsd-hello-x64
Hello World
- usr 4K s r-x
/home/build/rizin-testbins/elf/netbsd-hello-x64
EOF
RUN