From 94bc38df829c4816e629c7dcaed31b1e7c75bc4b Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 16 Apr 2018 14:34:30 +0300 Subject: Add asan option to cmake finish init without any asan warnings --- README.org | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index 8d9a7b2..eb0362a 100644 --- a/README.org +++ b/README.org @@ -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 -- cgit v1.2.3