[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

First cut at testing and validation



Erik, here is the script I promised you. Let me know if it is missing
anything that we talked about for v 0.1

#!/bin/sh
# Program: validate
# Options: none
#
# Copyright 1998 Dale Scheetz all rights reserved
#
# This program and all its ancillary components may be copied and used
# freely by anyone with only the following restriction. Modification of
# this software, and its components is strictly forbidden.
#
# Although this material is expected to be used in the Free Software
# community, where such modification is routinely allowed, such practice
# can not be allowed when standards verification is the intention.
#
# The following tests are divided into five parts.
#
#   1. Library location and so name verification
#   2. Package manager wrapper function verification
#   3. Standard program location and naming convention verification
#   4. Standard config file location and naming convetion verification
#   5. Library functionality verification
#
SUCCESS=TRUE
# Check library so names and locations

while read name
do 
  if ! [ -L $name ]
  then
    SUCCESS=FALSE
    echo "Failed to find $name"
  fi 
done < lcs-sonames

# Check for package wrapper functions

while read name
do 
  if ! [ -x $name ]
  then
    SUCCESS=FALSE
    echo "Failed to find $name"
  fi 
done < lcs-pkgnames

# Check standard program names and locations

while read name
do 
  if ! [ -x $name ]
  then
    SUCCESS=FALSE
    echo "Failed to find $name"
  fi 
done < lcs-pgmnames

# Check standard config file names and locations

while read name
do 
  if ! [ -e $name ]
  then
    SUCCESS=FALSE
    echo "Failed to find $name"
  fi 
done < lcs-cnfnames

# Test library functionality

if [ -x ./lcs-libtest ]
then
  ./lcs-libtest
  if ! [ ? == 0 ]
  then
    SUCCESS=FALSE
  fi
fi

# Declare test a success or failure

if [ "$SUCCESS" == "TRUE" ]
then
   echo This system is LCS compliant. Congratulations!
else
   echo This system is not LCS compliant. See error messages above.
fi

Waiting is,

Dwarf
--
_-_-_-_-_-   Author of "The Debian Linux User's Guide"  _-_-_-_-_-_-

aka   Dale Scheetz                   Phone:   1 (850) 656-9769
      Flexible Software              11000 McCrackin Road
      e-mail:  dwarf@polaris.net     Tallahassee, FL  32308

_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-


Reply to: