Skip to content

Commit

Permalink
Add command line flag for make check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazaros Koromilas authored and akritid committed Jul 18, 2018
1 parent 95f8d55 commit 5cbea2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ machine.
Other command line options include:

* `-c` to run `make clean` in the build dir
* `-t` to run `make check` in the build dir
* `-r` to completely remove the build dir
* `-j` to control the -j argument of make
* `-o` is a shortcut to `-e optimized`
Expand Down
8 changes: 8 additions & 0 deletions rbuild
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ while getopts "he:scAaB:brtdD:SRoj:i:x" arg; do
echo "Usage:"
echo -e "-s\t\tStage source code from the current directory to BUILD_HOST"
echo -e "-c\t\tRun 'make clean' on BUILD_HOST"
echo -e "-t\t\tRun 'make check' on BUILD_HOST"
echo -e "-A\t\tRun 'autoreconf --install' on BUILD_HOST"
echo -e "-a\t\tRun 'configure' on BUILD_HOST"
echo -e "-B TARGET\tRun 'make TARGET' on BUILD_HOST"
Expand Down Expand Up @@ -196,6 +197,9 @@ while getopts "he:scAaB:brtdD:SRoj:i:x" arg; do
c)
do_clean=1
;;
t)
do_check=1
;;
A)
do_autoreconf=1
;;
Expand Down Expand Up @@ -285,6 +289,10 @@ if [ $build_target ]; then
build $build_target || exit 1
fi

if [ $do_check ]; then
check || exit 1
fi

if [ $do_deploy ]; then
deploy || exit 1
fi
Expand Down

0 comments on commit 5cbea2b

Please sign in to comment.