Juan RP
b7d91b490c
Move libxbps shell tests to libxbps/shell and remove unused test-shell.mk.
2013-11-06 11:52:02 +01:00
Juan RP
6952144d60
Simplify tests/xbps/xbps-rindex structure.
2013-11-06 11:11:00 +01:00
Juan RP
8f36f8e638
Make sure that configuration files are properly kept or unpacked.
...
Added two new test cases to verify it works as advertised.
2013-11-06 10:45:33 +01:00
Juan RP
987d374ea9
Added an ATF test-case for #6 ( close #6 ; this has been fixed previously).
2013-11-06 09:37:38 +01:00
Juan RP
c1fafcd339
Fix #20 and added an ATF test-case.
2013-11-05 09:56:36 +01:00
Juan RP
89c62c626c
xbps-rindex: [clean] the filesclean test now passes successfully.
2013-11-03 11:15:56 +01:00
Juan RP
c06115af9a
issue18_test: pass optional 2nd arg "cleanup" to atf_test_case().
2013-11-03 10:53:26 +01:00
Juan RP
a8bfc4e9f8
xbps-rindex: add more test-cases and merge issue19 into the generic clean_test.
2013-11-03 10:52:32 +01:00
Juan RP
4d3a412d9e
Reorganize tests and move all them under /usr/tests/xbps.
2013-11-03 09:30:57 +01:00
Juan RP
4e4e4a49d0
Added an ATF test-case for issue #19 .
2013-11-02 11:44:54 +01:00
Juan RP
2b40d8ad54
issue18_test: use atf_check_equal() instead and cleanup stuff at the end.
2013-11-01 18:47:23 +01:00
Juan RP
c4a0568c08
Added an ATF test-case for issue #18 (in shell).
2013-11-01 18:35:25 +01:00
Juan RP
09e116b7f0
xbps_api.h -> xbps.h
2013-06-20 12:31:02 +02:00
Juan RP
5642ca6cfc
Update tests to the new API.
2013-06-20 11:33:50 +02:00
Juan RP
430b224f58
Add new kyua tests for xbps_find_pkg_orphans().
2013-03-11 12:59:31 +01:00
Juan RP
bc6aa52f33
Add some tests for pkgdb.
2013-03-10 10:08:58 +01:00
Juan RP
b976a45aed
New code to find pkg obsolete files, with a proper kyua test.
...
Previous code incorrectly found obsolete files in this case:
(curpkg) - in files: /etc/foo.conf
(newpkg) - in conf_files: /etc/foo.conf
and removed this file because the code couldn't find it in the same
array. The new code fixes this case and compares the whole pkg filelist.
2013-03-09 13:30:56 +01:00
Juan RP
15b148fb51
tests: remove obsolete tests for 0.19 API.
2012-11-30 07:47:22 +01:00
Juan RP
d6735d5685
xbps_xasprintf: do not return NULL anymore; remove checks for this.
2012-11-11 09:37:27 +01:00
Juan RP
068cab8d20
libxbps: performance improvements by caching the most accessed paths.
...
1- We can cache the result of the first xbps_pkgdb_init() when it fails
and avoid the malloc/free/access from it.
2- We cache the uname(2) result into a private var in xbps_handle and
use it in xbps_pkg_arch_match().
This improves performance by ~5% approx and it's close as it was before
introducing the repository index format 1.5.
2012-06-15 15:33:11 +02:00
Juan RP
2c50346143
tests: update libxbp/find_pkg tests for new API changes.
2012-06-14 08:27:10 +02:00
Juan RP
c37026d4c6
libxbps: require an underscore in strings to detect correctly pkgname/version.
2012-06-05 10:58:39 +02:00
Juan RP
7289547432
Welcome "repository index format 1.5". See NEWS for information.
2012-05-31 16:29:56 +02:00
Juan RP
eea183bef4
Remove plist_find_virtualpkg_conf tests, supersed by find_pkg.
2012-03-13 11:34:45 +01:00
Juan RP
749e03aa29
Make xbps_find_virtualpkg_conf_in_xxx_by_xxx part of the API and add kyua tests.
2012-03-12 17:51:50 +01:00
Juan RP
715990a1e5
Make xbps_find_virtualpkg_in_dict_by_xxx part of the API and add kyua tests.
2012-03-12 16:36:46 +01:00
Juan RP
35db47eafd
tests: drop trailing whitespaces.
2012-03-12 15:35:53 +01:00
Juan RP
d4f623e7e7
Commit Kyua/ATF test suite for libxbps.
2012-03-12 15:23:04 +01:00