File: test_read

package info (click to toggle)
pcb-rnd 3.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 29,624 kB
  • sloc: ansic: 197,571; yacc: 6,153; sh: 5,808; awk: 2,708; makefile: 2,139; lex: 1,107; python: 519; xml: 261; lisp: 169; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (19 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# Read all hyperlynx test files and export as png.
# Run from this directory. 
# ./test_read
#
OUTDIR=/tmp
for INFILE in test*/*.hyp
do
  LOGFILE=${OUTDIR}/`basename ${INFILE} .hyp`.log
  PNGFILE=${OUTDIR}/`basename ${INFILE} .hyp`.png

  ../../../src/pcb-rnd --gui batch  <<[EOD] > ${LOGFILE} 2>&1
LoadhypFrom(${INFILE}, debug)
Export(png, --outfile, ${PNGFILE}, --dpi, 300)
[EOD]
  ls -l ${LOGFILE} ${PNGFILE}
done
#not truncated