VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/GNUstep/System/Library/Makefiles/TestFramework/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/GNUstep/System/Library/Makefiles/TestFramework/Summary.sh
#!/bin/sh
#
# Script to generate summary/advice based on the data in $GSTESTSUM
#
# Authors of individual testsuites may supply their own implementation
# of Summary.sh to be used if someone runs their test framework.
#
# The script may examine the contents of $GSTESTSUM (containing totals of
# each kind of test result) or $GSTESTLOG (the full testrun log) to decide
# what sort of summary to present.
#
# The script may also use the value of the $GSTESTMODE variable to decide
# what it does.
#

if [ "$GSTESTMODE" = "clean" ]
then
  exit 0
fi

# Function for platforms where grep can't search for multiple patterns.
present()
{
  f=$1
  shift
  while test $# != 0
  do
    grep "$1" "$f" >/dev/null
    if [ $? = "0" ]
    then
      return 0
    fi
    shift
  done
  return 1
}

if test -r "$GSTESTSUM"
then 
  present "$GSTESTSUM" "Failed set$" "Failed sets$" "Failed test$" "Failed tests$" "Failed build$" "Failed builds$" "Failed file$" "Failed files$"
  if [ $? = 1 ]
  then
    echo "All OK!"

    if present "$GSTESTSUM" "Dashed hope$" "Dashed hopes$"
    then
      echo 
      echo "But we were hoping that even more tests might have passed if"
      echo "someone had added support for them to the package.  If you"
      echo "would like to help, please contact the package maintainer."
    fi

    if present "$GSTESTSUM" "Skipped set$" "Skipped sets$"
    then
      echo 
      echo "Even though no tests failed, we had to skip some testing"
      echo "due to lack of support on your system.  This might be because"
      echo "some required software library was just not available when the"
      echo "software was built (in which case you can install that library"
      echo "and rebuild, then re-run the tests), or the required functions"
      echo "may not be available on your operating system at all."
      echo "Please see $GSTESTLOG for more detail."
      echo "If you would like to contribute code to add the missing"
      echo "functionality, please contact the package maintainer."
    fi

  else
    if [ "$GSTESTMODE" = "failfast" ]
    then
      exit 0
    fi

    if present "$GSTESTSUM" "Failed build$" "Failed build$"
    then
      echo
      echo "Unfortunately we could not even compile all the test programs."
      echo "This means that the test could not be run properly, and you need"
      echo "to try to figure out why and fix it or ask for help."
    fi

    if present "$GSTESTSUM" "Failed file$" "Failed files$"
    then
      echo
      echo "Some testing was abandoned when a test program aborted.  This is"
      echo "generally a severe problem and may mean that the package is"
      echo "completely unusable.  You need to try to fix this and, if it is"
      echo "not due to some problem on your system, please help by submitting"
      echo "a patch (or at least a bug report) to the package maintainer."
    fi

    if present "$GSTESTSUM" "Failed set$" "Failed sets$"
    then
      echo
      echo "Some set of tests failed.  This could well mean that a large"
      echo "number of individual tests did not pass and that there are"
      echo "severe problems in the software."
      echo "Please submit a patch to fix the problem or send a bug report to"
      echo "the package maintainer."
    fi

    if present "$GSTESTSUM" "Failed test$" "Failed tests$"
    then
      echo
      echo "One or more tests failed.  None of them should have."
      echo "Please submit a patch to fix the problem or send a bug report to"
      echo "the package maintainer."
    fi

    echo "Please see $GSTESTLOG for more detail."
  fi
fi

VaKeR 2022