Blob Blame History Raw
#!/bin/bash

# Author: Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>

t_Log "Running $0 - testing a local subversion repository creation operation"

temp_dir="/tmp/svnrepo"
temp_repo="tmprepo"
rm -rf $temp_dir/$temp_repo
mkdir -p $temp_dir
cd $temp_dir
svnadmin create $temp_repo
  
#verify repo using svnadmin
if [ "svnadmin verify $temp_dir/$temp_repo | grep 'Verified revision 0'" ] 
then
  ret_val=0 
else
  ret_val=1
fi
t_CheckExitStatus $ret_val