1 Commits

Author SHA1 Message Date
Daniel Aarno
3adc1d1ff7 Pre-commit check for including test files in Makefile
Script to be called from pre-commit hook to make sure any new test
files were added to Makefile.am

Example pre-commit hook (in .git/hooks):

function pyhook {
    CMD="./scripts/$1.py"
    $CMD
    local status=$?
    if [ $status -ne 0 ]; then
        echo
        echo "Pre-commit failed"
        exit 1
    fi
}

pyhook check_tests_enabled
2018-01-07 15:35:09 +00:00