diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-16 14:34:30 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-16 14:43:50 +0300 |
commit | 94bc38df829c4816e629c7dcaed31b1e7c75bc4b (patch) | |
tree | c02d2de0f44462c82e24591127caf66b05d8710d /README.org | |
parent | afc0f4906ed9891962d1797581afeb5c61e2e3af (diff) | |
download | ck-94bc38df829c4816e629c7dcaed31b1e7c75bc4b.tar.gz ck-94bc38df829c4816e629c7dcaed31b1e7c75bc4b.tar.bz2 ck-94bc38df829c4816e629c7dcaed31b1e7c75bc4b.zip |
Add asan option to cmake
finish init without any asan warnings
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 36 |
1 files changed, 30 insertions, 6 deletions
@@ -1,12 +1,15 @@ * ck -** The Config Keeper +*The Config Keeper* * build it ** requirements -- gcc +- clang (llvm) or gcc (gnu) - cmake - sqlite3-dev +** gcc +Edit the =CMakeLists.txt= file and change the =clang= to =gcc= + ** make #+BEGIN_SRC sh # clone the repo @@ -17,13 +20,34 @@ > cmake ~/code/ck # run make > make +# run ck +> ./ck #+END_SRC -** run the tests -Simply go to the build dir and type. +* for devs +** make +Just build with address sanitizer enabled like so: +llvm has better asan than gcc, so I use that. +#+BEGIN_SRC sh +# clone the repo +> cd ~/code; git clone https://github.com/gramanas/ck +# make a build directory and enter it +> mkdir ~/ck_build; cd ~/ck_build; +# run cmake +> cmake ~/code/ck -DCK_ASAN=ON +# run make +> make +# run ck +> ./ck +#+END_SRC + +** tests +The testing "suite" is just a bash script +that executs all the bash scripts under +=tests/= -*WARNING!* This will destroy any configurations or databases -you might have. (for now) +*** run tests +Simply go to the build dir and type. #+BEGIN_SRC sh ./check_ck #+END_SRC |