• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D17-Sep-20212.6 KiB8862

fixtures.cppH A D17-Sep-20215.2 KiB210162

fixtures.hH A D17-Sep-20211.6 KiB5527

test_advisory.cppH A D17-Sep-20213.7 KiB148103

test_advisorypkg.cppH A D17-Sep-20212.5 KiB10064

test_advisoryref.cppH A D17-Sep-20212.6 KiB9963

test_goal.cppH A D17-Sep-202148 KiB1,4881,200

test_iutil.cppH A D17-Sep-20215.3 KiB192138

test_main.cppH A D17-Sep-20212.7 KiB9361

test_package.cppH A D17-Sep-202111.5 KiB401313

test_packagelist.cppH A D17-Sep-20211.9 KiB7442

test_packageset.cppH A D17-Sep-20215.3 KiB187135

test_query.cppH A D17-Sep-202133.2 KiB1,137946

test_reldep.cppH A D17-Sep-20212.1 KiB6537

test_repo.cppH A D17-Sep-20212.2 KiB7144

test_sack.cppH A D17-Sep-202110.5 KiB321254

test_selector.cppH A D17-Sep-20214.6 KiB159113

test_subject.cppH A D17-Sep-202111.4 KiB358296

test_suites.hH A D17-Sep-20211.3 KiB4319

test_util.cppH A D17-Sep-20212.8 KiB9968

testshared.cppH A D17-Sep-20212.9 KiB9359

testshared.hH A D17-Sep-20211.5 KiB5222

testsys.cppH A D17-Sep-20213.2 KiB11480

testsys.hH A D17-Sep-20211.3 KiB4013

README

1
2== The python/ directory ==
3module/ contains the hawkey.test module used for testing Python bindings of hawkey and its Python clients.
4
5tests/ contains the unit tests themselves.
6
7== The repos/ directory ==
8This directory contains sample package data for testing. It is crucial to
9maintain integrity of packages as described by the .repo files, for instance the
10same (equal NEVRA) package present in two different repos needs to keep the same
11provides and requires at both places.
12
13The goal is to have as few packages as possible, ideally one or two per a
14specific testing role they can play:
15
16flying
17* installed at a version older than anything from repositories
18* there's one updated version with different arch than the installed
19* the latest available version is not installable
20
21fool
22* installed version available from main repo, updates repo contains a newer version
23* the updates version obsoletes two packages
24* installonly testing
25
26penny, penny-lib
27* have summaries
28* installed in the highest available version
29* penny-lib is architecture dependent
30* 'penny-lib' provides 'P-lib' that 'flying' needs, so it can not be removed by itself.
31
32walrus
33* not installed, available in the main repo, update available in updates
34* requires two packages
35
36semolina
37* for multilib install testing
38
39pilchard
40* for selector upgrade testing
41
42hello
43* depends on 'goodbye' which is not provided by anything else
44
45jay
46* installed twice, not updatable from main.
47* downgrade available from main.
48
49baby
50* installed at a version newer than anything available (downgrade, distupgrade testing)
51* has epoch (testing evr parsing)
52
53foolish-grin
54* in the "vendor" repo, for testing vendor change
55
56gun
57* installed only in the i686 version
58* higher version of x86_64 arch is available in "vendor" repo (distupgrade doesn't replace it)
59* testing forcebest/arches interaction
60
61pigs, tour
62* testing file reqiures
63* tour is available as a command-line .rpm too
64
65dodo, dodo-dep-a, dodo-dep-b
66* testing favor/disfavor
67
68bloop, bloop-ext
69* bloop-1.0 installed, bloop-ext-1.0 and *-2.0 in updates
70* for testing package locking
71
72=== repos/yum ===
73
74To test loading of yum repos we need an actual yum repo. It currently consists
75of two packages ("mystery", "tour") and generated repodata. The specfiles are
76included, all the package payload is generated in them. To rebuild them, e.g.:
77
78  rpmbuild -bb tour.spec
79
80If things change in these packages the respective changes need to be made in the
81unit tests too for them to pass.
82
83The command to do the metadata rebuild from hawkey/tests/repos/yum:
84
85  createrepo --deltas --oldpackagedirs=../yum_oldrpms/ --no-database .
86
87Or use the 'recreate' script in the directory.
88