⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chk_all

📁 一个不错
💻
字号:
#!/bin/sh## This file is supposed to run in directory where all the test data files exist.## test_socket may need network card configured. If not, unmark TEST_INET##NAME=chk_replyif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_retif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_hstrif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_strif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_atdestroyif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_numif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_arrayif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_csegif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_segif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_mutexif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_timespecif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_condif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_onceif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_dateif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_filestatif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_fhif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_direntif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_regfileif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_fifofileif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_sockaddrlocalif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_sockaddrinet4if [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_sockaddrinet6if [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_sockfileif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_termiosif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_terminalif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_dirfileif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_lnkfileif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_chrfileif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_mathif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_fdsetif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_polyif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_rdbufif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_iconvif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_cinif [ -x $NAME ]; then   ./$NAME < testfile.regf.LF2   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fi   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_coutif [ -x $NAME ]; then   echo "test data redirect to regular file tmp.tmp.tmp"   ./$NAME > tmp.tmp.tmp   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fi   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_cerrif [ -x $NAME ]; then   echo "test data redirect to regular file tmp.tmp.tmp"   ./$NAME 2> tmp.tmp.tmp   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fi   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_utyif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_thread1if [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1fiNAME=chk_athreadif [ -x $NAME ]; then   ./$NAME   if [ $? -ne 0 ]; then     echo "Test Failed: $NAME"     exit -1   fielse  echo "File not found: $NAME"  exit -1firm tmp.tmp.tmpecho "--- All check files reported OK (for the author). Check messages  ---"exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -