Commit Graph

69 Commits

Author SHA1 Message Date
Juan RP
21f32a75c5 Fixed a new issue with vpkgs replacing the same vpkg they are providing.
Added a new testcase to verify its correctness.
2014-07-01 15:35:55 +02:00
Juan RP
0953980d25 tests/xbps/xbps-rindex: explicitly set rootdir to unbreak tests. 2014-05-31 06:31:01 +02:00
Enno Boland
e903731718 adding test for globbing nonexistent files. 2014-05-29 10:00:20 +02:00
Juan RP
61a1d33995 xbps-install(8): implemented single pkg updates without -u, --update.
The -u, --update is now only necessary to perform full system updates.

Close #35 (https://github.com/voidlinux/xbps/issues/35)
2014-05-27 11:33:45 +02:00
Juan RP
e1e5310428 tests: installmode: use -d to inspect stderr. 2014-05-27 11:15:40 +02:00
Juan RP
1c26b2ef95 tests: new tests to verify pkg install order with real and virtual pkgs. 2014-05-22 13:44:35 +02:00
Juan RP
e2b0de8859 tests/xbps/libxbps/shell/remove_test.sh: use -d arg to see what's going on. 2014-05-22 10:49:17 +02:00
Juan RP
db0b69b397 tests/xbps/libxbps/config: fix clang warning: strncat() needs an additional byte for NUL. 2014-05-16 09:51:58 +02:00
Juan RP
869466278b Fixed a new issue with virtual packages, as reported by Gottox. 2014-05-15 22:07:10 +02:00
Juan RP
7a4e6862cd tests: recurse into the new config tests. 2014-05-13 12:14:34 +02:00
Enno Boland
f369c24e90 tests: use right name in copyright. 2014-05-13 11:47:57 +02:00
Enno Boland
93e6aada54 tests: remove unneccassary test script 2014-05-13 11:46:47 +02:00
Enno Boland
f4c0ecdcbf using config_ prefix instead of xbps_conf_ for tests 2014-05-13 11:41:40 +02:00
Enno Boland
152ec0354f libxbps: file including in xbps.conf supports relative paths. 2014-05-13 11:37:09 +02:00
Juan RP
6c8a073fb2 tests: new test for xbps-query(8) -Rf when binpkg is not available. 2014-05-06 11:16:00 +02:00
Juan RP
c992db2bc0 New test cases to detect pkgs with dependencies on itself. 2014-04-20 18:19:12 +02:00
Juan RP
bb491e2667 libxbps: detect and ignore incorrect deps of a pkg if those are virtual pkgs. 2014-04-20 16:54:50 +02:00
Juan RP
4530c79bb2 Make sure that root symlinks in void are never removed or detected as obsoletes.
Added/improved test cases to detect those conditions work as expected.
2014-03-31 10:16:18 +02:00
Juan RP
ef3b6278a6 Added support to pass native machine architecture to pkg scripts (6th arg). 2014-03-12 10:16:37 +01:00
Juan RP
9101241b20 Fix pkg symlink removal introduced in the two phase package removal feature. 2014-02-26 10:05:19 +01:00
Juan RP
8c47021ec3 Fix #31 and add new test case to reproduce it. 2014-02-25 22:55:39 +01:00
Juan RP
2fa0d56658 Fixed a xbps_pkgpattern_name() crash and a test to reproduce it (found by Gottox). 2014-02-15 01:26:42 +01:00
Juan RP
835812df2c tests: pass -v flag to xbps-install(8). 2014-01-15 21:51:20 +01:00
Juan RP
36adf15c6b tests: new test to verify obsolete files code works in updates and reinstalls. 2014-01-15 20:59:49 +01:00
Juan RP
5176ca05e8 tests: libxbps: use unexistent xbps.conf to only use local repo. 2014-01-15 20:59:05 +01:00
Juan RP
19b248d57d tests: issue18: remove useless cleanup. 2014-01-15 17:55:29 +01:00
Juan RP
98a3723902 Respect installation mode also on reinstall (and downgrade). 2014-01-15 16:17:41 +01:00
Juan RP
292be5c420 Make sure that all symlinks in a package are removed, not just dangling symlinks. 2014-01-12 17:10:07 +01:00
Juan RP
a57fe48709 tests/xbps/libxbps/shell/remove_test.sh: use full path for local repo. 2014-01-03 10:08:32 +01:00
Juan RP
152212a9ab Update tests for new API. 2013-12-16 11:55:51 +01:00
Juan RP
2ab90bdc09 Fixed issue #26 (Replacing an installed pkg multiple times). 2013-12-12 18:24:24 +01:00
Juan RP
87dbf3d25b tests/replace: fix path to the private repo. 2013-12-12 17:33:04 +01:00
Juan RP
da848cb0ea Fix shebang in last test-case committed. 2013-12-12 17:24:43 +01:00
Juan RP
90351bef08 Added a new test case to reproduce an issue while replacing a pkg multiple times.
The test case currently fails; will be fixed shortly in an upcoming commit.
2013-12-12 17:21:57 +01:00
Juan RP
eba8ca0319 tests/xbps/xbps-rindex: fix tests after 4403caa (only use test repo). 2013-12-08 08:04:39 +01:00
Juan RP
7c57918950 xbps-rindex(8): fix #24 and added an ATF test case. 2013-11-29 17:30:45 +01:00
Juan RP
dce26db1de libxbps: pkg remove: never remove base symlinks in the root directory.
The /bin, /sbin, /lib, /lib32, /lib64, /var/run symlinks should never be removed
in Void, so be safe and ignore the removal of them.

Added another test to the testsuite to verify its correctness.
2013-11-28 10:27:36 +01:00
Juan RP
172c84040c xbps-rindex: fix clean mode while removing obsolete entries on index-files with updates. 2013-11-25 10:16:38 +01:00
Juan RP
c9825feb29 util.c: add stricter checks for pkgver conformance (v2).
There was another case where it now was failing: "fs-utils-v1.00_1".

Previous code didn't take into account that a valid version might also
contain a non digit after '-'.

Added more tests to the testsuite to verify its correctness.
2013-11-17 12:25:02 +01:00
Juan RP
c44d7070a4 util.c: add stricter checks for pkgver conformance.
Make xbps_pkg_{name,version} return NULL if next character
after the last '-' character is not a digit, and if there's a digit
make sure that there exists a '_' character too.

Added more tests to the testsuite to catch this. With these changes
'python-e_dbus' is properly detected and validated.
2013-11-17 11:34:14 +01:00
Juan RP
6d9bb47fba unpack: make sure to remove only on-disk files if file type does not match.
Added another ATF test-case to make sure it works properly.
2013-11-09 08:59:02 +01:00
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