Update of /cvsroot/serverfilters/script
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14442
Modified Files:
test.sh
Log Message:
made test.sh not specific to author
Index: test.sh
===================================================================
RCS file: /cvsroot/serverfilters/script/test.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test.sh 22 Feb 2004 21:18:01 -0000 1.4
--- test.sh 29 Feb 2004 22:55:55 -0000 1.5
***************
*** 1,4 ****
! (echo tony; echo somepassword) | ./filtercmd getrc filter > filter; echo "RESULT:" $?
! echo '# hello world ' >> filter
! (echo tony; echo somepassword; cat filter) | ./filtercmd putrc filter; echo "RESULT:" $?
! (echo to...@so...; echo somepassword) | ./filtercmd getrc filter /tmp/test; echo "RESULT:" $?
--- 1,21 ----
! #!/bin/sh
!
! # need a valid username/password for testing
! if [ ! -s test_creds ]; then
! echo Enter a valid IMAP username and password on separate lines:
! head -2 > test_creds
! fi
!
! # to run the command as the PHP files will, need to change to a different
! # directory first. If SERVERSIDEFILTERHOME is changed, this must be changed
! # also.
! RUNFROM=../../../src
! SCRIPTDIR=../plugins/serversidefilter/script
!
! cd $RUNFROM
! cat $SCRIPTDIR/test_creds | $SCRIPTDIR/filtercmd getrc filter > $SCRIPTDIR/filter; echo "RESULT:" $?
! echo '# filtercmd testing ' >> $SCRIPTDIR/filter
! cat $SCRIPTDIR/test_creds | $SCRIPTDIR/filtercmd putrc filter; echo "RESULT:" $?
! cat $SCRIPTDIR/test_creds | $SCRIPTDIR/filtercmd getrc filter; echo "RESULT:" $?
!
! echo If you do not need to perform additional tests, remove the file 'test_creds'
|