Add tests for "git describe --long".
* Move test logic to scm-update.sh scripts. * Check for "git describe --long".
This commit is contained in:
@ -33,7 +33,7 @@ check_SCRIPTS = db.sqlite repos
|
||||
db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql
|
||||
$(TESTS_ENVIRONMENT) $(top_srcdir)/src/script/hydra-init
|
||||
|
||||
repos : dirs git-repo hg-repo svn-repo svn-checkout-repo bzr-repo bzr-checkout-repo
|
||||
repos : dirs
|
||||
|
||||
dirs :
|
||||
mkdir -p data
|
||||
@ -43,34 +43,3 @@ dirs :
|
||||
touch nix/etc/nix/nix.conf
|
||||
mkdir -p nix/store
|
||||
mkdir -p nix/var
|
||||
|
||||
git-repo :
|
||||
git init git-repo
|
||||
touch git-repo/git-file
|
||||
(cd git-repo; git add git-file ; git commit -m "add git file" git-file)
|
||||
|
||||
hg-repo :
|
||||
hg init hg-repo
|
||||
touch hg-repo/hg-file
|
||||
(cd hg-repo; hg add hg-file ; hg commit -m "add hg file" hg-file -u foobar)
|
||||
|
||||
svn-repo :
|
||||
svnadmin create svn-repo
|
||||
svn co file://$(abs_builddir)/svn-repo svn-checkout
|
||||
touch svn-checkout/svn-file
|
||||
svn add svn-checkout/svn-file
|
||||
svn commit -m "add svn file" svn-checkout/svn-file
|
||||
|
||||
bzr-repo :
|
||||
bzr init bzr-repo
|
||||
BZR_HOME=$(abs_builddir)/data bzr whoami "build <build@donotemail.com>" -d bzr-repo
|
||||
touch bzr-repo/bzr-file
|
||||
bzr add bzr-repo/bzr-file
|
||||
BZR_HOME=$(abs_builddir)/data bzr commit -m "add bzr-file" bzr-repo/bzr-file
|
||||
|
||||
svn-checkout-repo :
|
||||
ln -s svn-repo svn-checkout-repo
|
||||
|
||||
bzr-checkout-repo :
|
||||
ln -s bzr-repo bzr-checkout-repo
|
||||
|
||||
|
Reference in New Issue
Block a user