A C/C++ quick runner for testing small snippets of C/C++ code.
The program compiles and runs the C/C++ code in one command. It also supports flags and arguments. This makes it easier and faster to test small snippets of code.
quickc <file> <flags_file> <args_sent_to_program>
quickc hello.c . -opt1 -opt2
The flags file is a file that contains the flags that will be passed to the compiler. If left with .
then the default flags will be used which are -Wall -std=C++17 -O2
.
The test files are located in the tests
folder. There are C and C++ test files.
To test using make, run the following command:
make test
The source code file structure is as follows:
lib/
: Contains the library's needed for the program to run.src/
: Contains the source code of the program.src/main.cpp
: Contains the main function of the program.src/include/
: Contains the header files of the program.tests/
: Contains the test files for the program.Makefile
: Contains the make commands for the program.