Shorten test case names

Green, Paul Paul.Green at stratus.com
Mon Apr 21 15:56:05 GMT 2003


The following patch file contains (1) a patch to
samba/testsuite/build_farm/basicsmb.fns to use shorter file names, and (2) a
set of mv (rename) commands to actually shorten the names in the CVS
repository.

This file will need to be split into two separate shell scripts, one to do
the patch, and one to hack the CVS responsitory.

I am shortening the names so that they are 30-chars or less. This will let
me deal with these files on Stratus VOS, which has a 32-character file name
limit. The extra two characters are for the backup suffix used by patch -b.

I have tested this locally. I can't easily test the mv commands here (I
actually used patch to create new files with the proper contents, and that
worked fine).  Due to security concerns, someone with direct access to the
CVS archives will need to make these changes; having remote cvs access alone
is not good enough.

 <<pg.samba.rn.patch.txt>> 
Thanks
PG
--
Stratus Technologies
111 Powdermill Road
Maynard, MA 01754-3409 U.S.A.

Paul Green
Senior Technical Consultant
TEL +1 (978) 461-7557
FAX +1 (978) 461-3610

-------------- next part --------------
diff -urpN old/samba/testsuite/build_farm/basicsmb.fns new/samba/testsuite/build_farm/basicsmb.fns
--- old/samba/testsuite/build_farm/basicsmb.fns	Fri Apr 11 09:48:06 2003
+++ new/samba/testsuite/build_farm/basicsmb.fns	Fri Apr 11 09:49:02 2003
@@ -22,7 +22,7 @@
 # says it's not done consistently.
 
 template_setup() {
-	cat $1.template | \
+	cat $1.t | \
               sed "s|PREFIX|$prefix|g" | \
 	      sed "s|BUILD_FARM|$test_root|g" | \
 	      sed "s|WHOAMI|$whoami|g" | \
@@ -55,10 +55,10 @@ test_smb_conf_setup() {
     template_smb_conf_setup 
     template_smb_conf_setup .hostsequiv
     template_smb_conf_setup .validusers
-    template_smb_conf_setup .invalidusers
+    template_smb_conf_setup .invalusers
     template_smb_conf_setup .preexec
-    template_smb_conf_setup .preexec_close
-    template_smb_conf_setup .preexec_cl_fail
+    template_smb_conf_setup .preexec_cl
+    template_smb_conf_setup .preexec_cf
 
     template_setup preexec lib/preexec
 
XXXXXXX
XXXXXXX -- check following directory pathname
XXXXXXX

cd /data/cvs/samba/testsuite/build_farm
mv basicsmb.smb.conf.hostsequiv.template,v      basicsmb.smb.conf.hostsequiv.t,v
mv basicsmb.smb.conf.invalidusers.template,v    basicsmb.smb.conf.invalusers.t,v
mv basicsmb.smb.conf.preexec.template,v         basicsmb.smb.conf.preexec.t,v
mv basicsmb.smb.conf.preexec_close.template,v   basicsmb.smb.conf.preexec_cl.t,v
mv basicsmb.smb.conf.preexec_cl_fail.template,v basicsmb.smb.conf.preexec_cf.t,v
mv basicsmb.smb.conf.template,v                 basicsmb.smb.conf.t,v
mv basicsmb.smb.conf.validusers,template,v      basicsmb.smb.conf.validusers.t,v


More information about the samba-technical mailing list