Refactor setup for 'rhizomeops' test script

This commit is contained in:
Andrew Bettison 2013-10-14 16:49:06 +10:30
parent eb46cc99b3
commit 70af3289f6

View File

@ -26,21 +26,24 @@ shopt -s extglob
setup_rhizome() { setup_rhizome() {
set_instance +A set_instance +A
executeOk_servald config \ set_rhizome_config
set debug.rhizome on \
set debug.verbose on \
set log.console.level debug
create_single_identity create_single_identity
echo "$SIDA1" >sids
set_instance +B set_instance +B
set_rhizome_config
create_identities 4
echo "$SIDB1" >>sids
echo "$SIDB2" >>sids
echo "$SIDB3" >>sids
echo "$SIDB4" >>sids
assert [ $(sort sids | uniq | wc -l) -eq 5 ]
}
set_rhizome_config() {
executeOk_servald config \ executeOk_servald config \
set debug.rhizome on \ set debug.rhizome on \
set debug.verbose on \ set debug.verbose on \
set log.console.level debug set log.console.level debug
create_identities 4
assert [ $SIDB1 != $SIDA1 ]
assert [ $SIDB2 != $SIDA1 ]
assert [ $SIDB3 != $SIDA1 ]
assert [ $SIDB4 != $SIDA1 ]
} }
doc_InitialEmptyList="Initial list is empty" doc_InitialEmptyList="Initial list is empty"