From 1e4a96730da70fcfa3b8c153874cbdebad0f9829 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 27 Jan 2013 19:41:28 +0100 Subject: o Starting on a style guide. app-conf: Adding 'import' command. app-cat-conf: Adding support for multiple -f flags. The default files can be switched off. A file named "-" is the same as /dev/stdin. app: Adding a way to enable debugging. app-install-file: Import any configuration delivered with the package. --- test/app-cat-conf.bats | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/app-cat-conf.bats') diff --git a/test/app-cat-conf.bats b/test/app-cat-conf.bats index a95049a..8060cea 100755 --- a/test/app-cat-conf.bats +++ b/test/app-cat-conf.bats @@ -41,6 +41,13 @@ setup_inner() { eq '${#lines[*]}' 1 } +@test "app-cat-conf can use stdin and multiple files" { + x=$(cat $APPSH_HOME/test/data/app-cat-conf/config-3 | \ + $APPSH_HOME/libexec/app-cat-conf -D -f $APPSH_HOME/test/data/app-cat-conf/config-2 -f -) + [[ $x == "foo.bar=wat +foo.wat=bar" ]] +} + @test "uses \$APPSH_DEFAULT_CONFIG" { APPSH_DEFAULT_CONFIG=$APPSH_HOME/test/data/app-cat-conf/config-2 app_libexec app-cat-conf -f /dev/null -- cgit v1.2.3