aboutsummaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-02-21 15:57:11 +0100
committerGuido Günther <agx@sigxcpu.org>2014-02-24 08:39:05 +0100
commit891b34e2ef64f354474c4c6bec8e35f905e3c1db (patch)
tree9ff4373f980caa5eab84c4f3abaff6640783d817 /HACKING
Initial commit
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING27
1 files changed, 27 insertions, 0 deletions
diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..5d29b13
--- /dev/null
+++ b/HACKING
@@ -0,0 +1,27 @@
+# Tests #
+
+Running the tests
+
+ make check
+
+To run a single test in more detail use e.g.
+
+ gtester --verbose src/providers/tests/de-db
+
+# Debugging #
+You can use the LPF_DEBUG variable to make libplanfahr write out the querry
+results. E.g.
+
+ LPF_DEBUG=provider ./run python examples/trip-query.py Gelsenkirchen Essen
+
+will put all queries to ~/.cache/libplanfahr/<provider>/.
+
+To build with extensive debugging information use
+
+ ./configure --enable-debug
+
+# Coding Style #
+* Use spaces not tabs
+* indentation is 4 spaces by default
+* Private methods don't use <obj_name> as prefix
+* Public methods have "self" as first argument