apk-tools/test
Timo Teräs 366d0ee371 print usage and exit with error on invalid arguments
Add also some testing to make sure help, long help and handling
of invalid arguments works as expected.

Based on pull request #19 originally by Laurent Arnoud (@spk).
2019-06-05 09:56:13 +03:00
..
repo1 test: modernize testing APKBUILDs 2017-06-11 12:49:00 +02:00
repo2 test: modernize testing APKBUILDs 2017-06-11 12:49:00 +02:00
.gitignore test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
Makefile test: fix running root-tests with QEMU user-mode emulation 2017-06-11 12:14:41 +02:00
basic.installed solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00
basic.installed2 solver: permutate each preferred solution first 2011-07-27 20:45:38 +03:00
basic.repo solver: prune broken world dependencies with --force 2013-06-13 18:22:00 +03:00
basic1.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic2.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic3.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic4.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic5.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic6.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic7.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
basic8.test use fixed system time in test mode to have fixed test output 2019-06-03 16:19:17 +03:00
basic9.test use fixed system time in test mode to have fixed test output 2019-06-03 16:19:17 +03:00
basic10.test solver: prune broken world dependencies with --force 2013-06-13 18:22:00 +03:00
basic11.test solver: prune broken world dependencies with --force 2013-06-13 18:22:00 +03:00
basic12.test upgrade: new option: --latest (-l) 2013-06-19 08:33:51 +03:00
basic13.test upgrade: new option: --latest (-l) 2013-06-19 08:33:51 +03:00
basic14.test solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
basic15.test del: allow deletion of world dependency when it is not installed 2014-05-19 08:49:55 +03:00
basic16.test solver: fix installation of non-repository packages during tmpfs boot 2014-05-19 11:50:10 +03:00
command-parsing.sh print usage and exit with error on invalid arguments 2019-06-05 09:56:13 +03:00
complicated1.installed solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00
complicated1.repo solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00
complicated1.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
complicated2.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
complicated3.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
complicated4.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
conflict.repo test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
conflict1.test test: rewrite the testing framework to use the real applets 2012-02-23 22:05:02 +02:00
conflict2.test errors: rewrite the logic how errors are reported 2013-06-13 18:22:00 +03:00
error1.test solver, errors: fix few additional test cases and clean ups 2013-06-13 21:59:08 +03:00
error2.test errors: rewrite the logic how errors are reported 2013-06-13 18:22:00 +03:00
error3.test solver, errors: fix few additional test cases and clean ups 2013-06-13 21:59:08 +03:00
error4.test errors: rewrite the logic how errors are reported 2013-06-13 18:22:00 +03:00
error5.test upgrade: new option: --latest (-l) 2013-06-19 08:33:51 +03:00
fix1.test solver: rewrite as deductive solver -- per name flags 2013-06-13 18:22:00 +03:00
fix2.test solver: rewrite as deductive solver -- per name flags 2013-06-13 18:22:00 +03:00
fix3.test solver: rewrite as deductive solver -- per name flags 2013-06-13 18:22:00 +03:00
fix4.test commit, db: make file conflicts and script errors non-fatal 2013-06-20 13:12:44 +03:00
fix5.test commit, db: make file conflicts and script errors non-fatal 2013-06-20 13:12:44 +03:00
fix6.test commit, db: make file conflicts and script errors non-fatal 2013-06-20 13:12:44 +03:00
installif1.installed solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
installif1.repo solver: fix potential install_if processing failure, fixes #8237 2017-12-12 15:16:52 +02:00
installif1.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
installif2.repo test: improve loading of repositories, fix broken install-if test 2014-05-19 11:48:36 +03:00
installif2.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
installif3.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
installif4.test solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
installif5.test solver: fix potential install_if processing failure, fixes #8237 2017-12-12 15:16:52 +02:00
pinning-basic.repo solver: if pinning is specified, it overrides preferred repos 2013-09-06 14:21:59 +03:00
pinning-overlay1.repo solver: if pinning is specified, it overrides preferred repos 2013-09-06 14:21:59 +03:00
pinning-overlay2.repo solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning-overlay3.repo solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning.installed pkg, db: use 's' for source repository tags instead of 'p' 2012-02-24 09:22:42 +02:00
pinning.installed2 solver: non preferred actions are worse then non preferred pinning 2012-02-24 11:13:31 +02:00
pinning1.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning2.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning3.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning4.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning5.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning6.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning7.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning8.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning9.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning10.test solver: properly order deletion of unneeded packages 2013-06-19 20:46:53 +03:00
pinning11.test errors: fix a test case, and misanalysis of certain names 2013-06-18 16:23:14 +03:00
pinning12.test solver: rewrite as deductive solver -- pinning support 2013-06-13 18:22:00 +03:00
pinning13.test solver: if pinning is specified, it overrides preferred repos 2013-09-06 14:21:59 +03:00
pinning14.test tests: make sure adding a pinning to a child dependency fails 2018-02-20 22:22:52 +00:00
provides-swap.installed solver: prefer highest requirer count above installed status 2017-11-02 17:15:00 +00:00
provides-swap.test solver: implement support for choosing default virtuals 2017-11-02 03:08:24 +00:00
provides-swap2.test test: add test to ensure a provider that is already satisfied doesn't get swapped 2018-01-02 04:43:53 +00:00
provides-upgrade.installed test: add test for bug fixed in commit ba7b50c0 2017-04-28 17:44:57 +03:00
provides-upgrade.repo test: add test for bug fixed in commit ba7b50c0 2017-04-28 17:44:57 +03:00
provides-upgrade.test test: add test for bug fixed in commit ba7b50c0 2017-04-28 17:44:57 +03:00
provides.repo solver: allow names with only one provider to be autoselected regardless of priority 2018-02-21 15:35:53 +00:00
provides1.test solver, test: implements more provides things, add tests 2012-02-27 16:35:04 +02:00
provides2.test solver: implement support for choosing default virtuals 2017-11-02 03:08:24 +00:00
provides3.test solver, test: implements more provides things, add tests 2012-02-27 16:35:04 +02:00
provides4.test sort world dependencies alphabetically 2015-01-30 15:53:11 +02:00
provides5.test errors: detect self-conflicts properly 2013-06-14 21:37:38 +03:00
provides6.test errors: rewrite the logic how errors are reported 2013-06-13 18:22:00 +03:00
provides7.test errors: detect self-conflicts properly 2013-06-14 21:37:38 +03:00
provides8.test solver: implement support for choosing default virtuals 2017-11-02 03:08:24 +00:00
provides9.test solver: only select a default if there is at least one provider with a declared provider_priority 2017-11-02 16:31:50 +00:00
provides10.test print: don't print spurious newlines 2018-11-02 15:40:45 +02:00
provides11.test print: don't print spurious newlines 2018-11-02 15:40:45 +02:00
provides12.test commit: properly analyze packages with provides="$pkgname" 2018-01-02 15:45:21 +02:00
selfupgrade.repo upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade1.installed upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade1.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade2.installed upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade2.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade3.installed upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade3.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
selfupgrade4.test upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
solver.sh upgrade: improve self upgrade functionality a bit 2016-07-22 11:13:33 +03:00
test1.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test2.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test3.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test4.sh test: fix test4.sh, script failure is non-fatal 2017-06-11 12:27:00 +02:00
test5.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test6.sh test: fix test6 testcase 2018-01-29 00:10:35 +00:00
test7.sh test: dont run sh manually but respect #!/bin/sh in each test 2010-06-15 15:53:32 +00:00
test8.sh test: check if upgrade works when package is missing in repo 2010-06-15 19:18:36 +00:00
upgrade.installed solver: enforce conflicts during upgrades and new pkg installs 2014-10-06 16:30:09 +03:00
upgrade.repo solver: enforce conflicts during upgrades and new pkg installs 2014-10-06 16:30:09 +03:00
upgrade1.test solver: enforce conflicts during upgrades and new pkg installs 2014-10-06 16:30:09 +03:00
version.data test: add test cases for version comparing 2009-11-06 13:20:30 +02:00
version.sh solver: new package selection logic (which is not yet used) 2011-07-26 17:08:43 +03:00