Another small fix. :-(
[midnight-commander.git] / maint / mctest
blob93ea3d7ccc7898683c0efbd8effc0af2f544689b
1 #!/bin/sh
3 # This is the testsuite for GNU Midnight Commander.
4 # Maintainer doing the release must ensure that this testsuite passes.
6 set -e
8 # Specify which warnings we want to see.
9 # Don't add options that produce massive warnings.
10 # Add -Wstrict-prototypes after main.h is fixed (always use cpanel).
11 # Maybe add -W if a better way to initialize quick dialogs is found.
12 export CFLAGS="-O2 -Wall -Wno-unused-parameter -Wno-sign-compare \
13 -Wmissing-declarations -Wmissing-prototypes -Wbad-function-cast \
14 -Wcast-align -Wpointer-arith -Wredundant-decls -Wundef -Wfloat-equal"
16 echo "Checking the documentation"
17 maint/doctest
19 echo "Bootstraping from CVS"
20 ./autogen.sh >test-autogen.out 2>test-autogen.err
22 echo "Checking configure"
23 bash -n configure 2>test-configure.err
25 echo "Making everything in the source directory"
26 make all >test0.out 2>test0.err
28 echo "Checking the default configuration"
29 make distcheck >test1.out 2>test1.err
31 echo "Checking the configuration with maximal code coverage"
32 make distcheck with_screen=mcslang enable_charset=yes with_samba=yes \
33 with_mcfs=yes with_included_gettext=yes >test2.out 2>test2.err
35 echo "Checking the configuration with minimal code coverage"
36 make distcheck enable_largefile=no enable_nls=no with_vfs=no \
37 with_gpm_mouse=no with_subshell=no with_edit=no with_ext2undel=no \
38 with_screen=ncurses with_x=no >test3.out 2>test3.err
40 echo "Checking the configuration with minimal code coverage + editor"
41 make distcheck enable_largefile=no enable_nls=no with_vfs=no \
42 with_gpm_mouse=no with_subshell=no with_ext2undel=no \
43 with_screen=ncurses >test4.out 2>test4.err
45 echo "Checking the configuration with experimental and rarely used options"
46 make distcheck with_screen=mcslang with_termcap=yes \
47 with_mmap=no with_subshell=optional >test5.out 2>test5.err
49 if test -x /usr/bin/rpmbuild; then
50 echo "Building RPM package"
51 /usr/bin/rpmbuild -ta mc-*.tar.gz >test-rpm.out 2>test-rpm.err
52 else
53 echo "rpmbuild not found"
56 echo "All done. No fatal errors. Please check test*.err files."