/
githubmirror
/
librepo
ОбзорДокументацияВойти
/
githubmirror
/
librepo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
librepo/
tests/
..
python

test: don't expect empty file when downloading fails

2 месяца назад
test_data

gpgme: Improve handling of expired GPG signatures with key rotation support

9 месяцев назад
CMakeLists.txt

Drop ENABLE_PYTHON_TESTS from CMake

6 лет назад
README.rst

Fix typos in 'authentication'

2 года назад
fixtures.c

test_log_handler_cb: don't set value that will not be read

2 года назад
fixtures.h

tests: Pass true(1)/false(0) to ck_assert_msg, fix check.h backcompat

11 лет назад
run_tests.sh.in

c tests: Add generation of run_tests.sh

12 лет назад
test_checksum.c

Define and use xattr key to store mtime of file checksum as macro

2 года назад
test_checksum.h

Add unittest for checksum module

14 лет назад
test_downloader.c

More covscan fixes

4 года назад
test_downloader.h

downloader: New module, future replacement for curl module.

13 лет назад
test_gpg.c

test: verify missing key error message consistency across backends

месяц назад
test_gpg.h

Add gpg module.

14 лет назад
test_handle.c

tests: Adapt to CURL without NTLM support

2 года назад
test_handle.h

Support more options in lr_handle_getinfo + new unittest for handle module.

13 лет назад
test_lrmirrorlist.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_lrmirrorlist.h

Librepo migrated to lr_LrMirrorlist from lr_InternalMirrorlist.

13 лет назад
test_main.c

Fix alloc / free mismatches from covscan

4 года назад
test_metalink.c

More covscan fixes

4 года назад
test_metalink.h

Unittests for metalink module

13 лет назад
test_mirrorlist.c

More covscan fixes

4 года назад
test_mirrorlist.h

Add unittests for mirrorlist module.

13 лет назад
test_package_downloader.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_package_downloader.h

tests: Add C unittests for LrPackageTarget

13 лет назад
test_repo_zck.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_repo_zck.h

Add zchunk tests

8 лет назад
test_repoconf.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_repoconf.h

tests: Add tests for repoconfig module

12 лет назад
test_repomd.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_repomd.h

Add unittest for repomd parser

14 лет назад
test_url_substitution.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_url_substitution.h

url_substitution: new module

13 лет назад
test_util.c

More covscan fixes

4 года назад
test_util.h

Add gpg module.

14 лет назад
test_version.c

`fail_if` and `fail_unless` are deprecated

5 лет назад
test_version.h

test: Add test for LR_VERSION_CHECK macro.

13 лет назад
testsys.c

Remove commented code

14 лет назад
testsys.h

Remove commented code

14 лет назад
README.rst
C tests
=======
C tests uses the Check unit testing framework (http://check.sourceforge.net/).
 
Run (from your checkout dir)::
 
build/tests/test_main tests/test_data/
 
*Tip:* Use Valgrind (http://valgrind.org/) with C tests::
 
valgrind build/tests/test_main tests/test_data/
 
Files of C tests
================
 
**test_data/**
* Directory with testing repositories, metalink files, etc.
 
**CMakeLists.txt**
* CMake config file
 
**fixtures.c fixtures.h**
* Global test data (global test variable, setup and tear down function(s), ...)
 
**testsys.c testsys.h**
* Global test configuration, expected results (constants in testsys.h)
and useful functions (functions in testsys.h)
 
**test_main.c**
* Main file
 
**test_*.c test_*.h**
* Test suites
 
 
Python tests http.server
========================
 
Some python tests use **http.server** python standard library
to simulate web server. The server is started automatically during that tests.
 
*TestCases with http.server inherit from TestCaseWithServer class.*
 
If you want to start server manually::
 
$ python python/tests/servermock/server.py
 
Url examples
------------
http://127.0.0.1:5000/yum/auth_basic/static/01/repodata/repomd.xml
* This url provides basic authentication
 
http://127.0.0.1:5000/yum/badgpg/static/01/repodata/repomd.xml.asc
* This url in fact returns .../repodata/repomd.xml.asc.bad file
 
etc..
 
Repos for test with http.server
-------------------------------
 
All data (repositories, packages, ..) are in servermock/yum_mock/static/
 
Configuration and globals for tests with http.server
----------------------------------------------------
 
Configuration and globals used by these tests are in servermock/yum_mock/config.py