From faf128a55bf0eab694f731a0abc86065d37ca743 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 16 Mar 2011 13:36:42 +0000 Subject: [PATCH] add target to make simple git/hg/svn inputs --- tests/Makefile.am | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 764a25da..14cb0de3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,7 +16,7 @@ TESTS = \ clean : chmod -R a+w nix - rm -rf db.sqlite data nix + rm -rf db.sqlite data nix git-repo hg-repo svn-repo svn-checkout $(TESTS) : clean db.sqlite dirs @@ -29,3 +29,20 @@ dirs : mkdir -p nix 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) + +svn-repo: + svnadmin create svn-repo + svn co file://$(TESTDIR)/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