Blame tests/p_subversion/15-test_subversion.sh

Madhurranjan Mohaan 338bb8
#!/bin/bash
Madhurranjan Mohaan 338bb8
Madhurranjan Mohaan 338bb8
# Author: Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>
Madhurranjan Mohaan 338bb8
Madhurranjan Mohaan 338bb8
t_Log "Running $0 - testing a local subversion repository creation operation"
Madhurranjan Mohaan 338bb8
Madhurranjan Mohaan 0a58f5
temp_dir="/tmp/svnrepo"
Madhurranjan Mohaan 0a58f5
temp_repo="tmprepo"
Madhurranjan Mohaan 0a58f5
rm -rf $temp_dir/$temp_repo
Madhurranjan Mohaan 0a58f5
mkdir -p $temp_dir
Madhurranjan Mohaan 0a58f5
cd $temp_dir
Madhurranjan Mohaan 0a58f5
svnadmin create $temp_repo
Madhurranjan Mohaan 338bb8
  
Madhurranjan Mohaan 338bb8
#verify repo using svnadmin
Madhurranjan Mohaan 0a58f5
if [ "svnadmin verify $temp_dir/$temp_repo | grep 'Verified revision 0'" ] 
Madhurranjan Mohaan 0a58f5
then
Madhurranjan Mohaan 0a58f5
  ret_val=0 
Madhurranjan Mohaan 338bb8
else
Madhurranjan Mohaan 0a58f5
  ret_val=1
Madhurranjan Mohaan 338bb8
fi
Madhurranjan Mohaan 338bb8
t_CheckExitStatus $ret_val