DH_TESTDIR(1)                     Debhelper                    DH_TESTDIR(1)

NAME         top

       dh_testdir - test directory before building Debian package

SYNOPSIS         top

       dh_testdir [debhelper options] [file ...]

DESCRIPTION         top

       dh_testdir tries to make sure that you are in the correct directory
       when building a Debian package. It makes sure that the file
       debian/control exists, as well as any other files you specify. If
       not, it exits with an error.

OPTIONS         top

       file ...
           Test for the existence of these files too.

SEE ALSO         top


       This program is a part of debhelper.

AUTHOR         top

       Joey Hess <>

COLOPHON         top

       This page is part of the debhelper (helper programs for debian/rules)
       project.  Information about the project can be found at 
       ⟨⟩.  If you
       have a bug report for this manual page, send it to  This page was obtained from the project's
       upstream Git repository
       ⟨⟩ on
       2017-11-25.  (At that time, the date of the most recent commit that
       was found in the repository was 2017-11-19.)  If you discover any
       rendering problems in this HTML version of the page, or you believe
       there is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to

10.10.9                          2017-11-23                    DH_TESTDIR(1)