File: render-simple-part

package info (click to toggle)
leocad 25.09-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,008 kB
  • sloc: cpp: 51,794; xml: 11,265; python: 81; sh: 52; makefile: 16
file content (18 lines) | stat: -rwxr-xr-x 268 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

cat <<EOF > test.dat
2 24 1 1 1 -1 1 1
2 24 -1 1 1 -1 1 -1
0
EOF

xvfb-run leocad test.dat -i -w 100 -h 100

retval=0
if [ -f test.png ]; then
    echo "success: rendering part worked"
    exit 0
else
    echo "failure: rendering part failed"
    exit 1
fi