2002-10-07 10:38:58 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2002-11-05 21:12:48 +03:00
|
|
|
# This is the testsuite for GNU Midnight Commander.
|
2002-10-07 10:38:58 +04:00
|
|
|
# Maintainer doing the release must ensure that this testsuite passes.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2002-11-05 21:12:48 +03:00
|
|
|
echo "Checking the documentation"
|
|
|
|
maint/doctest
|
|
|
|
|
|
|
|
echo "Bootstraping from CVS"
|
2002-10-24 21:15:26 +04:00
|
|
|
./autogen.sh >test-autogen.out 2>test-autogen.err
|
2002-11-05 21:12:48 +03:00
|
|
|
|
|
|
|
echo "Checking configure"
|
|
|
|
bash -n configure 2>test-configure.err
|
|
|
|
|
|
|
|
echo "Making everything in the source directory"
|
2002-10-24 21:15:26 +04:00
|
|
|
make all >test0.out 2>test0.err
|
|
|
|
|
2002-11-05 21:12:48 +03:00
|
|
|
echo "Checking the default configuration"
|
2002-10-24 20:57:42 +04:00
|
|
|
make distcheck >test1.out 2>test1.err
|
2002-10-07 10:38:58 +04:00
|
|
|
|
2002-11-05 21:12:48 +03:00
|
|
|
echo "Checking the configuration with maximal code coverage"
|
2002-10-07 10:38:58 +04:00
|
|
|
make distcheck with_screen=mcslang enable_charset=yes with_samba=yes \
|
2002-10-24 20:57:42 +04:00
|
|
|
with_tm_x_support=yes with_mcfs=yes with_included_gettext=yes \
|
|
|
|
>test2.out 2>test2.err
|
2002-10-07 10:38:58 +04:00
|
|
|
|
2002-11-05 21:12:48 +03:00
|
|
|
echo "Checking the configuration with minimal code coverage"
|
2002-10-07 10:38:58 +04:00
|
|
|
make distcheck enable_largefile=no enable_nls=no with_vfs=no \
|
|
|
|
with_gpm_mouse=no with_subshell=no with_edit=no with_ext2undel=no \
|
2002-10-24 20:57:42 +04:00
|
|
|
with_screen=ncurses >test3.out 2>test3.err
|
2002-10-07 10:38:58 +04:00
|
|
|
|
2002-11-05 21:12:48 +03:00
|
|
|
echo "Checking the configuration with experimental and rarely used options"
|
2002-10-07 10:38:58 +04:00
|
|
|
make distcheck with_glib2=yes with_screen=mcslang with_termcap=yes \
|
2002-10-24 20:57:42 +04:00
|
|
|
with_mmap=no with_subshell=optional >test4.out 2>test4.err
|
|
|
|
|
|
|
|
if test -x /usr/bin/rpmbuild; then
|
2002-11-05 21:12:48 +03:00
|
|
|
echo "Building RPM package"
|
2002-10-24 20:57:42 +04:00
|
|
|
/usr/bin/rpmbuild -ta mc-*.tar.gz >test-rpm.out 2>test-rpm.err
|
|
|
|
else
|
|
|
|
echo "rpmbuild not found"
|
|
|
|
fi
|
2002-11-11 21:15:28 +03:00
|
|
|
|
|
|
|
echo "All done. No fatal errors. Please check test*.err files."
|