File: test_tools.py

package info (click to toggle)
python-deeptools 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 34,624 kB
  • sloc: python: 14,765; xml: 4,090; sh: 38; makefile: 11
file content (17 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import subprocess
import os

ROOT = os.path.dirname(os.path.abspath(__file__)) + "/../../bin"


def test_tools():
    """
    Checks everything that is in /bin/
    and tries to run it

    """
    if os.path.isdir(ROOT):
        for _file in os.listdir(ROOT):
            print(_file)
            if os.path.isfile(os.path.join(ROOT, _file)):
                subprocess.check_call("{}/{} --version".format(ROOT, _file).split())