File: simple_tests.py

package info (click to toggle)
python-arrayfire 3.3.20160624-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 764 kB
  • ctags: 826
  • sloc: python: 3,999; makefile: 205
file content (27 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/python

#######################################################
# Copyright (c) 2015, ArrayFire
# All rights reserved.
#
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
# http://arrayfire.com/licenses/BSD-3-Clause
########################################################

from __future__ import absolute_import

from . import simple
import sys

if __name__ == "__main__":
    verbose = False

    if len(sys.argv) > 1:
        verbose = int(sys.argv[1])

    test_list = None
    if len(sys.argv) > 2:
        test_list = sys.argv[2:]

    simple.tests.run(test_list, verbose)