ncbi源码

源代码在线查看: datatool.sh.in

软件大小: 13605 K
上传用户: lovely19891019
关键词: ncbi 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#! /bin/sh				# $Id: datatool.sh.in,v 1000.0 2003/10/29 17:48:43 gouriano Exp $				#								base="${1:-@srcdir@/testdata}"				if test ! -d $base; then				    echo "Error -- test data dir not found: $base"				    exit 1				fi				if test -d "$1"; then				    shift				fi								d="$base/data"				r="$base/res"								tool="datatool"								asn="$base/all.asn"								do_test() {				    eval args=\""$1"\"				    shift				    file="$1"				    shift				    echo "$tool" -m "$asn" $args out "$@"				    cmd=`echo "$tool" -m "$asn" $args out "$@"`				    time $cmd				    if test "$?" != 0; then				        echo "datatool failed!"				        exit 1				    fi				    cmp out "$r/$file"				    if test "$?" != 0; then				        echo "wrong result!"				        exit 1				    fi				    rm out				}								for i in "-t Seq-entry -d $d/set.bin" "-v $d/set.ent" "-vx $d/set.xml"; do				    do_test "$i -e" set.bin "$@"				    do_test "$i -p" set.ent "$@"				    do_test "$i -px" set.xml "$@"				done								echo "Done!"				# 				#  ===========================================================================				#  PRODUCTION $Log: datatool.sh.in,v $				#  PRODUCTION Revision 1000.0  2003/10/29 17:48:43  gouriano				#  PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6				#  PRODUCTION				#  ===========================================================================				# 											

相关资源