| 1 |
(system "rm ../test_bergman/test.diff") |
| 2 |
|
| 3 |
%test1 Simple commutative |
| 4 |
(terpri) |
| 5 |
(prin2 "simple commutative") |
| 6 |
(system "rm ../test_bergman/simple_c.gb ") |
| 7 |
(simple "../test_bergman/simple_c" "../test_bergman/simple_c.gb") |
| 8 |
(system "cat ../test_bergman/tsc >>../test_bergman/test.diff") |
| 9 |
(system "diff ../test_bergman/simple_c.gb ../test_bergman/simple_c.gb.old >../test_bergman/test.diff1") |
| 10 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 11 |
(system "rm ../test_bergman/test.diff1") |
| 12 |
(clearring) |
| 13 |
|
| 14 |
%test2 Simple noncommutative |
| 15 |
(terpri) |
| 16 |
(prin2 "simple noncommutative") |
| 17 |
(system "rm ../test_bergman/simple_nc.gb") |
| 18 |
(simple "../test_bergman/simple_nc" "../test_bergman/simple_nc.gb") |
| 19 |
(system "cat ../test_bergman/tsnc >>../test_bergman/test.diff") |
| 20 |
(system "diff ../test_bergman/simple_nc.gb ../test_bergman/simple_nc.gb.old >../test_bergman/test.diff1") |
| 21 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 22 |
(system "rm ../test_bergman/test.diff1") |
| 23 |
(clearring) |
| 24 |
|
| 25 |
%test3 |
| 26 |
(terpri) |
| 27 |
(prin2 "ncpbhgroebner") |
| 28 |
(system "rm ../test_bergman/ncpbhg.gb ") |
| 29 |
(system "rm ../test_bergman/ncpbhg.hs ") |
| 30 |
(system "rm ../test_bergman/ncpbhg.pb ") |
| 31 |
(ncpbhgroebner "../test_bergman/ncpbhg" "../test_bergman/ncpbhg.gb" "../test_bergman/ncpbhg.pb" "../test_bergman/ncpbhg.hs" ) |
| 32 |
(system "cat ../test_bergman/tncpbhg >>../test_bergman/test.diff") |
| 33 |
(system "diff ../test_bergman/ncpbhg.gb ../test_bergman/ncpbhg.gb.old >../test_bergman/test.diff1") |
| 34 |
(system "diff ../test_bergman/ncpbhg.pb ../test_bergman/ncpbhg.pb.old >../test_bergman/test.diff1") |
| 35 |
(system "diff ../test_bergman/ncpbhg.hs ../test_bergman/ncpbhg.hs.old >../test_bergman/test.diff1") |
| 36 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 37 |
(system "rm ../test_bergman/test.diff1") |
| 38 |
(clearring) |
| 39 |
|
| 40 |
%test4 Commutative HS |
| 41 |
(terpri) |
| 42 |
(prin2 "Commutative Hilbert series") |
| 43 |
(system "rm ../test_bergman/hilb.gb ") |
| 44 |
(system "rm ../test_bergman/hilb.hs ") |
| 45 |
(load hseries) |
| 46 |
(hilbert "../test_bergman/hilb" "../test_bergman/hilb.gb" "../test_bergman/hilb.hs" ) |
| 47 |
(system "cat ../test_bergman/thilb >>../test_bergman/test.diff") |
| 48 |
(system "diff ../test_bergman/hilb.gb ../test_bergman/hilb.gb.old >../test_bergman/test.diff1") |
| 49 |
(system "diff ../test_bergman/hilb.hs ../test_bergman/hilb.hs.old >../test_bergman/test.diff1") |
| 50 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 51 |
(system "rm ../test_bergman/test.diff1") |
| 52 |
(clearring) |
| 53 |
|
| 54 |
%test5 Hs interrupt strategy: commutative |
| 55 |
(terpri) |
| 56 |
(prin2 "Hilbert series interrupt strategy: commutative") |
| 57 |
(system "rm ../test_bergman/interrupt_c.gb ") |
| 58 |
(setinterruptstrategy minhilblimits) |
| 59 |
(sethseriesminima 1 3 3 1 ) |
| 60 |
(simple "../test_bergman/interrupt_c" "../test_bergman/interrupt_c.gb") |
| 61 |
(clearring) |
| 62 |
(setinterruptstrategy ordinary) |
| 63 |
(system "cat ../test_bergman/tisc >>../test_bergman/test.diff") |
| 64 |
(system "diff ../test_bergman/interrupt_c.gb ../test_bergman/interrupt_c.gb.old >../test_bergman/test.diff1") |
| 65 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 66 |
(system "rm ../test_bergman/test.diff1") |
| 67 |
|
| 68 |
|
| 69 |
%test6 Weights handling: commutative |
| 70 |
(terpri) |
| 71 |
(prin2 "Weights handling: commutative") |
| 72 |
(system "rm ../test_bergman/simp_weight_c.gb ") |
| 73 |
(simple "../test_bergman/simp_weight_c" "../test_bergman/simp_weight_c.gb") |
| 74 |
(clearweights) |
| 75 |
(clearring) |
| 76 |
(system "cat ../test_bergman/tswc >>../test_bergman/test.diff") |
| 77 |
(system "diff ../test_bergman/simp_weight_c.gb ../test_bergman/simp_weight_c.gb.old >../test_bergman/test.diff1") |
| 78 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 79 |
(system "rm ../test_bergman/test.diff1") |
| 80 |
|
| 81 |
%test7 Weights handling: non-commutative |
| 82 |
(terpri) |
| 83 |
(prin2 "Weights handling: non-commutative") |
| 84 |
(system "rm ../test_bergman/simp_weight_nc.gb ") |
| 85 |
(simple "../test_bergman/simp_weight_nc" "../test_bergman/simp_weight_nc.gb") |
| 86 |
(clearweights) |
| 87 |
(clearring) |
| 88 |
(system "cat ../test_bergman/tswnc >>../test_bergman/test.diff") |
| 89 |
(system "diff ../test_bergman/simp_weight_nc.gb ../test_bergman/simp_weight_nc.gb.old >../test_bergman/test.diff1") |
| 90 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 91 |
(system "rm ../test_bergman/test.diff1") |
| 92 |
|
| 93 |
%test8 Eliminating ordering: Groebner basis. |
| 94 |
(terpri) |
| 95 |
(prin2 "Eliminating ordering: Groebner basis") |
| 96 |
(system "rm ../test_bergman/simple_el.gb ") |
| 97 |
(simple "../test_bergman/simple_el" "../test_bergman/simple_el.gb") |
| 98 |
(noelim) |
| 99 |
(system "cat ../test_bergman/tsel >>../test_bergman/test.diff") |
| 100 |
(system "diff ../test_bergman/simple_el.gb ../test_bergman/simple_el.old >../test_bergman/test.diff1") |
| 101 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 102 |
(system "rm ../test_bergman/test.diff1") |
| 103 |
(clearring) |
| 104 |
|
| 105 |
%test9 |
| 106 |
(terpri) |
| 107 |
(prin2 "modulehseries") |
| 108 |
(system "rm ../test_bergman/modhs.gb ") |
| 109 |
(system "rm ../test_bergman/modhs.hs ") |
| 110 |
(modulehseries "../test_bergman/modhs.1" "../test_bergman/modhs.2" "../test_bergman/modhs.gb" "../test_bergman/modhs.hs") |
| 111 |
(clearring) |
| 112 |
(system "cat ../test_bergman/tmodhs >>../test_bergman/test.diff") |
| 113 |
(system "diff ../test_bergman/modhs.gb ../test_bergman/modhs.gb.old >../test_bergman/test.diff1") |
| 114 |
(system "diff ../test_bergman/modhs.hs ../test_bergman/modhs.hs.old >../test_bergman/test.diff1") |
| 115 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 116 |
(system "rm ../test_bergman/test.diff1") |
| 117 |
|
| 118 |
%test10 Anick for trivial module |
| 119 |
(terpri) |
| 120 |
(prin2 "Anick trivial") |
| 121 |
(system "rm ../test_bergman/anick_tm.res ") |
| 122 |
(system "rm ../test_bergman/anick_tm.out ") |
| 123 |
(setq anickresolutionoutputfile "../test_bergman/anick_tm.out") |
| 124 |
(anick "../test_bergman/anick_tm" "../test_bergman/anick_tm.res") |
| 125 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 126 |
(anickdisplay) |
| 127 |
(clearring) |
| 128 |
(system "cat ../test_bergman/tantm >>../test_bergman/test.diff") |
| 129 |
(system "diff ../test_bergman/anick_tm.res ../test_bergman/anick_tm.res.old >../test_bergman/test.diff1") |
| 130 |
(system "diff ../test_bergman/anick_tm.out ../test_bergman/anick_tm.out.old >../test_bergman/test.diff1") |
| 131 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 132 |
(system "rm ../test_bergman/test.diff1") |
| 133 |
|
| 134 |
%test11 Modulebettinumbers |
| 135 |
(terpri) |
| 136 |
(prin2 "Modulebettinumbers") |
| 137 |
(system "rm ../test_bergman/modbtn.res ") |
| 138 |
(system "rm ../test_bergman/modbtn.out ") |
| 139 |
(setq anickresolutionoutputfile "../test_bergman/modbtn.out") |
| 140 |
(modulebettinumbers "../test_bergman/modbtn" "../test_bergman/modbtn.res") |
| 141 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 142 |
(anickdisplay) |
| 143 |
(clearring) |
| 144 |
(system "cat ../test_bergman/tmodbtn >>../test_bergman/test.diff") |
| 145 |
(system "diff ../test_bergman/modbtn.res ../test_bergman/modbtn.res.old >../test_bergman/test.diff1") |
| 146 |
(system "diff ../test_bergman/modbtn.out ../test_bergman/modbtn.out.old >../test_bergman/test.diff1") |
| 147 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 148 |
(system "rm ../test_bergman/test.diff1") |
| 149 |
|
| 150 |
%test12 Factor-algebra Betti numbers |
| 151 |
(terpri) |
| 152 |
(prin2 "Factor-algebra") |
| 153 |
(system "rm ../test_bergman/fact.res ") |
| 154 |
(system "rm ../test_bergman/fact.out ") |
| 155 |
(setq anickresolutionoutputfile "../test_bergman/fact.out") |
| 156 |
(factalgbettinumbers "../test_bergman/fact" "../test_bergman/fact.res") |
| 157 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 158 |
(anickdisplay) |
| 159 |
(clearring) |
| 160 |
(system "cat ../test_bergman/tfact >>../test_bergman/test.diff") |
| 161 |
(system "diff ../test_bergman/fact.res ../test_bergman/fact.res.old >../test_bergman/test.diff1") |
| 162 |
(system "diff ../test_bergman/fact.out ../test_bergman/fact.out.old >../test_bergman/test.diff1") |
| 163 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 164 |
(system "rm ../test_bergman/test.diff1") |
| 165 |
|
| 166 |
%test13 Two modules Betti numbers |
| 167 |
(terpri) |
| 168 |
(prin2 "Betti numbers for two modules") |
| 169 |
(system "rm ../test_bergman/two.res ") |
| 170 |
(system "rm ../test_bergman/two.out ") |
| 171 |
(setq anickresolutionoutputfile "../test_bergman/two.out") |
| 172 |
(twomodbettinumbers "../test_bergman/two" "../test_bergman/two.res") |
| 173 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 174 |
(anickdisplay) |
| 175 |
(clearring) |
| 176 |
(system "cat ../test_bergman/ttwo >>../test_bergman/test.diff") |
| 177 |
(system "diff ../test_bergman/two.res ../test_bergman/two.res.old >../test_bergman/test.diff1") |
| 178 |
(system "diff ../test_bergman/two.out ../test_bergman/two.out.old >../test_bergman/test.diff1") |
| 179 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 180 |
(system "rm ../test_bergman/test.diff1") |
| 181 |
|
| 182 |
%test14 Two modules Betti numbers: hochschild |
| 183 |
(terpri) |
| 184 |
(prin2 "Betti numbers for two modules: hochschild") |
| 185 |
(system "rm ../test_bergman/hoch.res ") |
| 186 |
(system "rm ../test_bergman/hoch.out ") |
| 187 |
(setq anickresolutionoutputfile "../test_bergman/hoch.out") |
| 188 |
(twomodbettinumbers "../test_bergman/hochschild" "../test_bergman/hoch.res") |
| 189 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 190 |
(anickdisplay) |
| 191 |
(clearring) |
| 192 |
(system "cat ../test_bergman/thoch >>../test_bergman/test.diff") |
| 193 |
(system "diff ../test_bergman/hoch.res ../test_bergman/hoch.res.old >../test_bergman/test.diff1") |
| 194 |
(system "diff ../test_bergman/hoch.out ../test_bergman/hoch.out.old >../test_bergman/test.diff1") |
| 195 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 196 |
(system "rm ../test_bergman/test.diff1") |
| 197 |
|
| 198 |
%test15 Hochschild |
| 199 |
(terpri) |
| 200 |
(prin2 "Hochschild homology") |
| 201 |
(system "rm ../test_bergman/hoch1.res ") |
| 202 |
(system "rm ../test_bergman/hoch1.out ") |
| 203 |
(setq anickresolutionoutputfile "../test_bergman/hoch1.out") |
| 204 |
(hochschild "../test_bergman/hochschild1" "../test_bergman/hoch1.res") |
| 205 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 206 |
(anickdisplay) |
| 207 |
(clearring) |
| 208 |
(system "cat ../test_bergman/thoch1 >>../test_bergman/test.diff") |
| 209 |
(system "diff ../test_bergman/hoch1.res ../test_bergman/hoch1.res.old >../test_bergman/test.diff1") |
| 210 |
(system "diff ../test_bergman/hoch1.out ../test_bergman/hoch1.out.old >../test_bergman/test.diff1") |
| 211 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 212 |
(system "rm ../test_bergman/test.diff1") |
| 213 |
|
| 214 |
%test16 Simple noncommutative char2 |
| 215 |
(terpri) |
| 216 |
(prin2 "simple noncommutative char2") |
| 217 |
(system "rm ../test_bergman/char2.gb") |
| 218 |
(simple "../test_bergman/char2" "../test_bergman/char2.gb") |
| 219 |
(clearring) |
| 220 |
(system "cat ../test_bergman/tch2 >>../test_bergman/test.diff") |
| 221 |
(system "diff -b ../test_bergman/char2.gb ../test_bergman/char2.gb.old >../test_bergman/test.diff1") |
| 222 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 223 |
(system "rm ../test_bergman/test.diff1") |
| 224 |
|
| 225 |
%test17 Simple noncommutative char5 |
| 226 |
(terpri) |
| 227 |
(prin2 "simple noncommutative char5") |
| 228 |
(system "rm ../test_bergman/char5.gb") |
| 229 |
(simple "../test_bergman/char5" "../test_bergman/char5.gb") |
| 230 |
(clearring) |
| 231 |
(system "cat ../test_bergman/tch5 >>../test_bergman/test.diff") |
| 232 |
(system "diff -b ../test_bergman/char5.gb ../test_bergman/char5.gb.old >../test_bergman/test.diff1") |
| 233 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 234 |
(system "rm ../test_bergman/test.diff1") |
| 235 |
|
| 236 |
|
| 237 |
%test18 Simple with modlogarithms |
| 238 |
(terpri) |
| 239 |
(prin2 "simple with modlogarithms") |
| 240 |
(system "rm ../test_bergman/modlog.gb") |
| 241 |
(simple "../test_bergman/modlog" "../test_bergman/modlog.gb") |
| 242 |
(clearring) |
| 243 |
(setoddprimesmoduli ordinary) |
| 244 |
(setmodulus 0) |
| 245 |
(system "cat ../test_bergman/tlogarith >>../test_bergman/test.diff") |
| 246 |
(system "diff -b ../test_bergman/modlog.gb ../test_bergman/modlog.gb.old >../test_bergman/test.diff1") |
| 247 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 248 |
(system "rm ../test_bergman/test.diff1") |
| 249 |
|
| 250 |
%test19 Leftmodulebettinumbers |
| 251 |
(terpri) |
| 252 |
(prin2 "Leftmodulebettinumbers") |
| 253 |
(system "rm ../test_bergman/leftmodbtn.res ") |
| 254 |
(system "rm ../test_bergman/leftmodbtn.out ") |
| 255 |
(load hseries) |
| 256 |
(setresolutiontype anick) |
| 257 |
(setq anickresolutionoutputfile "../test_bergman/leftmodbtn.out") |
| 258 |
(leftmodulebettinumbers "../test_bergman/leftmodbtn" "../test_bergman/leftmodbtn.res") |
| 259 |
(calculateanickresolutiontolimit (getmaxdeg)) |
| 260 |
(anickdisplay) |
| 261 |
(clearring) |
| 262 |
(setnoresolution) |
| 263 |
(system "cat ../test_bergman/tleftmodbtn >>../test_bergman/test.diff") |
| 264 |
(system "diff -b ../test_bergman/leftmodbtn.res ../test_bergman/leftmodbtn.res.old >../test_bergman/test.diff1") |
| 265 |
(system "diff -b ../test_bergman/leftmodbtn.out ../test_bergman/leftmodbtn.out.old >../test_bergman/test.diff1") |
| 266 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 267 |
(system "rm ../test_bergman/test.diff1") |
| 268 |
|
| 269 |
%test20 Rabbit with setrabbit |
| 270 |
(terpri) |
| 271 |
(prin2 "Rabbit with setrabbit") |
| 272 |
(system "rm ../test_bergman/rabbit_set.res ") |
| 273 |
(rabbit "../test_bergman/rabb_set" "../test_bergman/rabbit_set.res") |
| 274 |
(clearring) |
| 275 |
(deglexify) |
| 276 |
(system "cat ../test_bergman/trabb_set >>../test_bergman/test.diff") |
| 277 |
(system "diff -b ../test_bergman/rabbit_set.res ../test_bergman/rabbit_set.res.old >../test_bergman/test.diff1") |
| 278 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 279 |
(system "rm ../test_bergman/test.diff1") |
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
%test21 Skipcdeg |
| 284 |
(terpri) |
| 285 |
(prin2 "Skipcdeg - test N1") |
| 286 |
(system "rm ../test_bergman/skipcdeg1.gb") |
| 287 |
(setinterruptstrategy minhilblimits) |
| 288 |
(sethseriesminima skipcdeg skipcdeg skipcdeg skipcdeg skipcdeg skipcdeg ) |
| 289 |
(simple "../test_bergman/skipcdeg1" "../test_bergman/skipcdeg1.gb") |
| 290 |
(clearring) |
| 291 |
(system "cat ../test_bergman/tskip1 >>../test_bergman/test.diff") |
| 292 |
(system "diff -b ../test_bergman/skipcdeg1.gb ../test_bergman/skipcdeg1.gb.old >../test_bergman/test.diff1") |
| 293 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 294 |
(system "rm ../test_bergman/test.diff1") |
| 295 |
|
| 296 |
%test22 Ignorecdeg |
| 297 |
(terpri) |
| 298 |
(prin2 "Ignorecdeg") |
| 299 |
(system "rm ../test_bergman/skipcdeg2.gb") |
| 300 |
(setinterruptstrategy minhilblimits) |
| 301 |
(sethseriesminima ignorecdeg ignorecdeg ignorecdeg) |
| 302 |
(simple "../test_bergman/skipcdeg2" "../test_bergman/skipcdeg2.gb") |
| 303 |
(clearring) |
| 304 |
(system "cat ../test_bergman/tskip2 >>../test_bergman/test.diff") |
| 305 |
(system "diff -b ../test_bergman/skipcdeg2.gb ../test_bergman/skipcdeg2.gb.old >../test_bergman/test.diff1") |
| 306 |
(system "cat ../test_bergman/test.diff1 >>../test_bergman/test.diff") |
| 307 |
(system "rm ../test_bergman/test.diff1") |
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
(terpri) |
| 312 |
(prin2 "Last test finished") |
| 313 |
|
| 314 |
|
| 315 |
%Last test finished |
| 316 |
|
| 317 |
%Starting logfiles comparison |
| 318 |
(system "cat test_bergman/tlog >>test_bergman/test.diff") |
| 319 |
|