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
39
40
41
42
43
44
|
dnl ===================================================================
AT_COPYRIGHT([Copyright (C) 2008 Hans Ulrich Niedermann])
AT_TESTED([nbb])
dnl ===================================================================
AT_SETUP([nbb: git config default defaults])
AT_KEYWORDS([nbb git config])
AT_CHECK([mkdir test.git && cd test.git])
AT_CHECK([cd test.git && git init], [0],
[Initialized empty Git repository in .git/
])
echo "$PWD/test.git" > expout
AT_CHECK([cd test.git && nbb config srcdir], [0], [expout])
echo "$PWD/test.git/_build/_master" > expout
AT_CHECK([cd test.git && nbb config builddir], [0], [expout])
echo "$PWD/test.git/_install/master" > expout
AT_CHECK([cd test.git && nbb config installdir], [0], [expout])
AT_CHECK([rm -rf test.git])
AT_CLEANUP()
dnl ===================================================================
AT_SETUP([nbb: bzr config defaults])
AT_KEYWORDS([nbb bzr config])
AT_CHECK([mkdir test.bzr && cd test.bzr])
AT_CHECK([cd test.bzr && bzr init])
echo "$PWD/test.bzr" > expout
AT_CHECK([cd test.bzr && nbb config srcdir], [0], [expout])
echo "$PWD/test.bzr/_build" > expout
AT_CHECK([cd test.bzr && nbb config builddir], [0], [expout])
echo "$PWD/test.bzr/_install" > expout
AT_CHECK([cd test.bzr && nbb config installdir], [0], [expout])
AT_CHECK([rm -rf test.git])
AT_CLEANUP()
dnl ===================================================================
dnl ===================================================================
dnl ===================================================================
|