From a4a8afb203c9c4bdebc1b24a2e811ddaad6dad95 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Tue, 21 Mar 2017 01:43:24 +0100 Subject: Setup some test folders/repos in the VMs for easier testing --- test-vm-providers/setup-environment.sh | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 test-vm-providers/setup-environment.sh (limited to 'test-vm-providers/setup-environment.sh') diff --git a/test-vm-providers/setup-environment.sh b/test-vm-providers/setup-environment.sh new file mode 100755 index 00000000..0e8beb6d --- /dev/null +++ b/test-vm-providers/setup-environment.sh @@ -0,0 +1,44 @@ +#!/usr/bin/zsh + +OLDPWD="$(pwd)" +cd $HOME + +TESTFOLDER="${HOME}/p9k" +mkdir -p $TESTFOLDER +cd $TESTFOLDER + +# Make a deep test folder +mkdir -p deep-folder/1/12/123/1234/12345/123456/1234567/123455678/123456789 + +# Make a git repo +mkdir git-repo +cd git-repo +git config --global user.email "test@powerlevel9k.theme" +git config --global user.name "Testing Tester" +git init +echo "TEST" >> testfile +git add testfile +git commit -m "Initial commit" +cd $TESTFOLDER + +# Make a Mercurial repo +mkdir hg-repo +cd hg-repo +export HGUSER="Test bot " +hg init +echo "TEST" >> testfile +hg add testfile +hg ci -m "Initial commit" +cd $TESTFOLDER + +# Setup a SVN folder +svnadmin create ~/.svn-repo +mkdir svn-repo +svn checkout "file://${HOME}/.svn-repo" "svn-repo" +cd svn-repo +echo "TEST" >> testfile +svn add testfile +svn commit -m "Initial commit" +cd $TESTFOLDER + +cd $OLDPWD \ No newline at end of file -- cgit v1.2.3