diff options
Diffstat (limited to 'test/nbb-commands.at')
-rw-r--r-- | test/nbb-commands.at | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/nbb-commands.at b/test/nbb-commands.at new file mode 100644 index 0000000..4f045ab --- /dev/null +++ b/test/nbb-commands.at @@ -0,0 +1,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 =================================================================== + + |