There are a few test scripts in the src/ directory.

To set up the private database for tests:
=========================================


1) Create the private database from scratch:

/-----------------
          .$ mtn -d PRIV_A.db read < test_keys/johndoe
          .$ mtn setup -d PRIV_A.db -b test_branch -k johndoe test_branch
          .$ cd test_branch
test_branch$ cat > README
First version of README
^D
test_branch$ mtn add README
test_branch$ mtn ci -m"First commit to the test database"
test_branch$ cd ..
          .$
\-----------------

OR,

2) Copy another database to PRIV_A.db:

There is one example that contains branching and merging:

/-----------------
          .$ cp test-database.db PRIV_A.db
\-----------------

But of course, this is just a toy example.


Setting up the public database:
===============================

Use the setup script:

/-----------------
.$ ./setup.sh
\-----------------

And make sure the public key for the user is a Nettle public key; and that the
private key for the user (whose path will be given in the test script) is a
the corresponding Nettle private key.

Also, suppose you have used "johndoe" as the monotone key. You need to change monotonerc
to never interectively ask the password.


Testing:
========

Now, first test:

/-----------------
$ ./test-pull
\-----------------


