Skip to content

Commit

Permalink
working tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Sep 19, 2012
1 parent 31e16fd commit 623fe14
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test/scripts/configure/00.main.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash
#!/bin/bash -v

set -x

cd `mktemp -d`
echo "Running in $PWD"

echo "set up a simple job"
moa simple --np -t test -- echo
moa new simple
moa set title='test'
moa set process='echo hello'

echo "check if the title is properly set"
moa show | grep 'title' | grep -q 'test'
Expand All @@ -24,11 +28,10 @@ moa show | grep 'dummy' | grep -q 'dumb'
echo "create a job in a subdir"
mkdir sub
cd sub
moa new simple --np -t 'subtest' -- echo

echo "dummy should still be set"
moa new simple
moa set title='test'

echo "check if the dummy is set"
moa show | grep 'dummy' | grep -q 'dumb'
echo "dummy should still be set - check"
moa show -a | grep 'dummy' | grep -q 'dumb'


0 comments on commit 623fe14

Please sign in to comment.