monotone

monotone Mtn Source Tree

Root/tests/t_persist_phrase.at

1# -*- Autoconf -*-
2
3AT_SETUP([calculation of unidiffs])
4
5MONOTONE_SETUP
6
7AT_DATA(persist.lua, [
8function persist_phrase_ok()
9return true
10end
11
12get_passphrase = nil
13])
14
15AT_DATA(input.txt, [version 0 of the file
16])
17
18AT_CHECK(MONOTONE add input.txt, [], [ignore], [ignore])
19
20AT_DATA(input.txt, [version 1 of the file
21])
22
23AT_DATA(passphrase, [tester@test.net
24])
25
26AT_CHECK(MONOTONE --branch=testbranch --rcfile=persist.lua commit blah-blah <passphrase, [], [ignore], [ignore])
27
28MSHA=`SHA1(MT/manifest)`
29AT_CHECK(MONOTONE ls certs manifest $MSHA, [], [stdout])
30AT_CHECK(mv stdout certs, [], [ignore])
31AT_CHECK(grep branch certs, [], [ignore])
32AT_CHECK(grep author certs, [], [ignore])
33AT_CHECK(grep date certs, [], [ignore])
34AT_CHECK(grep changelog certs, [], [ignore])
35
36AT_CLEANUP

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status