Tool for testing your algorithms
Now cpt is presented as a command-line tool as cptc, but the web-based version is also an option in the future.
Project is built by make which uses gcc (or clang for Mac) for compiling. Currently Makefile uses POSIX-compliant commands, so it is not tested on Windows.
As it was mentioned cpt uses make as a build system. And the core libcpt library is used in a command-line tool or a web-based application.
To build the library simply run
make cpt
Or to build command-line tool
make cptc
All the binaries and object files are now in the build directory.
cptc [OPTIONS] program
Name | Description |
---|---|
-h,--help | Print this help message and exit |
-i,--input | Input file (i.txt by default) |
-o,--output | Output file (o.txt by default) |
-d,--dir | Directory with tests (current directory by default) |
-n,--num | Number of tests (i[1..n].txt and o[1..n].txt files will be used) |
-s,--silent | Do not print additional test info |
-t,--tests | Tests ranges divided by comma (a:b, n, ...) |
-e,--time | Elapse test's time execution |
-m,--min-per-thread | Minimum number of tests per thread (3 by default) |
--single-thread | All tests are executed on a single thread |
-b, --bin-dir | Directory with binaries |
- C++
- /usr/bin/g++
- Java
- /usr/bin/java
- Python
- /usr/bin/python
- Go
- /usr/local/go/bin/go
- Header-only CLI11 for arguments parsing
โ