test_ncbi_system.sh
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:1k
- #! /bin/sh
- # $Id: test_ncbi_system.sh,v 1000.2 2004/04/21 14:35:21 gouriano Exp $
- $CHECK_EXEC test_ncbi_system general
- test_general=$?
- echo "exit_code(General-test) = $test_general"
- $CHECK_EXEC test_ncbi_system cpu
- test_cpu=$?
- echo "exit_code(CPU-test) = $test_cpu"
- $CHECK_EXEC test_ncbi_system mem
- test_mem=$?
- echo "exit_code(MEM-test) = $test_mem"
- test $test_general -eq 0 || exit 1
- case "`uname -s`" in
- SunOS )
- # exit code 158 -- signal 30 (CPU time exceeded)
- test $test_cpu -eq 255 -o $test_cpu -eq 158 || exit 1
- test $test_mem -eq 0 -o $test_mem -eq 255 || exit 1
- ;;
- Linux | FreeBSD )
- test $test_cpu -eq 137 || exit 1
- test $test_mem -eq 0 -o $test_mem -eq 255 || exit 1
- ;;
- Darwin )
- test $test_cpu -eq 255 || exit 1
- test $test_mem -eq 0 || exit 1
- ;;
- *CYGWIN* )
- test $test_cpu -eq 3 -o $test_mem -eq 3 || exit 1
- ;;
- * )
- test $test_mem -eq 255 || exit 1
- test $test_cpu -eq 255 -o $test_cpu -eq 158 || exit 1
- ;;
- esac
- exit 0
- #
- # ===========================================================================
- # PRODUCTION $Log: test_ncbi_system.sh,v $
- # PRODUCTION Revision 1000.2 2004/04/21 14:35:21 gouriano
- # PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R6.18
- # PRODUCTION
- # ===========================================================================
- #