update README
This commit is contained in:
@@ -127,12 +127,17 @@ For example, to launch tests (`test/is_good.c`) on 4 threads, using unicolor(bla
|
||||
```
|
||||
|
||||
|
||||
# How to create test
|
||||
# How to compile test
|
||||
## include path
|
||||
We need to add `/path_to/include_ytest/include` in `CPATH` by ```export CPATH=/path_to/include_ytest/include:$CPATH``` in terminal or in `~/.bashrc` file for example.
|
||||
|
||||
This need to add `path_to/include_ytest/include` in `CPATH` by `export CPATH=/path_to/include_ytest/include:$CPATH` in terminal or in `~/.bashrc` file for example, or add `-I/path_to/include_ytest/include` when compiling,
|
||||
the others option when compiling are `-L/path_to/directorytest` this path must contain `libytest.so` generated by `make` or `./kreate_library_ytest` or we can put this path in `LD_LIBRARY_PATH`.
|
||||
And we must add `lytest` to add the shared library in compilation.
|
||||
Or we can add ```-I/path_to/include_ytest/include``` when compiling.
|
||||
## library path
|
||||
The others option when compiling are `-L/path_to/directorytest` this path must contain `libytest.so` generated by `make` or `./kreate_library_ytest` or we can put this path in `LD_LIBRARY_PATH`.
|
||||
## -lytest
|
||||
And we must add `-lytest` to add the shared library in compilation.
|
||||
|
||||
# How to create test (ftest)
|
||||
## include
|
||||
```
|
||||
#include "ftest/ftest.h"
|
||||
@@ -148,7 +153,7 @@ TEST(){
|
||||
}
|
||||
```
|
||||
|
||||
## in main func
|
||||
## in function main
|
||||
### if using options:
|
||||
```
|
||||
int main(int arc, char** argv){
|
||||
|
||||
Reference in New Issue
Block a user