Skip to content

Commit 3a5c591

Browse files
committed
tests...
1 parent 7cb8859 commit 3a5c591

36 files changed

+1070
-36
lines changed

t/test_package_manager/test_apk.sh

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,37 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apk'...\n"
26+
27+
/usr/bin/tum apk
28+
/usr/bin/tum apk_help
29+
/usr/bin/tum apk_add
30+
/usr/bin/tum apk_del
31+
/usr/bin/tum apk_fix
32+
/usr/bin/tum apk_update
33+
/usr/bin/tum apk_upgrade
34+
/usr/bin/tum apk_cache
35+
/usr/bin/tum apk_info
36+
/usr/bin/tum apk_list
37+
/usr/bin/tum apk_dot
38+
/usr/bin/tum apk_policy
39+
/usr/bin/tum apk_search
40+
/usr/bin/tum apk_index
41+
/usr/bin/tum apk_fetch
42+
/usr/bin/tum apk_manifest
43+
/usr/bin/tum apk_verify
44+
/usr/bin/tum apk_audit
45+
/usr/bin/tum apk_stats
46+
/usr/bin/tum apk_version
47+
48+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
49+
}
50+
51+
main

t/test_package_manager/test_apt.sh

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,44 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apt'...\n"
26+
27+
/usr/bin/tum apt
28+
/usr/bin/tum apt_autoclean
29+
/usr/bin/tum apt_autoremove
30+
/usr/bin/tum apt_changelog
31+
/usr/bin/tum apt_depends
32+
/usr/bin/tum apt_download
33+
/usr/bin/tum apt_full_upgrade
34+
/usr/bin/tum apt_install
35+
/usr/bin/tum apt_moo
36+
/usr/bin/tum apt_purge
37+
/usr/bin/tum apt_reinstall
38+
/usr/bin/tum apt_search
39+
/usr/bin/tum apt_showsrc
40+
/usr/bin/tum apt_update
41+
/usr/bin/tum apt_autopurge
42+
/usr/bin/tum apt_build_dep
43+
/usr/bin/tum apt_clean
44+
/usr/bin/tum apt_dist_upgrade
45+
/usr/bin/tum apt_edit_sources
46+
/usr/bin/tum apt_help
47+
/usr/bin/tum apt_list
48+
/usr/bin/tum apt_policy
49+
/usr/bin/tum apt_rdepends
50+
/usr/bin/tum apt_remove
51+
/usr/bin/tum apt_show
52+
/usr/bin/tum apt_source
53+
/usr/bin/tum apt_upgrade
54+
55+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
56+
}
57+
58+
main

t/test_package_manager/test_apt_cache.sh

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,35 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apt-cache'...\n"
26+
27+
/usr/bin/tum apt_cache
28+
/usr/bin/tum apt_cache_add
29+
/usr/bin/tum apt_cache_depends
30+
/usr/bin/tum apt_cache_dotty
31+
/usr/bin/tum apt_cache_dump
32+
/usr/bin/tum apt_cache_dumpavail
33+
/usr/bin/tum apt_cache_gencaches
34+
/usr/bin/tum apt_cache_madison
35+
/usr/bin/tum apt_cache_pkgnames
36+
/usr/bin/tum apt_cache_policy
37+
/usr/bin/tum apt_cache_rdepends
38+
/usr/bin/tum apt_cache_search
39+
/usr/bin/tum apt_cache_show
40+
/usr/bin/tum apt_cache_showpkg
41+
/usr/bin/tum apt_cache_showsrc
42+
/usr/bin/tum apt_cache_stats
43+
/usr/bin/tum apt_cache_unmet
44+
/usr/bin/tum apt_cache_xvcg
45+
46+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
47+
}
48+
49+
main

t/test_package_manager/test_apt_cdrom.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,20 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apt-cdrom'...\n"
26+
27+
/usr/bin/tum apt_cdrom
28+
/usr/bin/tum apt_cdrom_add
29+
/usr/bin/tum apt_cdrom_ident
30+
31+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
32+
}
33+
34+
main

t/test_package_manager/test_apt_config.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,20 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apt-config'...\n"
26+
27+
/usr/bin/tum apt_cofig
28+
/usr/bin/tum apt_config_shell
29+
/usr/bin/tum apt_config_dump
30+
31+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
32+
}
33+
34+
main

t/test_package_manager/test_apt_extracttemplates.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,18 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting test for 'apt-extracttemplates'...\n"
26+
27+
/usr/bin/tum apt_extracttemplates
28+
29+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
30+
}
31+
32+
main

t/test_package_manager/test_apt_get.sh

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,34 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apt-get'...\n"
26+
27+
/usr/bin/tum apt_get
28+
/usr/bin/tum apt_get_autoclean
29+
/usr/bin/tum apt_get_build_dep
30+
/usr/bin/tum apt_get_check
31+
/usr/bin/tum apt_get_dist_upgrade
32+
/usr/bin/tum apt_get_dselect_upgrade
33+
/usr/bin/tum apt_get_install
34+
/usr/bin/tum apt_get_remove
35+
/usr/bin/tum apt_get_update
36+
/usr/bin/tum apt_get_autoremove
37+
/usr/bin/tum apt_get_changelog
38+
/usr/bin/tum apt_get_clean
39+
/usr/bin/tum apt_get_download
40+
/usr/bin/tum apt_get_indextargets
41+
/usr/bin/tum apt_get_purge
42+
/usr/bin/tum apt_get_source
43+
/usr/bin/tum apt_get_upgrade
44+
45+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
46+
}
47+
48+
main

t/test_package_manager/test_apt_listchanges.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,18 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting test for 'apt-listchanges'...\n"
26+
27+
/usr/bin/tum apt_listchanges
28+
29+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
30+
}
31+
32+
main

t/test_package_manager/test_apt_mark.sh

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,26 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting tests for 'apt-mark'...\n"
26+
27+
/usr/bin/tum apt_mark
28+
/usr/bin/tum apt_mark_auto
29+
/usr/bin/tum apt_mark_manual
30+
/usr/bin/tum apt_mark_minimize_manual
31+
/usr/bin/tum apt_mark_showauto
32+
/usr/bin/tum apt_mark_showmanual
33+
/usr/bin/tum apt_mark_hold
34+
/usr/bin/tum apt_mark_unhold
35+
/usr/bin/tum apt_mark_showhold
36+
37+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
38+
}
39+
40+
main

t/test_package_manager/test_apt_sortpkgs.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,18 @@
1515
# GNU General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>
19+
20+
declare -r GREEN="\033[0;32m"
21+
declare -r RESET="\033[0m"
22+
23+
function main
24+
{
25+
echo -e "\n[<==] Starting test for 'apt-sortpkgs'...\n"
26+
27+
/usr/bin/tum apt_sortpkgs
28+
29+
echo -e "\n${GREEN}[*] All tests passed.${RESET}"
30+
}
31+
32+
main

0 commit comments

Comments
 (0)