ddclient/t/version.pl.in
Richard Hansen c390e75769 Add unit test infrastructure.
Now all that is needed to add a new unit test is to create a `t/*.pl`
file and list it in the `handwritten_tests` variable.

To run the test suite, run:

    ./autogen && ./configure && make check

Fixes #147
2020-06-29 11:08:32 -04:00

8 lines
210 B
Perl

use Test::More;
use version;
eval { require 'ddclient'; ddclient->import(); 1; } or die($@);
is(ddclient->VERSION(), version->parse('v@PACKAGE_VERSION@'), "version matches Autoconf config");
done_testing();