check_list.sh
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- #! /bin/sh
- # $Id: check_list.sh,v 1000.3 2004/02/12 21:52:38 gouriano Exp $
- # Author: Vladimir Ivanov, NCBI
- #
- ###########################################################################
- #
- # Obtaining a check list for NCBI C++ Toolkit tree
- #
- # Usage:
- # check_list.sh <target_dir> <tmp_dir> <date_time> <cvs_tree>
- #
- # target_dir - directory to copy list of tests -- absolute path
- # (default is current).
- # tmp_dir - base name of the temporary directory for cvs checkout
- # (default is current).
- # date_time - get check list on specified date/time
- # (default is current).
- # Note that some tests can be already deleted in the CVS.
- # cvs_tree - --development or --production.
- #
- # If any parameter is skipped that will be used default value for it.
- #
- ###########################################################################
- # Parameters
- target_dir=${1:-`pwd`}
- tmp_dir=${2:-`pwd`}
- date_time=${3:+"--date=$3"}
- cvs_tree=${4:-'--development'}
- cvs_core=${NCBI:-/netopt/ncbi_tools}/c++.metastable/scripts/cvs_core.sh
- src_dir="$tmp_dir/c++.checklist"
- conf_name="TEST_CONF"
- # Get C++ tree from CVS for Unix platform
- rm -rf "$src_dir" > /dev/null
- flags="--without-gui --without-objects --without-cvs --unix"
- if [ -n "$date_time" ]; then
- $cvs_core "$src_dir" $flags "$date_time" $cvs_tree || exit 1
- else
- $cvs_core "$src_dir" $flags $cvs_tree || exit 1
- fi
- # Make any configururation
- cd "$src_dir"
- ./configure --without-internal --with-build-root=$conf_name || exit 2
- # Make check list
- cd $conf_name/build || exit 3
- make check_r RUN_CHECK=N CHECK_USE_IGNORE_LIST=N
- # Copy check list to target dir
- cp check.sh.list "$target_dir" || exit 4
- # Cleanup
- cd ../../..
- rm -rf "$src_dir" > /dev/null
- exit 0
- #
- # ===========================================================================
- # PRODUCTION $Log: check_list.sh,v $
- # PRODUCTION Revision 1000.3 2004/02/12 21:52:38 gouriano
- # PRODUCTION PRODUCTION: UPGRADED [CORE_001] Dev-tree R1.7
- # PRODUCTION
- # ===========================================================================
- #