File: HACKING

package info (click to toggle)
u1db-qt 0.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 688 kB
  • sloc: cpp: 2,089; python: 60; sql: 40; makefile: 19; sh: 14; xml: 14
file content (38 lines) | stat: -rw-r--r-- 1,073 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
*** Building and installing ***

Get the source:
    bzr branch lp:u1db-qt

Build dependencies to have:
    ubuntu-sdk-libs-dev, dbus-test-runner, qtdeclarative5-test-plugin

    All of these can also be installed with one command:
    sudo apt-get build-dep u1db-qt

Build it:
    mkdir _build; cd _build; cmake ..
    make
    sudo make install

Build docs:
    make doc

Unit tests:
    make check

Note: both docs and tests must pass for branches proposed for merging.

*** Further debugging and testing ***

By hand:
    qmlscene -I ./modules examples/u1db-qt-example-1.qml
    qmltestrunner -import ./modules

Partial upstream test case support:
    make
    env PYTHONPATH=/path/to/u1db ./tests/test-upstream.py

Use Python U1Db for testing:
    python -c "import u1db;db=u1db.open('pDb',create=False);print(db.get_all_docs());print(db.list_indexes())"
    python -c "import u1db;db=u1db.open('pDb',create=True);db.create_index('by-phone', 'gents.phone');doc3 = db.create_doc({'gents': [ {'name': 'Mary', 'phone': '12345'}, {'name': 'Peter', 'phone': '54321'} ]})"