Re: obscure platform autobuilders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 01, 2008 at 11:46:43AM +0100, Mike Ralphson wrote:

> My googling led me to think that INTERNAL_QSORT would be a good idea
> on at least some versions of Solaris... it may depend on the fs
> though.

I thought it was purely a performance enhancement. Should it affect the
test results?

> How about this - let me know if ok, and I'll push it.

It mostly looks good, though I would have split it into several distinct
commits for readability. A few comments below.

> -  - 'branches', a list of branches, one per line, to build and test
> +  - 'branches', a list of branches, one per line, to build and test.
> +    Lines starting with # are treated as comments

Makes sense.

>    - 'config.mak'; if this file exists, it will be used as the config.mak
> -    file for building git
> +    file for building git. If it is not present, but there is a
> +    config.mak file in your project directory, it is copied here to
> +    prevent it being removed by 'git clean'

I'm not sure I agree with this. My goal was to treat the project
directory as nothing more than a cache, with the gitbuild repo as the
master source driving the tests. So this works backwards to that.

One of the things I was (and am) considering is rather than doing
checkout/clean, to simply export each branch to a new directory and
build from there. Then the "project" repo could actually be bare.

How is this feature intended to be used? It looks like it would
basically be invoked one time, when running this script on an existing
gitbuild setup. So it saves one manual step of copying your config.mak
to the platform directory. But you still have to manually inspect, add,
and commit that config.mak file.

> +  - 'catch', a shell script sourced by the build script if an error
> +    occurs. It is passed the failing command-line in its arguments
> +
> +  - 'finally', a shell script sourced by the build script at the end
> +    of the process. It is passed the exit code of build.sh as its
> +    argument

These look like sensible hooks.

> +  - project; the path to the directory to build in. If not set, defaults
> +             to ./project relative to the starting directory
> +

I am accomplishing the same thing with a symlink, but I think this is
probably cleaner.

> +if ! test -d $project; then
> +  try mkdir $project
> +  try cd $project

Quotes around $project? I'm not sure how robust the rest of the script
is to paths with spaces (which I personally consider insane).

> -  for i in `cat "$root/branches"`; do
> +  for i in `cat "$root/branches" | grep -v '^#'`; do

Useless use of cat. :)

  grep -v ^# < "$root/branches"

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux