Thu, 24 May 2018 23:08:14 +0200
[prologix] implement more prologix commands and add API to register emulated devices
also refactor tests as generative tests using pytest's parametrized API.
45
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
1 | |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
2 | OE |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
3 | SC;OE |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
4 | OE |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
5 | OO;OE |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
6 | OE |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
7 | EC;OE |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
8 | EC0 |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
9 | OP |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
10 | ;SC0,1812,0,2047;PU;;VS;SR1.331,1.759;DI;LT;SP2;PA192,202,192,329;PD;PA194,326,196,330,198,334,200,330,202,331,204,334,206,333,208,325,210,329,212,336,214,336,216,338,218,338,220,340,222,337,224,341,226,345; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
11 | ;PA228,345,230,342,232,338,234,338,236,338,238,346,240,339,242,340,244,341,246,337,248,341,250,345,252,345,254,341,256,345,258,335,260,341,262,336,264,344,266,346,268,346,270,346,272,348,274,342,276,343; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
12 | ;PA278,344,280,344,282,341,284,344,286,342,288,342,290,337,292,341,294,345,296,345,298,347,300,350,302,345,304,345,306,343,308,343,310,342,312,353,314,348,316,348,318,348,320,344,322,347,324,343,326,352; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
13 | ;PA328,345,330,350,332,348,334,350,336,353,338,346,340,352,342,348,344,352,346,352,348,351,350,352,352,356,354,363,356,349,358,358,360,359,362,356,364,356,366,360,368,361,370,359,372,352,374,360,376,357; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
14 | ;PA378,357,380,360,382,359,384,360,386,364,388,364,390,360,392,368,394,359,396,360,398,360,400,367,402,372,404,365,406,359,408,367,410,365,412,374,414,371,416,368,418,375,420,369,422,367,424,367,426,372; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
15 | ;PA428,371,430,374,432,373,434,369,436,376,438,375,440,375,442,375,444,376,446,383,448,371,450,379,452,376,454,374,456,378,458,382,460,378,462,375,464,375,466,385,468,384,470,383,472,380,474,379,476,385; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
16 | ;PA478,381,480,382,482,382,484,386,486,389,488,388,490,389,492,384,494,388,496,394,498,390,500,389,502,394,504,389,506,390,508,392,510,397,512,394,514,389,516,397,518,394,520,399,522,396,524,394,526,394; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
17 | ;PA528,401,530,398,532,401,534,404,536,400,538,406,540,404,542,399,544,399,546,403,548,406,550,406,552,410,554,409,556,407,558,412,560,411,562,406,564,415,566,404,568,414,570,413,572,417,574,412,576,415; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
18 | ;PA578,417,580,414,582,416,584,416,586,418,588,421,590,422,592,417,594,424,596,421,598,427,600,431,602,424,604,429,606,431,608,427,610,430,612,428,614,433,616,431,618,429,620,432,622,433,624,438,626,434; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
19 | ;PA628,434,630,438,632,437,634,437,636,437,638,442,640,442,642,438,644,442,646,448,648,446,650,446,652,448,654,447,656,451,658,451,660,448,662,452,664,454,666,452,668,452,670,456,672,456,674,462,676,460; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
20 | ;PA678,460,680,464,682,460,684,463,686,464,688,467,690,464,692,467,694,465,696,471,698,473,700,472,702,471,704,476,706,476,708,475,710,479,712,480,714,484,716,484,718,486,720,485,722,486,724,484,726,487; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
21 | ;PA728,487,730,491,732,488,734,494,736,493,738,495,740,497,742,498,744,500,746,502,748,502,750,504,752,505,754,507,756,506,758,508,760,510,762,515,764,513,766,517,768,516,770,518,772,521,774,522,776,524; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
22 | ;PA778,525,780,524,782,527,784,531,786,532,788,534,790,536,792,538,794,538,796,540,798,542,800,543,802,544,804,548,806,549,808,548,810,553,812,555,814,557,816,560,818,562,820,560,822,563,824,566,826,567; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
23 | ;PA828,570,830,574,832,575,834,577,836,580,838,583,840,584,842,588,844,588,846,591,848,592,850,596,852,598,854,601,856,603,858,607,860,610,862,611,864,615,866,616,868,622,870,621,872,626,874,629,876,633; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
24 | ;PA878,635,880,637,882,641,884,644,886,648,888,650,890,654,892,657,894,661,896,665,898,669,900,674,902,678,904,681,906,686,908,688,910,693,912,697,914,703,916,706,918,711,920,716,922,721,924,727,926,732; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
25 | ;PA928,737,930,744,932,749,934,755,936,762,938,768,940,774,942,781,944,788,946,796,948,804,950,813,952,822,954,831,956,841,958,851,960,862,962,874,964,885,966,899,968,913,970,928,972,947,974,964,976,988; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
26 | ;PA978,1012,980,1037,982,1077,984,1110,986,1175,988,1276,990,1461,992,1519,994,1461,996,1276,998,1175,1000,1110,1002,1077,1004,1037,1006,1012,1008,987,1010,964,1012,948,1014,929,1016,914,1018,899,1020,885; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
27 | ;PA1022,874,1024,861,1026,851,1028,840,1030,830,1032,822,1034,813,1036,804,1038,796,1040,790,1042,782,1044,774,1046,767,1048,762,1050,755,1052,750,1054,743,1056,737,1058,733,1060,727,1062,722,1064,716; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
28 | ;PA1066,712,1068,707,1070,702,1072,697,1074,693,1076,688,1078,684,1080,681,1082,677,1084,673,1086,670,1088,666,1090,662,1092,658,1094,655,1096,650,1098,647,1100,645,1102,641,1104,637,1106,634,1108,630; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
29 | ;PA1110,628,1112,625,1114,622,1116,620,1118,618,1120,614,1122,610,1124,608,1126,605,1128,604,1130,601,1132,599,1134,595,1136,594,1138,591,1140,588,1142,587,1144,583,1146,583,1148,581,1150,578,1152,573; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
30 | ;PA1154,572,1156,570,1158,568,1160,567,1162,566,1164,563,1166,559,1168,558,1170,557,1172,554,1174,555,1176,551,1178,548,1180,545,1182,543,1184,544,1186,541,1188,539,1190,539,1192,538,1194,537,1196,533; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
31 | ;PA1198,532,1200,531,1202,526,1204,526,1206,526,1208,523,1210,523,1212,520,1214,518,1216,517,1218,513,1220,514,1222,512,1224,513,1226,509,1228,508,1230,508,1232,506,1234,506,1236,503,1238,502,1240,501; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
32 | ;PA1242,497,1244,497,1246,494,1248,495,1250,492,1252,491,1254,489,1256,489,1258,486,1260,487,1262,487,1264,484,1266,483,1268,483,1270,479,1272,480,1274,479,1276,476,1278,474,1280,473,1282,473,1284,470; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
33 | ;PA1286,473,1288,473,1290,472,1292,469,1294,467,1296,463,1298,464,1300,464,1302,463,1304,461,1306,461,1308,461,1310,456,1312,456,1314,455,1316,460,1318,454,1320,453,1322,452,1324,452,1326,444,1328,449; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
34 | ;PA1330,446,1332,449,1334,451,1336,446,1338,442,1340,444,1342,444,1344,439,1346,439,1348,438,1350,440,1352,438,1354,435,1356,438,1358,432,1360,433,1362,432,1364,431,1366,429,1368,429,1370,429,1372,428; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
35 | ;PA1374,427,1376,429,1378,429,1380,423,1382,427,1384,426,1386,426,1388,426,1390,419,1392,423,1394,421,1396,417,1398,415,1400,419,1402,416,1404,415,1406,416,1408,415,1410,417,1412,407,1414,412,1416,412; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
36 | ;PA1418,414,1420,412,1422,404,1424,407,1426,405,1428,403,1430,405,1432,404,1434,405,1436,407,1438,407,1440,400,1442,402,1444,402,1446,402,1448,404,1450,400,1452,399,1454,399,1456,399,1458,401,1460,398; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
37 | ;PA1462,389,1464,394,1466,393,1468,389,1470,396,1472,397,1474,398,1476,398,1478,393,1480,387,1482,388,1484,386,1486,392,1488,388,1490,393,1492,390,1494,388,1496,385,1498,384,1500,385,1502,381,1504,387; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
38 | ;PA1506,384,1508,384,1510,378,1512,381,1514,380,1516,384,1518,380,1520,386,1522,377,1524,375,1526,375,1528,378,1530,378,1532,378,1534,375,1536,375,1538,375,1540,376,1542,380,1544,377,1546,377,1548,370; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
39 | ;PA1550,374,1552,373,1554,376,1556,376,1558,373,1560,367,1562,366,1564,365,1566,370,1568,364,1570,369,1572,365,1574,367,1576,364,1578,364,1580,367,1582,368,1584,367,1586,365,1588,363,1590,360,1592,363; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
40 | ;PA1594,361,1596,359,1598,367,1600,368,1602,364,1604,359,1606,356,1608,359,1610,360,1612,355,1614,353,1616,360,1618,361,1620,353,1622,359,1624,353,1626,363,1628,351,1630,349,1632,350,1634,355,1636,356; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
41 | ;PA1638,349,1640,348,1642,360,1644,352,1646,359,1648,352,1650,348,1652,355,1654,354,1656,349,1658,348,1660,348,1662,345,1664,352,1666,351,1668,346,1670,343,1672,352,1674,348,1676,348,1678,348,1680,342; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
42 | ;PA1682,337,1684,340,1686,338,1688,341,1690,350,1692,341,1694,335,1696,349,1698,349,1700,339,1702,337,1704,343,1706,344,1708,341,1710,336,1712,336,1714,344,1716,343,1718,345,1720,347,1722,336,1724,341; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
43 | ;PA1726,344,1728,344,1730,339,1732,343,1734,348,1736,342,1738,346,1740,344,1742,340,1744,333,1746,341,1748,340,1750,339,1752,337,1754,335,1756,336,1758,338,1760,337,1762,337,1764,338,1766,339,1768,332; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
44 | ;PA1770,336,1772,339,1774,337,1776,327,1778,328,1780,333,1782,336,1784,332,1786,334,1788,335,1790,328,1792,333;PU;SP1;LT;PA192,202;PD;PA1794,202;PU;PA192,1853;PD;PA1794,1853;PU;PA192,202;PD;PA192,1853; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
45 | ;PU;PA1794,202;PD;PA1794,1853;LT;PU;PA352,202;PD;PA352,1853;PU;PA512,202;PD;PA512,1853;PU;PA672,202;PD;PA672,1853;PU;PA832,202;PD;PA832,1853;PU;PA992,202;PD;PA992,1853;PU;PA1153,202;PD;PA1153,1853;PU;PA1313,202; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
46 | ;PD;PA1313,1853;PU;PA1473,202;PD;PA1473,1853;PU;PA1633,202;PD;PA1633,1853;LT;PU;PA192,408;PD;PA1794,408;PU;PA192,614;PD;PA1794,614;PU;PA192,821;PD;PA1794,821;PU;PA192,1027;PD;PA1794,1027;PU;PA192,1233; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
47 | ;PD;PA1794,1233;PU;PA192,1440;PD;PA1794,1440;PU;PA192,1646;PD;PA1794,1646;PU;SP2;LT;PA4,1036;LBdBPA4,820;LBrmsPA4,748;LBVPU;CP0,.25;LB2PA4,256;LB-70.0PA4,202;LB PA4,1816;LB 10.0PA4,1762;LB |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
48 | ;LB PA4,1582;LB 10.0PA4,1528;LB PA4,1456;LB /DivSP2;LT;PA4,148;LBFxd YPA216,148;LB1.999744kPA968,148;LBHzPA1469,148;LB2.000256kSP2;LT;PA4,1870;LB PA922,1870;LB 0%OvlpPA1228,1870;LBHan |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
49 | ;LBnPA40,1870;LBPOWER SPEC2PU;SP;PA1812,2047;SC;EC0; |
cafc62915d39
added many HPGL example plots (for the sake of testing mainly)
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
50 | OE |