Nicholas Clark wrote:
On Sat, Feb 08, 2003 at 10:47:00AM -0000, Leopold Toetsch wrote:Modified: t/native_pbc number_1.pbc number_2.pbc
If these are going to need to change every time core ops changes, then I think we're going to need to automate this process:
Yep. I have a script here.
This assumes, that default perl is configured with long double and that
current parrot is double, make test is already done.
$ cat mk_pbc
#!/bin/sh
# generate t/native_pbc/number_{1,2}.pbc
cp t/op/number_1.pbc t/native_pbc/number_1.pbc
make progclean
perl Configure.pl --debugging
tail myconfig
make -s
cp parrot parrot-d12
cd languages/imcc
make clean && make -s
cp imcc imcc-d12
cd -
imcc -o n.pbc t/op/number_1.pasm
mv n.pbc t/native_pbc/number_2.pbc
make progclean
perl Configure.pl --debugging --floatval=double
tail myconfig
make -s
cp parrot parrot-d8
cd languages/imcc
make clean && make -s
cp imcc imcc-d8
cd -
make pdump
pdump -h t/native_pbc/number_1.pbc
pdump -h t/native_pbc/number_2.pbc
perl t/harness t/native_pbc/number.t
A second script runs then doing a (MANIFEST files) diff of my tree (where above happens) against CVS, copies changed files and generates a commit sccript, which I eventually then run.
leo