Skip to content

Commit

Permalink
Update test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Jun 4, 2021
1 parent 992fa78 commit 2549597
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions 2.44.0/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2549597

Please sign in to comment.