mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
are not against the grain. Wrap this script together with 'check_makefile_consistency' into 'post_regtest_checks' and invoke that from the toplevel Makefile. So we can easily add new checkers in the future. Add a new make target 'post-regtest-checks' to just run those checks and nothing else. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13570
39 lines
941 B
Bash
Executable File
39 lines
941 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#-------------------------------------------------------------------
|
|
#
|
|
# This script is invoked after regression testing has finished
|
|
# It performs various consistency checks.
|
|
#
|
|
# Arguments passed to this script are (from left to right)
|
|
# - absolute path name of valgrind's root directory
|
|
# - list of directories being passed to check_makefile_consistency
|
|
#
|
|
#-------------------------------------------------------------------
|
|
|
|
# echo "$@"
|
|
|
|
abs_top_srcdir="$1"
|
|
test_dir="$abs_top_srcdir/tests"
|
|
shift
|
|
|
|
errors=0
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
echo "...checking makefile consistency"
|
|
$test_dir/check_makefile_consistency "$@"
|
|
if [ $? != 0 ]; then
|
|
errors=1
|
|
fi
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
echo "...checking header files and include directives"
|
|
$test_dir/check_headers_and_includes "$abs_top_srcdir"
|
|
if [ $? != 0 ]; then
|
|
errors=1
|
|
fi
|
|
|
|
exit $errors
|