From 25495978f553034f785ef381956363975c108f50 Mon Sep 17 00:00:00 2001 From: icaoberg Date: Fri, 4 Jun 2021 17:29:10 -0400 Subject: [PATCH] Update test.sh --- 2.44.0/test.sh | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) 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