Root/
Source at commit 7081258910b767841129be93bff3c971d8db6cf1 created 7 years 2 months ago. By Erich Heinzle, diff for gEDA PCB export in fped | |
---|---|
1 | #!/bin/sh |
2 | . ./Common |
3 | |
4 | ############################################################################### |
5 | |
6 | fped_dump "frame reference: \"frame\" (origin)" <<EOF |
7 | frame f {} |
8 | frame f @ |
9 | EOF |
10 | expect <<EOF |
11 | /* MACHINE-GENERATED ! */ |
12 | |
13 | frame f { |
14 | } |
15 | |
16 | package "_" |
17 | unit mm |
18 | |
19 | frame f @ |
20 | EOF |
21 | |
22 | #------------------------------------------------------------------------------ |
23 | |
24 | fped_dump "frame reference: \"%frame\" (current frame origin)" <<EOF |
25 | frame f {} |
26 | %frame f @ |
27 | EOF |
28 | expect <<EOF |
29 | /* MACHINE-GENERATED ! */ |
30 | |
31 | frame f { |
32 | } |
33 | |
34 | package "_" |
35 | unit mm |
36 | |
37 | frame f @ |
38 | EOF |
39 | |
40 | #------------------------------------------------------------------------------ |
41 | |
42 | fped_dump "frame reference: \"%frame\" (current frame vector)" <<EOF |
43 | frame f {} |
44 | v: vec @(0mm, 0mm) |
45 | %frame f v |
46 | EOF |
47 | expect <<EOF |
48 | /* MACHINE-GENERATED ! */ |
49 | |
50 | frame f { |
51 | } |
52 | |
53 | package "_" |
54 | unit mm |
55 | |
56 | v: vec @(0mm, 0mm) |
57 | frame f . |
58 | EOF |
59 | |
60 | #------------------------------------------------------------------------------ |
61 | |
62 | fped_dump "frame reference: \"%frame\" (other frame origin)" <<EOF |
63 | frame f {} |
64 | frame g {} |
65 | %frame f g.@ |
66 | EOF |
67 | expect <<EOF |
68 | /* MACHINE-GENERATED ! */ |
69 | |
70 | frame f { |
71 | } |
72 | |
73 | frame g { |
74 | frame f @ |
75 | } |
76 | |
77 | package "_" |
78 | unit mm |
79 | |
80 | EOF |
81 | |
82 | #------------------------------------------------------------------------------ |
83 | |
84 | fped_dump "frame reference: \"%frame\" (other frame base)" <<EOF |
85 | frame f {} |
86 | frame g { |
87 | v: vec @(0mm, 0mm) |
88 | } |
89 | %frame f g.v |
90 | EOF |
91 | expect <<EOF |
92 | /* MACHINE-GENERATED ! */ |
93 | |
94 | frame f { |
95 | } |
96 | |
97 | frame g { |
98 | v: vec @(0mm, 0mm) |
99 | frame f . |
100 | } |
101 | |
102 | package "_" |
103 | unit mm |
104 | |
105 | EOF |
106 | |
107 | #------------------------------------------------------------------------------ |
108 | |
109 | fped_fail "frame reference: \"%frame\" (cycle)" <<EOF |
110 | frame f { |
111 | } |
112 | |
113 | frame g { |
114 | frame f @ |
115 | } |
116 | |
117 | %frame g f.@ |
118 | EOF |
119 | expect <<EOF |
120 | 8: frame "g" is a parent of "f" near "@" |
121 | EOF |
122 | |
123 | #------------------------------------------------------------------------------ |
124 | |
125 | fped_dump "frame reference: \"%frame\" (out-of-order)" <<EOF |
126 | frame f { |
127 | } |
128 | |
129 | frame g { |
130 | } |
131 | |
132 | %frame g f.@ |
133 | EOF |
134 | expect <<EOF |
135 | /* MACHINE-GENERATED ! */ |
136 | |
137 | frame g { |
138 | } |
139 | |
140 | frame f { |
141 | frame g @ |
142 | } |
143 | |
144 | package "_" |
145 | unit mm |
146 | |
147 | EOF |
148 | |
149 | ############################################################################### |
150 |
Branches:
master