enochecker_test
Automatically test services/checker using the enochecker API
Usage
enochecker_test can be used to run tests against a checker, optionally you can specify wich tests to run e.g. enochecker_test test_getflag[0] test_exploit will run only the first getflag test and all test_exploit tests.
usage: enochecker_test [-h] [-a CHECKER_ADDRESS] [-p {1..65535}] [-A SERVICE_ADDRESS] [testexpr]
Utility for testing checkers that implement the enochecker API
positional arguments:
testexpr Specify the tests that should be run in the syntax expected by pytests -k flag, e.g. 'test_getflag' or 'not exploit'. If no expr is specified, all tests will be run.
optional arguments:
-h, --help show this help message and exit
-a CHECKER_ADDRESS, --checker-address CHECKER_ADDRESS
The address on which the checker is listening (defaults to the ENOCHECKER_TEST_CHECKER_ADDRESS environment variable)
-p {1..65535}, --checker-port {1..65535}
The port on which the checker is listening (defaults to ENOCHECKER_TEST_CHECKER_PORT environment variable)
-A SERVICE_ADDRESS, --service-address SERVICE_ADDRESS
The address on which the checker can reach the service (defaults to ENOCHECKER_TEST_SERVICE_ADDRESS environment variable)
Example Usage:
$ enochecker_test -a localhost -p 5008 -A 172.20.0.1 test_putflag
Assuming that 172.20.0.1 is the ip address of the gateway of the network of the
service's docker container as obtained by e.g:
$ docker network inspect service_default | jq ".[].IPAM.Config[].Gateway"
Metadata
Release files for enochecker-test 0.14.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enochecker_test-0.14.4.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enochecker_test-0.14.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.4 kB
Release files / enochecker_test-0.14.4.tar.gz
| Download URL | enochecker_test-0.14.4.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3350154e6001571c808b86434b8c54941e30e5f43e150a749df007deb00645c
|
|
BLAKE2b-256 checksum How to use checksums |
26569b4726a2c2f8f125e7cf843bdb620ae43a5472dbe337b40c490afcc9eb5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / enochecker_test-0.14.4-py3-none-any.whl
| Download URL | enochecker_test-0.14.4-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0177b173e95901511478a25873554351b37287712dd3984ec293dcec02f84d6
|
|
BLAKE2b-256 checksum How to use checksums |
92aa2800dc4c8fdcd0cf4cb545f47686a832497a57baa6f1cafc052f28b2b321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|