maint: update sample test template
authorEric Blake <eblake@redhat.com>
Fri, 1 Oct 2010 15:38:50 +0000 (09:38 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 1 Oct 2010 16:20:39 +0000 (10:20 -0600)
* tests/sample-test: Recommend modern idiom.

tests/sample-test

index 85a61cf..85b779f 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  FIXME --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
 # FIXME: skip_if_root_
 # FIXME: require_root_