[BuildTools] Revised trunk/coin.m4 with --enable-doscompile

Laszlo Ladanyi ladanyi at us.ibm.com
Thu Jan 25 09:36:54 EST 2007


The script is really simple... here it is:

-------------------
#!/bin/sh

cd BuildTools
svn switch https://projects.coin-or.org/svn/BuildTools/trunk
cd ..
./BuildTools/run_autotools

mkdir build
cd build
echo "../configure $*"
../configure $*
make
make test
cd ..
rm -rf build
-------------------

Just save it, make it executable and run it from the root of the project you
are testing. Supposing you name it maketest.sh you can run multiple tests with
it:

COIN_SKIP_PROJECTS=glpk maketest.sh > test.1
COIN_SKIP_PROJECTS=glpk maketest.sh --with-cplex-incdir=/aaa --with-cplex-lib=bbb > test.2
etc.

Then look at the test.* files. And thirdparty stuff is not a problem, either.
Just set up the source tree in a way you'd set it up to compile anyway (i.e.,
download whatever thirdparty stuff is needed into the correct directories)
then you can enable/disable them using the COIN_SKIP_PROJECTS environment
variable. So to test things you need to spend some time to set up the dirs,
but afterwards you can go to have lunch while the machine is compiling and
recompiling... 

Granted, this process is not fully automated :-), but for our current purpose
it'll do, I think.

What do you think?
--Laci

On Wed, 24 Jan 2007, Andreas Waechter wrote:

> Well, I think we should make the script flexible enough to do either.  And 
> since right now we are talking about adding a number of changes (such as 
> reusing the libtool script from the base directory), we should do it with 
> trunk IMHO.  Later on, it would be great to check everything periodically 
> instable after less invasive changes.  What do you think?
> 
> On Wed, 24 Jan 2007, Laszlo Ladanyi wrote:
> 
> > OK, I'll write the script.
> >
> > BTW, I do think that it's better to use a new stable version of BuildTools
> > instead of using trunk. After all, stable is the version we should use to
> > shake out bugs, right? Or you want to shake out bugs in trunk?
> >
> > --Laci
> >
> > On Wed, 24 Jan 2007, Ted Ralphs wrote:
> >
> >> Laci,
> >>
> >> If you are willing to write a script to do it, I can build as many
> >> projects with as many different configurations as you want on Linux, Mac
> >> OSX, CYGWIN, and (possibly) Solaris x86. In fact, this would really help
> >> out with the binary distribution project too, since writing such a
> >> script is on my TODO list for that project as well.
> >>
> >> Cheers,
> >>
> >> Ted
> >> --
> >> Dr. Ted Ralphs
> >> Associate Professor
> >> Industrial and Systems Engineering
> >> Lehigh University
> >> (610)758-4784
> >> tkralphs at lehigh.edu
> >> www.lehigh.edu/~tkr2
> >>
> >
> > _______________________________________________
> > BuildTools mailing list
> > BuildTools at list.coin-or.org
> > http://list.coin-or.org/mailman/listinfo/buildtools
> >
> 



More information about the BuildTools mailing list