simulavr-devel
[Top][All Lists]
Advanced

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

[Simulavr-devel] Script to check repo and workarea


From: ThomasK
Subject: [Simulavr-devel] Script to check repo and workarea
Date: Thu, 29 Dec 2011 18:39:47 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Lightning/1.0b2 Thunderbird/3.1.16

Hi,

today I've commited a script to check commited work _after all is commited and _before_ pushing up work to savannah. Goal is to know, that all commits, which are pushed up, will work together.

It needs at first a configuration file, see delivery-check.conf.sample for a sample configuration file. The most important there is the name of a directory, where all checks will be performed. This directory is situated outside of the normal workarea (parallel to the normal workarea directory). This directory must not exists. Then you can start this script from inside your normal workarea repo: "./delivery-check".

The normal workarea repo will be cloned there, so only commited work is used, but no changes, which are not commited! Then it builds simulavr, run regression test, builds docu (if configured and not disabled by commandline), performs a installation (local in a subdirectory, it will never change your normal installation!), builds a dist package and checks this by building simulavr from this dist package.

There are some commandline options, see "./delivery-check -h" to get help.

And there is a possibility to check not only the head revision of your workarea repo. You can start this check also from some commits before to see, for example, where a bug is introduced. And there is a commandline option, which prevents removing this directory, where check is performed, to save results for other tests.

So, I hope, we have a simple solution to check integrity of pushed commits before pushed up to savannah. Unfortunately this script works only with bash an on Linux. But it's not really complicated, so it should be possible to create similar for Windows or Mac.

cu, Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]