diff --git a/2.44.0/test.sh b/2.44.0/test.sh index 9e05059..6aeb985 100644 --- a/2.44.0/test.sh +++ b/2.44.0/test.sh @@ -2,28 +2,14 @@ set -x -cat << EOF > file.dot -digraph D { +INPUT=./data/file.dot +OUTPUT=./data/truth1.png - A [shape=diamond] - B [shape=box] - C [shape=circle] +singularity exec singularity-graphviz-2.44.0.sif dot -Tpng "$INPUT" -o "$OUTPUT" +file $OUTPUT - A -> B [style=dashed, color=grey] - A -> C [color="black:invis:black"] - A -> D [penwidth=5, arrowhead=none] - -} -EOF - -INPUT=file.dot -OUTPUT=truth1.png - -singularity exec singularity-graphviz-2.44.0.sif dot -help -#singularity exec singularity-graphviz-2.44.0.sif dot -Tpng "$INPUT" -o "$OUTPUT" -#if [ -f $OUTPUT ]; then -# file $OUTPUT -# exit 0 -#else -# exit 1 -#fi +if [ -f $OUTPUT ]; then + exit 0 +else + exit 1 +fi