---
name: "dh_testdir"
section: "1"
platform: "linux"
package: "debhelper"
version: "13.24.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_testdir"
---

# dh\_testdir(1)

test directory before building Debian package

## NAME

dh\_testdir - test directory before building Debian package

## SYNOPSIS

**dh\_testdir** \[*debhelper options*\] \[*file* ...\]

## DESCRIPTION

**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

- *file* ...

  Test for the existence of these files too.

## SEE ALSO

[**debhelper**(7)](/debhelper/7.md)

This program is a part of debhelper.

## AUTHOR

Joey Hess \<joeyh@debian.org\>
