-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark Fiers
committed
Sep 19, 2012
1 parent
1d59432
commit 31e16fd
Showing
6 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# Test if moa works | ||
|
||
moa -h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
|
||
set -e | ||
set -v | ||
set -vex | ||
|
||
tmpdir=`mktemp -d` | ||
cd $tmpdir | ||
echo "Running in $PWD" | ||
|
||
moa simple -t test -- echo | ||
|
||
moa new simple -t test | ||
moa set process='echo' | ||
moa show | grep 'title' | grep -q 'test' | ||
moa unset title | ||
moa show | grep 'title' | grep -qv 'test' | ||
[[ ! `moa show | grep 'title' | grep -q 'test'` ]] | ||
# recursive unset | ||
moa set aaa=bbb | ||
moa show | grep 'aaa' | grep -q 'bbb' | ||
mkdir 10.sub | ||
cd 10.sub | ||
moa simple -t sub -- echo | ||
moa new simple -t sub | ||
moa set process=echo | ||
|
||
moa set aaa=bbb | ||
moa show | grep 'aaa' | grep -q 'bbb' | ||
cd .. | ||
moa unset -r aaa | ||
moa show | grep -qv 'aaa' | ||
cd 10.sub | ||
moa show | grep -qv 'aaa' | ||
moa show | grep -qv 'aaa' | ||
|
||
rm -rf $tmpdir |