diff options
author | Casey Deccio <casey@deccio.net> | 2020-11-08 07:02:01 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2020-11-08 07:02:01 +0300 |
commit | 4494fc0c9b7522f56fa6191d978409c30805d218 (patch) | |
tree | 174b86681cf4ac17a9bafbdb9b6a5e8a6bb94b31 /tests | |
parent | 83a8298afdd5804a42e3d40d7a9dde703edfa507 (diff) |
Add run tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dnsviz_probe_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/dnsviz_probe_tests.py b/tests/dnsviz_probe_tests.py index 54be61e..5373d71 100644 --- a/tests/dnsviz_probe_tests.py +++ b/tests/dnsviz_probe_tests.py @@ -5,6 +5,7 @@ import binascii import gzip import logging import os +import subprocess import tempfile import unittest @@ -987,5 +988,9 @@ ns1.example 0 IN A 192.0.2.1 for tmpfile in (names_file, names_file_unicode, example_names_only): os.remove(tmpfile.name) + def test_dnsviz_probe_run(self): + self.assertEqual(subprocess.call(['./bin/dnsviz', 'probe', '-d', '0', '-o', '/dev/null', 'example.com']), 0) + self.assertEqual(subprocess.call(['./bin/dnsviz', 'probe', '-d', '0', '-A', '-o', '/dev/null', 'example.com']), 0) + if __name__ == '__main__': unittest.main() |