source: git/Tst/Short/parallel_s.tst @ 0d845f7

spielwiese
Last change on this file since 0d845f7 was 0d845f7, checked in by Andreas Steenpass <steenpass@…>, 10 years ago
chg: add/update tests for resources.lib, tasks.lib, and parallel.lib (cherry picked from commit 2d84bafbea754424246bd96a138b4e45710589df) Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>
  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[1cbc28]1LIB "tst.lib";
2tst_init();
3
4LIB "parallel.lib";
5
[0d845f7]6ring R1 = 0, (x,y,z), lp;
7ideal I = 3x3y+x3+xy3+y2z2, 2x3z-xy-xz3-y4-z2, 2x2yz-2xy2+xz2-y4;
8ideal J = x10+x9y2, x2y7-y8;
9list commands = list("std", "std");
10list arguments = list(list(I), list(J));
11parallelWaitN(commands, arguments, 1);
12parallelWaitFirst(commands, arguments);
[1cbc28]13
[0d845f7]14ring R2 = 0, (x,y,z), dp;
15ideal I1 = z8+z6+4z5+4z3+4z2+4, -z2+y;
16ideal I2 = x9y2+x10, x2y7-y8;
17ideal I3 = x3-2xy, x2y-2y2+x;
[1cbc28]18string command = "std";
[0d845f7]19list arguments = list(list(I1), list(I2), list(I3));
20parallelWaitAll(command, arguments);
21
22ring R3 = 0, (x,y,z), dp;
23ideal I = x, y, z;
24intvec v = 0:3;
25list l = list(I, v);
26module m1 = x*gen(1);
27module m2;
28command = "size";
29list arguments1 = list(list(I), list(v), list(l), list(m1));
30list arguments2 = list(list(I), list(v), list(l), list(m2));
31parallelTestAND(command, arguments1);
32parallelTestAND(command, arguments2);
33
34ring R4 = 0, (x,y,z), dp;
35ideal I;
36string s;
37list l;
38module m1 = x*gen(1);
39module m2;
40command = "size";
41list arguments1 = list(list(I), list(s), list(l), list(m1));
42list arguments2 = list(list(I), list(s), list(l), list(m2));
43parallelTestOR(command, arguments1);
44parallelTestOR(command, arguments2);
[1cbc28]45
46tst_status(1);$
Note: See TracBrowser for help on using the repository browser.