Inferno Tests
This project is an automation for teats for the Hadassah Academic College courses
Intro2cs and Intro2cs2.
The tests will:
- Check the differences between your output and the school solution output.
- Check the differences between your errors (cerr) and the school solution errors.
- Check for leak memory using
valgrind.
How to Install
Virtual Machine
Because the virtual machine has internet connection you may only use the following terminal command:
python -m pip install --user hac-intro2cs-tests
NoMachine
The NoMachine has no internet connection so you must download the package
file from PyPI page (the .whl file is recommended).
Now add the file to the NoMachine and run the following command:
python -m pip install --user <file_name>
Replace the <file_name> with the name of the file you downloaded
How to Use
-
Open the linux (NoMachine or Virtual Machine) and make directory with the following files:
- School solution files, must be with the extension "sol",
- Your executable file, must be the same name as the school solution files names without the "sol".
- Tests files, must contain "_test" in their name. if there are more then 1 sol file, the file must start with the executable file name following by "_test"
For example, directory with the following files:
ex1asolex1aex1a.cc(optional)ex1a_test00.inex1a_test01.inex1a_test02.inex1asolex1bex1b.cc(optional)ex1b_test00.inex1b_test01.inex1b_test02.in
-
Open the terminal at the directory and write the following command:
python -m test_ex
For each test the program will print the name of the test and the problem with the test (if there is outputs diff, if there is errors (cerr) diff, if there is a memory leak).
Alias
You can add alias to the command by writing the next line to the file ~/.tcshrc:
alias test_ex python -m test_ex
You may run the following command to do so:
echo "alias test_ex python -m test_ex" >> ~/.tcshrc
Now you can run the command:
test_ex
Instead of:
python -m test_ex
A Little Bit More
Timeout
The tests automatically run with timeout of 5 seconds to your program.
To change the timeout you may use the -t or --timeout flag:
To run the program with X seconds timeout, run the following command
test_ex --timeout X
To run with no timeout (Strongly recommended not to), set the timeout flag to 0:
test_ex --timeout 0
Specific Test
If you want to test specific test you may use the -s or --specific in the following way
test all tests for ex1a:
test_ex --specific ex1a
test specific tests for ex1a (ex1a_test01.in):
test_ex --specific ex1a_test01.in
More
For more information run:
test_ex --help
Metadata
Release files for hac-intro2cs-tests 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hac-intro2cs-tests-1.3.1.tar.gz | 5.1 kB | Without provenance | Details for hac-intro2cs-tests-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hac_intro2cs_tests-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for hac_intro2cs_tests-1.3.1-py3-none-any.whl |
Total release size: 13.4 kB
Release files / hac-intro2cs-tests-1.3.1.tar.gz
| Download URL | hac-intro2cs-tests-1.3.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e69eba8c57b0f0f749d806aa64c87f0f438731fa5b2f388fa87a0538d8716a06
|
|
BLAKE2b-256 checksum How to use checksums |
5b1c13429db4f8a270d5c9a8908775bb70cf7341abce73a54cab97b6ccc57926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.4
|
Release files / hac_intro2cs_tests-1.3.1-py3-none-any.whl
| Download URL | hac_intro2cs_tests-1.3.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6004004e2f0a063711641b8601dd0d619c443dcecc6f9551f8b78346ba85bc73
|
|
BLAKE2b-256 checksum How to use checksums |
8c1918231dc5a8726b320742963bef6bf33b5c3a6428141e18c1bc5707081326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.4
|
Security for hac-intro2cs-tests 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.