mctest 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. # This is the testsuite for GNU Midnight Commander.
  3. # Maintainer doing the release must ensure that this testsuite passes.
  4. set -e
  5. echo "Checking the documentation"
  6. maint/doctest
  7. echo "Bootstraping from CVS"
  8. ./autogen.sh >test-autogen.out 2>test-autogen.err
  9. echo "Checking configure"
  10. bash -n configure 2>test-configure.err
  11. echo "Making everything in the source directory"
  12. make all >test0.out 2>test0.err
  13. echo "Checking the default configuration"
  14. make distcheck >test1.out 2>test1.err
  15. echo "Checking the configuration with maximal code coverage"
  16. make distcheck with_screen=mcslang enable_charset=yes with_samba=yes \
  17. with_tm_x_support=yes with_mcfs=yes with_included_gettext=yes \
  18. >test2.out 2>test2.err
  19. echo "Checking the configuration with minimal code coverage"
  20. make distcheck enable_largefile=no enable_nls=no with_vfs=no \
  21. with_gpm_mouse=no with_subshell=no with_edit=no with_ext2undel=no \
  22. with_screen=ncurses >test3.out 2>test3.err
  23. echo "Checking the configuration with experimental and rarely used options"
  24. make distcheck with_glib2=yes with_screen=mcslang with_termcap=yes \
  25. with_mmap=no with_subshell=optional >test4.out 2>test4.err
  26. if test -x /usr/bin/rpmbuild; then
  27. echo "Building RPM package"
  28. /usr/bin/rpmbuild -ta mc-*.tar.gz >test-rpm.out 2>test-rpm.err
  29. else
  30. echo "rpmbuild not found"
  31. fi