inferno tests
This project is an automation for teats for the Hadassah Academic College courses
Intro2cs and Intro2cs2
The tests will:
- Checks the differences between your output and the school solution output
- Checks the differences between your errors (cerr) and the school solution errors
- Checks 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 file from PyPI page
Now add the file to the NoMachine and run the following command:
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 file with the extension "sol",
must be the only file with "sol" in the name of the file - your executable file must be the same name of the the school solution file without the "sol"
- tests files with "_test" in the name
For example, directory with the following files:
ex1asolex1aex1a_test00.inex1a_test01.inex1a_test02.in
(The directory may also contain the file
ex1a.ccfor easy use) - School solution file with the extension "sol",
-
Open the terminal at the directory and write the following command:
python -m test_exFor each test the program will print the name of the test and the problem in the test (is there output diff, is there errors (cerr) diff, is there a leak memory).
the tests automatically run with timeout of 5 seconds to your program.
to run the program with X seconds timeout, run the following commandtest_ex --timeout XTo run with no timeout (Strongly recommended not to), set the timeout flag to 0:
test_ex --timeout 0For more information run:
test_ex --help
Alias
you can add alisa 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
Release files for hac-intro2cs-tests 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hac-intro2cs-tests-1.2.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hac_intro2cs_tests-1.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / hac-intro2cs-tests-1.2.3.tar.gz
| Download URL | hac-intro2cs-tests-1.2.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c2b1368b6ee5d96a388bdc90feb801d480982e7fa2d9a436b4519b750023164
|
|
BLAKE2b-256 checksum How to use checksums |
9df4f98a46d5a62a7688f2e0160b835f53176a2c39bb6e5dd05e200706f603c8
|
| 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.2.3-py3-none-any.whl
| Download URL | hac_intro2cs_tests-1.2.3-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66db04c2fa4363dc452cb6546680369e3a744ddf456025bf288354fd37bd3d07
|
|
BLAKE2b-256 checksum How to use checksums |
71c8d96a66bad33359e89e589418ce147ad1789810ec8041e140904bccc12338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.4
|