Replace hacky test-functions.sh with cleaner stuff from nbdkit. Unfortunately some parts of the common/ submodule depend on $TEST_FUNCTIONS too so I had to leave that variable in subdir-rules.mk for the time being.
This directory contains the scripts for tab-completing commands in bash. Note these new-style demand-loaded scripts require 'bash-completion' >= 1.99. Tip: To test the bash completions without having to install them, simply start a new shell and 'source ./virt-foo'.