Skip to content

Commit

Permalink
Automatically run "make check" after a successful "make build".
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Jul 4, 2005
1 parent bfeb861 commit e62ae83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions maint/mc-test
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ do_clean_workdir=no
do_configure=auto
do_make_clean=no
do_make_all=yes
do_make_check=yes
do_make_install=yes

### command line parsing ###
Expand All @@ -78,6 +79,7 @@ usage: `basename $0` [options ...] [var=value...] [<testname ...>]
-[dont-]configure run configure (default: ${do_configure})
-[dont-]clean make clean (default: ${do_make_clean})
-[dont-]build make all (default: ${do_make_all})
-[dont-]check make check (default: ${do_make_check})
-[dont-]install make install (default: ${do_make_install})
-fast only do what's necessary
Expand Down Expand Up @@ -117,6 +119,8 @@ while test $# -ne 0; do
-dont-clean) shift; do_make_clean=no;;
-build) shift; do_make_all=yes;;
-dont-build) shift; do_make_all=no;;
-check) shift; do_make_check=yes;;
-dont-check) shift; do_make_check=no;;
-install) shift; do_make_install=yes;;
-dont-install) shift; do_make_install=no;;

Expand Down Expand Up @@ -341,6 +345,9 @@ confbuild() {
confbuild_make "all"
if test ${failed} = yes; then return 0; fi

confbuild_make "check"
if test ${failed} = yes; then return 0; fi

confbuild_make "install"
if test ${failed} = yes; then return 0; fi
}
Expand Down

0 comments on commit e62ae83

Please sign in to comment.