Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for tests/lib  ·  View all commits
187 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
B
rcscript: rewrite entirely to be safer
Baptiste Daroussin
9 days ago 2e3e34b
B
shlibs: also remove ignored shlibs provided from shlibs required
Baptiste Daroussin
21 days ago 4701646
B
build: cleanly separate build system from vendored source
Baptiste Daroussin
22 days ago 7bba0f1
B
options: remove %Od and %OD they where never used and populated
Baptiste Daroussin
22 days ago 903337f
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
jobs: honor PKG_FLAG_DRY_RUN in pkg_jobs_execute()
Baptiste Daroussin
1 month ago da3a159
B
static_non_elf: ignore on macOS since it does not produce elf
Baptiste Daroussin
1 month ago 2acedb1
B
elf: really analyse the content of an .a
Baptiste Daroussin
1 month ago 637c144
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
B
tests: update checksums in test after addition of vital flag
Baptiste Daroussin
7 months ago ed5347a
T
libpkg: Add Common Platform Enumeration emitter and parser
Tuukka Pasanen
7 months ago 9e4094a
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
T
atf: fix for OSVF #ifndef
Tuukka Pasanen
7 months ago 0754822
B
fix typo
Baptiste Daroussin
7 months ago 0d4d0fd
B
atf: support old version of the lib
Baptiste Daroussin
7 months ago 7e629c0
T
libpkg add: OSVF parser
Tuukka Pasanen
7 months ago 8208c23
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
kv_insert_sorted: fix bad unit test
Baptiste Daroussin
11 months ago fed9f14
B
kv: insert all keyvalues directly sorted
Baptiste Daroussin
11 months ago c329d0a
B
pkg: for all lists insert elements sorted
Baptiste Daroussin
11 months ago abac190
B
add: attempt to further improve pkg add performances
Baptiste Daroussin
11 months ago 009e7a8
B
vec: simplify vec_init() usage
Baptiste Daroussin
1 year ago 6401b82
B
cleanup: remove useless tll inclusion
Baptiste Daroussin
1 year ago 054f624
B
kvlist: add unit test and fix code
Baptiste Daroussin
1 year ago 129fbf3
B
utils: add charv_search
Baptiste Daroussin
1 year ago b4c8d82
B
abi: add test to ensure we don't wrongly skip en entry in the shlibs
Baptiste Daroussin
1 year ago d650c74
B
abi: add more tests for pkg_cleanup_shlibs_required
Baptiste Daroussin
1 year ago ce991b8
B
vec: add tests for vec_remove_and_free
Baptiste Daroussin
1 year ago 65f3201
B
vec: convert kvlist into vectors
Baptiste Daroussin
1 year ago 28aa748
B
pkg: convert stringlist_t to charv_t
Baptiste Daroussin
1 year ago 3c90262
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
B
shlibs: add basic tests about the cleanup of shlibs required
Baptiste Daroussin
1 year ago fb1a060
I
libpkg: add SHLIB_PROVIDE_PATHS_* options
Isaac Freund
1 year ago a35c0a3
K
Review leak suppression
Keve
1 year ago 2ac1082
B
str_ends_with: add a new util function
Baptiste Daroussin
1 year ago f398b0b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 97b10c5
B
extract: fix regression when dealing with symlinks in the path
Baptiste Daroussin
1 year ago ab3906b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 2498431
B
vec: rename pkgvec.h into pkg/vec.h
Baptiste Daroussin
1 year ago 22dddf2
B
testhash: add the forgotten c file
Baptiste Daroussin
1 year ago f040454
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago bf1eb68
B
pkg.print_msg: rewite tests to avoid forks
Baptiste Daroussin
1 year ago 9ca3a1b
B
pkg.stat tests: rework to avoid forks and directly test the variables
Baptiste Daroussin
1 year ago d3116ec
B
pkg.readdir: fix reading the root directory
Baptiste Daroussin
1 year ago 6d88461
B
lua readdir: rework unit tests
Baptiste Daroussin
1 year ago 353c3c9
I
libpkg: track lib32 and Linuxulator shlibs
Isaac Freund
1 year ago 3882f0f
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 25ee7d0
I
libpkg: make shlib handling portable
Isaac Freund
1 year ago 6462d8a
K
More leak fixes as well as skipped leaks.
Keve
1 year ago 306fc12
I
libpkg: rework internal ABI handling, fix bugs
Isaac Freund
1 year ago 6c740ac
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c3b674e
B
test: fix test run from an external build
Baptiste Daroussin
1 year ago 4f22794
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
vec: fix test reported by debian ci
Baptiste Daroussin
1 year ago 169a72e
B
elf: add tests for shlibs required analysis
Baptiste Daroussin
1 year ago aca44db
B
elf: test analysing a non elf file
Baptiste Daroussin
1 year ago d00e8cd
B
elf: add unit test for pkg_analyse_elf + initialization fixes
Baptiste Daroussin
1 year ago 7fb71e9
B
pkgvec: actually add the test file
Baptiste Daroussin
1 year ago 00c1cab
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c62eec6
K
Fix wrong re-definition of AT_FDCWD in bsd_compat.h on MacOS.
Keve
1 year ago 61f0a39
K
Fix kyua tests/lua:print_msg on Ubuntu 24.04 and MacOS.
Keve
1 year ago 9da3571
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago fd4c88b
B
pkg: allow to define threads for zstd and xz
Baptiste Daroussin
2 years ago bd83d9c
B
extraction: fix an upgrade issue with symlinks becoming directories
Baptiste Daroussin
2 years ago e482b66
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago f0dee69
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago ba94185
B
plist: fix variable expansion when a line ends with '%'
Baptiste Daroussin
2 years ago 961d455
B
plist: add more test for variables handling
Baptiste Daroussin
2 years ago 26101cc
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
curl: add HTTP_AUTH compatiblility with libfetch
Baptiste Daroussin
2 years ago 6e6c9ad
B
pkg_attribute: avoid collision with pkg_list
Baptiste Daroussin
3 years ago d9c65f6
B
libpkg: kill useless pkg_manifest_key API
Baptiste Daroussin
3 years ago eec0e90
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
tests: fix the file creation
Baptiste Daroussin
3 years ago e687e49
B
open_tempdir: add a new function
Baptiste Daroussin
3 years ago 3fbc61c
B
test: use ATF_TC_WITHOUT_HEAD to simplify code for tests
Baptiste Daroussin
3 years ago e04d9e6
B
lua: add a function to make symlinks
Baptiste Daroussin
3 years ago 9bf1a55
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
pkg: convert dir_to_del to stringlist
Baptiste Daroussin
3 years ago e51cfdd
B
checksums: improve test suite
Baptiste Daroussin
4 years ago 7439bee
B
utils: add a test suite for json_escape
Baptiste Daroussin
4 years ago 2d23159
B
metalog: fix test on platform which does not have fflags
Baptiste Daroussin
4 years ago 12ff4b0
B
plist: add test case for @name
Baptiste Daroussin
4 years ago 09eab81
B
metalog: add test file forgotten previously
Baptiste Daroussin
4 years ago f956a17
B
memory: fix the potential overflow in a generic manner
Baptiste Daroussin
4 years ago 89b90c3
B
tempfile: improve the filename creation to reduce ENAMETOOLONG risks
Baptiste Daroussin
4 years ago ce75303
B
fix bad syntax for cpp instructions
Baptiste Daroussin
4 years ago 206ecf7
B
tests: really skip test for freebsd 12 about tzst
Baptiste Daroussin
4 years ago ec79064
B
tests: remove the tests on freebsd 12 about tzst
Baptiste Daroussin
4 years ago 403647a
B
packing: use pkg_config.h to get the information about zstd support
Baptiste Daroussin
4 years ago 91b74a4
B
ssh: cover ssh with unit tests
Baptiste Daroussin
4 years ago b4f5453
B
libarchive on freebsd 12 does not support zstd natively
Baptiste Daroussin
4 years ago c56990d
B
packing: add more unit test
Baptiste Daroussin
4 years ago ad3f9b4
B
coverage: test cover all missing function for checksums
Baptiste Daroussin
4 years ago 067b97d
B
checksum: improve code coverage
Baptiste Daroussin
4 years ago 5424f82
B
lua: cover all of the user facing functions with tests
Baptiste Daroussin
4 years ago 1e87b6b
B
tests: add more testing on the lua functions
Baptiste Daroussin
4 years ago 8cff15b
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
Rework the keyword parsing function to make them more testable
Baptiste Daroussin
5 years ago 6569097
B
tests: get rid of utstring
Baptiste Daroussin
5 years ago 29aebd8
B
merge3: get rid of utstring
Baptiste Daroussin
5 years ago d88f0c4
B
pkg_printf: migrate to open_memstream
Baptiste Daroussin
5 years ago a61a302
B
Adapt the plist tests to the recent changes.
Baptiste Daroussin
6 years ago 1119bbf
B
Merge branch 'autosetup'
Baptiste Daroussin
7 years ago b9c18cf
B
Defined __unused for linux
Baptiste Daroussin
7 years ago e5763aa
B
Mark some unused parameter as such
Baptiste Daroussin
8 years ago 2931715
B
Fix some sign compare warnings
Baptiste Daroussin
8 years ago 2f6fea5
B
Add blake2s in the list of supported checksums
Baptiste Daroussin
9 years ago e3285b5
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Fix building regression tests
Baptiste Daroussin
9 years ago b4e95f4
B
Remove notion of rootdir/destdir for checksum
Baptiste Daroussin
9 years ago 1279f9e
B
Revert "Add blacke2_hex checksums"
Baptiste Daroussin
9 years ago 9b99349
B
Add blacke2_hex checksums
Baptiste Daroussin
9 years ago 0fb246e
B
add a new event: PKG_EVENT_FILE_MISSING
Baptiste Daroussin
10 years ago 1ecbb20
M
Ignore the zero padding format modifier with sting values
Matthew Seaman
10 years ago 1e310be
B
Linux does not have whiteout device type
Baptiste Daroussin
10 years ago 9af2287
B
Fix merge test
Baptiste Daroussin
10 years ago fd115da
B
Add a new test case for dep formula operands
Baptiste Daroussin
10 years ago 0560ab9
B
Remove never used uidstr/gidstr
Baptiste Daroussin
10 years ago d7d8ada
B
Remove more garbage
Baptiste Daroussin
10 years ago ad7271c
V
Add unit tests for some missing features in formula.
Vsevolod Stakhov
10 years ago 32b8b10
V
Add unit test for dependency formula.
Vsevolod Stakhov
10 years ago 2508a68
B
Add tests about checksum on regular files
Baptiste Daroussin
10 years ago 27dbb6e
B
Add more tests regarding checsum validation
Baptiste Daroussin
10 years ago f9a600c
B
Add a function to generate checksum for file in the new format
Baptiste Daroussin
10 years ago 721b5a1
B
Prepare for multiple checksum formats supported for files
Baptiste Daroussin
10 years ago a4038bb
B
Initial regression tests on checksum (only pkg_checksum_symlink for now)
Baptiste Daroussin
10 years ago fc983e3
B
Add a test about @dirrm and @dirrmtry
Baptiste Daroussin
11 years ago 8bb8a97
B
Add a test about parsing @dir
Baptiste Daroussin
11 years ago ba22f9b
B
Update tests after removal of unused parameters
Baptiste Daroussin
11 years ago 8fd8c02
B
Make the test failure ouptut more verbose
Baptiste Daroussin
11 years ago f6ff908
M
Update tests to add new %x (package tarball size) format. Also add the neglected tests for %z (short checksum) format. '%x' had previously been used as a test for a non-existent format, so introduce '%Z' now in that role.
Matthew Seaman
11 years ago 6a258e3
B
Merge pull request #1113 from landonf/osx/release/0.1
Baptiste Daroussin
11 years ago 3eafef1
L
Fix portable build of test suite.
Landon Fuller
11 years ago b236be0
B
Fix plist test
Baptiste Daroussin
11 years ago e6d7e58
B
Add a test checking the pervious failure
Baptiste Daroussin
11 years ago 25eef44
B
arch is not mandatory anymore
Baptiste Daroussin
11 years ago bfd6e08
B
Add a test to ensure we always fail when trying to package a non existing file
Baptiste Daroussin
11 years ago 6a9e0f1
B
pkg_file is only used internally no need for accessors for other cases pkg_printf is enough
Baptiste Daroussin
11 years ago 7e21f29
B
Garbage collect now no-op code
Baptiste Daroussin
11 years ago f0b1fae
B
Add more test for 3 way merge
Baptiste Daroussin
11 years ago 6d82384
B
Do not add a trailing newline when not necessary in 3 way merge
Baptiste Daroussin
11 years ago f7031e2
B
plug memory leak in 3way merge test
Baptiste Daroussin
11 years ago c72f5c8
B
Add a minimal regression test for 3 way merge
Baptiste Daroussin
11 years ago 578a6bf
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago ac5412b
B
Add tests for the regression
Baptiste Daroussin
11 years ago 647ebc1
B
Plist need stage
Baptiste Daroussin
11 years ago f1772d8
B
Make the default owner/group: root/wheel
Baptiste Daroussin
11 years ago bdff471
B
Make unkown keyword fatal
Baptiste Daroussin
11 years ago f8f93b3
B
Refactor plist parsing a bit to make it easier for regression testing
Baptiste Daroussin
11 years ago 44d3488
B
Add test cases for pkg_add_dir_to_del
Baptiste Daroussin
11 years ago 156540e
B
Add a test case for parse_mode
Baptiste Daroussin
11 years ago 420162f
B
Fix pkg_validations tests
Baptiste Daroussin
11 years ago 7a7336e
B
Merge remote-tracking branch 'origin/pr/957'
Bryan Drewery
11 years ago 5d74f50
B
Convert over to Kyua
Brad Davis
11 years ago f112715
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Update tests to cover new %Od and %OD format codes.
Matthew Seaman
12 years ago b06fa85
B
Fix test compilation
Baptiste Daroussin
12 years ago be8da8f
B
Fix building tests with gcc48
Bryan Drewery
12 years ago ba51124
B
Use ATF_REQUIRE directly instead of ATF_REQUIRE_EQ to validate != NULL
Baptiste Daroussin
12 years ago 21b66f5
B
Also test PKG_FILE and PKG_REMOTE
Baptiste Daroussin
12 years ago 7bc6183
B
Add complete tests to validate a PKG_INSTALLED package
Baptiste Daroussin
12 years ago 4fd3ef0
B
Add test case for pkg_is_valid
Baptiste Daroussin
12 years ago c807bad
M
Merge branch 'pkg_printf'
Matthew Seaman
12 years ago 96a2e4e
M
Actually, change %N to produce the repo identity -- the tag that is used in pkg.conf(5) -- rather than repo name: the basename of the sqlite file and the name the database is mounted as (which is properly of interest only to the inernals of pkg, and not what we want pkg query etc. to display).
Matthew Seaman
12 years ago 2306132
M
Add new %N pkg_printf() escape: Repository name, plus doccumentation and testing for the same.
Matthew Seaman
12 years ago bfba1d1
M
Add tests for new pkg_printf() formats: %R, %V, %u
Matthew Seaman
12 years ago af0bfe8
M
Add tests for %q -- package architecture
Matthew Seaman
12 years ago 8ab84fa
B
force the symlink creation to avoid the build the fail if pkg_printf.c already exist
Baptiste Daroussin
12 years ago dfcc233
M
Add tests for %S
Matthew Seaman
12 years ago 72e6e4c
M
Nuke PKG_INFOS from orbit (it's the only way to be sure.)
Matthew Seaman
12 years ago 8938697
M
Update tests due to adding %e, %dk and %rk
Matthew Seaman
12 years ago 241e1c5
M
Move alloc() / free() of struct percent_esc * up a level in the function call tree -- reduce the number of alloc()/free() cycles.
Matthew Seaman
12 years ago a48421c
M
Use a lest cryptic name for the tests
Matthew Seaman
12 years ago 8d1ac98
M
Still rearranging the test programs
Matthew Seaman
12 years ago 424aaa7
M
Begin merging pkg_printf tests into new testing framework
Matthew Seaman
12 years ago 20e5dbc
M
Make the compiled test programs dynamically link against libpkg.so.1 in the build tree, rather than any copy that happens to be on the usual library search path.
Matthew Seaman
12 years ago 2472aef
M
Fix the path to the libpkg dir -- if it's not right, we won't test against what was just compiled, but what was last installed.
Matthew Seaman
13 years ago 9b9b96b
M
bsd.tests.mk -- allow compiling multiple tests per directory.
Matthew Seaman
13 years ago 191b409
M
Update to add keys argument to pkg_parse_manifest() which implies adding calls topkg_manifest_keys_{new,free}().
Matthew Seaman
13 years ago 98b489d
M
Add Atffile for lib
Matthew Seaman
13 years ago eda2982
M
Import bsd.prog.mk as the basis for bas.tests.mk
Matthew Seaman
13 years ago dd550cd
B
Add more pkg field tests
Bryan Drewery
13 years ago ea742d9
B
Rename pkg_value -> pkg_str
Bryan Drewery
13 years ago 6577be1
B
Enable pkg field tests
Bryan Drewery
13 years ago 683b7f8
B
Prepare layout for atf-sh
Baptiste Daroussin
13 years ago de334ee