From: Jacob Lifshay Date: Tue, 9 Jul 2019 02:21:04 +0000 (-0700) Subject: make tests executable X-Git-Tag: ls180-24jan2020~860 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7deebd03de570feabc1d54a78e5f7f2953b27106;p=ieee754fpu.git make tests executable --- diff --git a/src/ieee754/div_rem_sqrt_rsqrt/test_algorithm.py b/src/ieee754/div_rem_sqrt_rsqrt/test_algorithm.py old mode 100644 new mode 100755 index 5760dbab..9200b3b8 --- a/src/ieee754/div_rem_sqrt_rsqrt/test_algorithm.py +++ b/src/ieee754/div_rem_sqrt_rsqrt/test_algorithm.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # SPDX-License-Identifier: LGPL-2.1-or-later # See Notices.txt for copyright information @@ -1129,3 +1130,7 @@ class TestFixedUDivRemSqrtRSqrt(unittest.TestCase): shifted_remainder=shifted_remainder): self.assertEqual(obj.quotient_root, quotient) self.assertEqual(obj.remainder, shifted_remainder) + + +if __name__ == '__main__': + unittest.main() diff --git a/src/ieee754/div_rem_sqrt_rsqrt/test_core.py b/src/ieee754/div_rem_sqrt_rsqrt/test_core.py old mode 100644 new mode 100755 index 0ee39351..74b10b08 --- a/src/ieee754/div_rem_sqrt_rsqrt/test_core.py +++ b/src/ieee754/div_rem_sqrt_rsqrt/test_core.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # SPDX-License-Identifier: LGPL-2.1-or-later # See Notices.txt for copyright information @@ -227,3 +228,7 @@ class TestDivPipeCore(unittest.TestCase): log2_radix=1)) # FIXME: add more test_* functions + + +if __name__ == '__main__': + unittest.main()