#!/bin/sh
set -x
if test -z $CURATOR_DOMAIN
then
    export CURATOR_DOMAIN="http://127.0.0.1:8000"
fi
python testMerge.py ${CURATOR_DOMAIN}/curator/default/merge_otus merge-input.v1.2.json >.out.merge.json || exit
python testString2nexml.py ${CURATOR_DOMAIN}/curator/default/to_nexson avian_ovomucoids.tre newick >.out.saot.newick.txt|| exit
python testString2nexml.py ${CURATOR_DOMAIN}/curator/default/to_nexson avian_ovomucoids.nex >.out.saon.def.txt || exit
python testNoTreesString2nexml.py ${CURATOR_DOMAIN}/curator/default/to_nexson avian_ovomucoids_no_trees.nex >.out.saontn.def.txt || exit
python test2nexml.py "${CURATOR_DOMAIN}/curator/default/to_nexson?nexml2json=1.2" avian_ovomucoids.tre newick >.out.aot.v1.2.0.txt || exit
python test2nexml.py "${CURATOR_DOMAIN}/curator/default/to_nexson?nexml2json=1.0" avian_ovomucoids.tre newick >.out.aot.v1.0.0.txt || exit
python test2nexml.py "${CURATOR_DOMAIN}/curator/default/to_nexson?nexml2json=0.0" avian_ovomucoids.tre newick >.out.aot.v0.0.0.txt || exit
python test2nexml.py ${CURATOR_DOMAIN}/curator/default/to_nexson avian_ovomucoids.nex >.out.aon.def.txt || exit
