[dcms-cvs] cvs commit: pcms/tests 00check_scripts.sh 01version.sh Makefile.in 00version.sh 01check_scripts.sh

Jonathan S. Shapiro shap@hudson.cs.jhu.edu
Thu, 6 Dec 2001 14:46:43 -0500


shap        01/12/06 14:46:42

  Modified:    tests    Makefile.in
  Added:       tests    00check_scripts.sh 01version.sh
  Removed:     tests    00version.sh 01check_scripts.sh
  Log:
  Rename the version test case

Revision  Changes    Path
1.16      +2 -2      pcms/tests/Makefile.in

Index: Makefile.in
===================================================================
RCS file: /users/bigdisk/cvs/pcms/tests/Makefile.in,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Makefile.in	2001/12/06 19:28:32	1.15
+++ Makefile.in	2001/12/06 19:46:42	1.16
@@ -1,8 +1,8 @@
 PCMSSERVER=../src/pcmsserver
 
 TESTS=\
-	00version.sh \
-	01check_scripts.sh \
+	00check_scripts.sh \
+	01version.sh \
 	02cre_repos01.sh \
 	03cre_repos02.sh \
 	04import.sh \



1.1                  pcms/tests/00check_scripts.sh

Index: 00check_scripts.sh
===================================================================
#!/bin/sh
#
# Test the import function. Import should leave the original tree
# entirely unchanged.

. testvars.sh

cp -r basetree input

pass=1

if has_changed "basetree" "input"
then
    pass=0
fi

cd input
touch newfile
cd ..

has_changed "basetree" "input"
is_changed=$?
if [ ${is_changed} != 0 ]
then
    exit 1
fi

exit 0



1.1                  pcms/tests/01version.sh

Index: 01version.sh
===================================================================
#!/bin/sh
#
# Test case: 00version.sh
#
# Author   : Vanderburgh
#
# Purpose  : This is a simple test that creates a repository
#   then executes the 'version' command on that repository.
#   Although trivial, it demonstrates successful connection
#   to the repository, which is critical for all 'net'
#   tests.
#
# Expected result: New repository is created and version command
#   returns successfully; If run via the 'make' command, user
#   will only see 'PASS: 00version.sh' or 'FAIL: 00version.sh'.  
#
. testvars.sh

. repossel.sh

$PCMS --server ${REPOS} create repository  > /dev/null 2>&1
status=$?
if [ ${status} != 0 ]
then
    exit 1
fi


$PCMS --server ${REPOS} version > /dev/null 2>&1
status=$?

if [ ${status} != 0 ]
then
    exit 1
fi

exit 0