File: test_write

package info (click to toggle)
pcb-rnd 3.1.7b-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,108 kB
  • sloc: ansic: 213,400; yacc: 6,241; sh: 4,698; awk: 3,016; makefile: 2,254; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (23 lines) | stat: -rwxr-xr-x 656 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
20
21
22
23
#!/bin/bash
#
# Read, write and readback hyperlynx file.
# Run from io_hyp/tests directory. 
# ./test_write
#
OUTDIR=/tmp
INFILE=test00/test00.hyp
OUTFILE=${OUTDIR}/`basename ${INFILE} .hyp`_2.hyp
PNG1FILE=${OUTDIR}/`basename ${INFILE} .hyp`_1.png
PNG2FILE=${OUTDIR}/`basename ${INFILE} .hyp`_2.png

../../../src/pcb-rnd --gui batch  <<[EOD] >/dev/null 2>&1
LoadhypFrom(${INFILE})
Export(png, --outfile, ${PNG1FILE}, --dpi, 300)
SaveTo(LayoutAs, ${OUTFILE}, hyperlynx)
[EOD]
../../../src/pcb-rnd --gui batch  <<[EOD] >/dev/null 2>&1
LoadhypFrom(${OUTFILE})
Export(png, --outfile, ${PNG2FILE}, --dpi, 300)
[EOD]
ls -l ${PNG1FILE} ${PNG2FILE}
#not truncated