[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-cvs
Subject:    svn commit: r17564 - branches/ebcdic/trunk/build/os400
From:       pburba () tigris ! org
Date:       2005-11-30 13:28:46
Message-ID: 200511301402.jAUE2Tw10868 () morbius ! ch ! collab ! net
[Download RAW message or body]

Author: pburba
Date: Wed Nov 30 08:02:25 2005
New Revision: 17564

Added:
   branches/ebcdic/trunk/build/os400/
   branches/ebcdic/trunk/build/os400/make_links
   branches/ebcdic/trunk/build/os400/make_python_ebcdic
   branches/ebcdic/trunk/build/os400/make_python_utf8

Log:
New utility scripts that facilitate setup of Python tests on the IBM iSeries.

* build/os400: New dir.
* build/os400/make_links: New script.
* build/os400/make_python_ebcdic: New script.
* build/os400/make_python_utf8: New script.

Added: branches/ebcdic/trunk/build/os400/make_links
Url: http://svn.collab.net/viewcvs/svn/branches/ebcdic/trunk/build/os400/make_links?rev=17564
 ==============================================================================
--- (empty file)
+++ branches/ebcdic/trunk/build/os400/make_links	Wed Nov 30 08:02:25 2005
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# QSH utility script for creating the symbolic links required to run the
+# subversion test suite on the iSeries.
+#
+# usage: make_links pgm_lib svn_root_dir
+#        Where pgm_lib is the ifs path to the library containing the
+#        subversion programs to be tested and svn_root_dir is the root
+#        directory of the subversion soruce code tree.
+
+PGMLIB=$1
+ROOTDIR=$2
+
+mklnk()
+{
+  PGM=$1
+  DEST=$2
+  if attr $PGM > /dev/null
+    then
+      if ln -s -f $PGM $DEST > /dev/null
+        then
+          echo Created link $DEST "-->" $PGM
+      else          
+        echo Error creating link for $PGM in $DEST
+      fi
+  else
+    echo Can\'t find program $PGM 
+  fi
+}
+
+mklnk $PGMLIB/SVN.PGM        $ROOTDIR/svn
+mklnk $PGMLIB/SVNADMIN.PGM   $ROOTDIR/svnadmin
+mklnk $PGMLIB/SVNVERSION.PGM $ROOTDIR/svnversion
+mklnk $PGMLIB/SVNLOOK.PGM    $ROOTDIR/svnlook
+mklnk $PGMLIB/TEST_RAND.PGM  $ROOTDIR/subversion/tests/libsvn_delta/TEST_RAND
+mklnk $PGMLIB/TEST_DIFF3.PGM $ROOTDIR/subversion/tests/libsvn_diff/TEST_DIFF3
+mklnk $PGMLIB/TEST_LOCKS.PGM $ROOTDIR/subversion/tests/libsvn_fs/TEST_LOCKS
+mklnk $PGMLIB/TEST_RALOC.PGM $ROOTDIR/subversion/tests/libsvn_ra_local/TEST_RALOC
+mklnk $PGMLIB/TEST_REPOS.PGM $ROOTDIR/subversion/tests/libsvn_repos/TEST_REPOS
+mklnk $PGMLIB/TEST_COMP.PGM  $ROOTDIR/subversion/tests/libsvn_subr/TEST_COMP
+mklnk $PGMLIB/TEST_CONF.PGM  $ROOTDIR/subversion/tests/libsvn_subr/TEST_CONF
+mklnk $PGMLIB/TEST_HASH.PGM  $ROOTDIR/subversion/tests/libsvn_subr/TEST_HASH
+mklnk $PGMLIB/TEST_OPT.PGM   $ROOTDIR/subversion/tests/libsvn_subr/TEST_OPT
+mklnk $PGMLIB/TEST_PATH.PGM  $ROOTDIR/subversion/tests/libsvn_subr/TEST_PATH
+mklnk $PGMLIB/TEST_STR.PGM   $ROOTDIR/subversion/tests/libsvn_subr/TEST_STR
+mklnk $PGMLIB/TEST_STRM.PGM  $ROOTDIR/subversion/tests/libsvn_subr/TEST_STRM
+mklnk $PGMLIB/TEST_TARGT.PGM $ROOTDIR/subversion/tests/libsvn_subr/TEST_TARGT
+mklnk $PGMLIB/TEST_TIME.PGM  $ROOTDIR/subversion/tests/libsvn_subr/TEST_TIME
+mklnk $PGMLIB/TEST_UTF.PGM   $ROOTDIR/subversion/tests/libsvn_subr/TEST_UTF
+mklnk $PGMLIB/TEST_XLATE.PGM $ROOTDIR/subversion/tests/libsvn_wc/TEST_XLATE
\ No newline at end of file

Added: branches/ebcdic/trunk/build/os400/make_python_ebcdic
Url: http://svn.collab.net/viewcvs/svn/branches/ebcdic/trunk/build/os400/make_python_ebcdic?rev=17564
 ==============================================================================
--- (empty file)
+++ branches/ebcdic/trunk/build/os400/make_python_ebcdic	Wed Nov 30 08:02:25 2005
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# QSH utility script for converting all python test scripts from utf-8 to
+# ebcidc.
+#
+# usage: make_python_ebcdic svn_root_dir
+#        Where svn_root_dir is the root directory of the subversion source
+#        code tree.
+
+ROOTDIR=$1
+
+cd $ROOTDIR
+
+QSH_REDIRECTION_TEXTDATA=Y
+
+convert_file()
+{
+  TARGET=$1
+  if attr $TARGET CCSID > /dev/null
+    then
+      if attr $TARGET CCSID | grep "37" > /dev/null
+        then echo "Python script '$ROOTDIR/$TARGET' already encoded in ebcdic."      \
 +      else
+        echo "Converting script '$ROOTDIR/$TARGET' from utf-8 to ebcdic."
+        cat $TARGET > $TARGET.37.py
+        rm -f $TARGET
+        mv $TARGET.37.py $TARGET
+      fi
+    else
+      echo "Expected Python script '$ROOTDIR/$TARGET' not found!"
+  fi
+}
+
+convert_file as400test.py
+convert_file build/run_tests.py
+convert_file subversion/tests/clients/cmdline/svntest/__init__.py
+convert_file subversion/tests/clients/cmdline/svntest/actions.py
+convert_file subversion/tests/clients/cmdline/svntest/entry.py
+convert_file subversion/tests/clients/cmdline/svntest/main.py
+convert_file subversion/tests/clients/cmdline/svntest/testcase.py
+convert_file subversion/tests/clients/cmdline/svntest/tree.py
+convert_file subversion/tests/clients/cmdline/svntest/wc.py
+convert_file subversion/tests/clients/cmdline/autoprop_tests.py 
+convert_file subversion/tests/clients/cmdline/basic_tests.py    
+convert_file subversion/tests/clients/cmdline/blame_tests.py    
+convert_file subversion/tests/clients/cmdline/cat_tests.py      
+convert_file subversion/tests/clients/cmdline/commit_tests.py   
+convert_file subversion/tests/clients/cmdline/copy_tests.py     
+convert_file subversion/tests/clients/cmdline/diff_tests.py     
+convert_file subversion/tests/clients/cmdline/ebcdic.py         
+convert_file subversion/tests/clients/cmdline/export_tests.py   
+convert_file subversion/tests/clients/cmdline/externals_tests.py
+convert_file subversion/tests/clients/cmdline/getopt_tests.py   
+convert_file subversion/tests/clients/cmdline/history_tests.py  
+convert_file subversion/tests/clients/cmdline/import_tests.py    
+convert_file subversion/tests/clients/cmdline/lock_tests.py      
+convert_file subversion/tests/clients/cmdline/log_tests.py       
+convert_file subversion/tests/clients/cmdline/merge_tests.py     
+convert_file subversion/tests/clients/cmdline/prop_tests.py      
+convert_file subversion/tests/clients/cmdline/revert_tests.py    
+convert_file subversion/tests/clients/cmdline/schedule_tests.py  
+convert_file subversion/tests/clients/cmdline/special_tests.py   
+convert_file subversion/tests/clients/cmdline/stat_tests.py      
+convert_file subversion/tests/clients/cmdline/svnadmin_tests.py  
+convert_file subversion/tests/clients/cmdline/svnlook_tests.py   
+convert_file subversion/tests/clients/cmdline/svnversion_tests.py
+convert_file subversion/tests/clients/cmdline/switch_tests.py    
+convert_file subversion/tests/clients/cmdline/trans_tests.py     
+convert_file subversion/tests/clients/cmdline/update_tests.py    
+convert_file subversion/tests/clients/cmdline/utf8_tests.py   
+convert_file subversion/tests/libsvn_subr/target-test.py
+
+exit 0
\ No newline at end of file

Added: branches/ebcdic/trunk/build/os400/make_python_utf8
Url: http://svn.collab.net/viewcvs/svn/branches/ebcdic/trunk/build/os400/make_python_utf8?rev=17564
 ==============================================================================
--- (empty file)
+++ branches/ebcdic/trunk/build/os400/make_python_utf8	Wed Nov 30 08:02:25 2005
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+
+# QSH utility script for converting all python test scripts from ebcdic to
+# utf-8.
+#
+# usage: make_python_utf8 svn_root_dir
+#        Where svn_root_dir is the root directory of the subversion source
+#        code tree. 
+
+ROOTDIR=$1
+
+cd $ROOTDIR
+
+QSH_REDIRECTION_TEXTDATA=Y
+
+convert_file()
+{
+  TARGET=$1
+  if attr $TARGET CCSID > /dev/null
+    then
+      if attr $TARGET CCSID | grep "37" > /dev/null
+        then
+          echo "Converting script '$ROOTDIR/$TARGET' from ebcdic to utf-8."
+          touch -C 1208 $TARGET.1208.py
+          cat $TARGET > $TARGET.1208.py
+          rm -f $TARGET
+          mv $TARGET.1208.py $TARGET
+      else
+        echo "Python script '$ROOTDIR/$TARGET' already encoded in utf-8."
+      fi
+    else
+      echo "Expected Python script '$ROOTDIR/$TARGET' not found!"
+  fi
+}
+
+convert_file as400test.py
+convert_file build/run_tests.py
+convert_file subversion/tests/clients/cmdline/svntest/__init__.py
+convert_file subversion/tests/clients/cmdline/svntest/actions.py
+convert_file subversion/tests/clients/cmdline/svntest/entry.py
+convert_file subversion/tests/clients/cmdline/svntest/main.py
+convert_file subversion/tests/clients/cmdline/svntest/testcase.py
+convert_file subversion/tests/clients/cmdline/svntest/tree.py
+convert_file subversion/tests/clients/cmdline/svntest/wc.py
+convert_file subversion/tests/clients/cmdline/autoprop_tests.py 
+convert_file subversion/tests/clients/cmdline/basic_tests.py    
+convert_file subversion/tests/clients/cmdline/blame_tests.py    
+convert_file subversion/tests/clients/cmdline/cat_tests.py      
+convert_file subversion/tests/clients/cmdline/commit_tests.py   
+convert_file subversion/tests/clients/cmdline/copy_tests.py     
+convert_file subversion/tests/clients/cmdline/diff_tests.py     
+convert_file subversion/tests/clients/cmdline/ebcdic.py         
+convert_file subversion/tests/clients/cmdline/export_tests.py   
+convert_file subversion/tests/clients/cmdline/externals_tests.py
+convert_file subversion/tests/clients/cmdline/getopt_tests.py   
+convert_file subversion/tests/clients/cmdline/history_tests.py  
+convert_file subversion/tests/clients/cmdline/import_tests.py    
+convert_file subversion/tests/clients/cmdline/lock_tests.py      
+convert_file subversion/tests/clients/cmdline/log_tests.py       
+convert_file subversion/tests/clients/cmdline/merge_tests.py     
+convert_file subversion/tests/clients/cmdline/prop_tests.py      
+convert_file subversion/tests/clients/cmdline/revert_tests.py    
+convert_file subversion/tests/clients/cmdline/schedule_tests.py  
+convert_file subversion/tests/clients/cmdline/special_tests.py   
+convert_file subversion/tests/clients/cmdline/stat_tests.py      
+convert_file subversion/tests/clients/cmdline/svnadmin_tests.py  
+convert_file subversion/tests/clients/cmdline/svnlook_tests.py   
+convert_file subversion/tests/clients/cmdline/svnversion_tests.py
+convert_file subversion/tests/clients/cmdline/switch_tests.py    
+convert_file subversion/tests/clients/cmdline/trans_tests.py     
+convert_file subversion/tests/clients/cmdline/update_tests.py    
+convert_file subversion/tests/clients/cmdline/utf8_tests.py   
+convert_file subversion/tests/libsvn_subr/target-test.py
+
+exit 0
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: svn-unsubscribe@subversion.tigris.org
For additional commands, e-mail: svn-help@subversion.tigris.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic