aboutsummaryrefslogtreecommitdiffstats
path: root/README.org
diff options
context:
space:
mode:
Diffstat (limited to 'README.org')
-rw-r--r--README.org36
1 files changed, 30 insertions, 6 deletions
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