1b10bc6fd0e105980d98602d373ec224210bdabe
[opencv] / tests / swig_python / highgui / cvInitSystem.py
1 #! /usr/bin/env python
2
3 """
4 This script will test highgui's InitSystem function
5 ATTENTION: This test doesn't do much, yet, but cvInitSystem
6 is called with default parameters on the first highgui function call anyway.
7 """
8
9 # name of this test and it's requirements
10 TESTNAME = "cvInitSystem"
11 REQUIRED = []
12
13 # needed for sys.exit(int) and .works file handling
14 import sys
15 import works
16
17 # check requirements and delete old flag file, if it exists
18 if not works.check_files(REQUIRED, TESTNAME):
19         sys.exit(77)
20
21 # import the necessary things for OpenCV
22 import highgui
23
24 # try to initialize the highgui system
25 # res = highgui.cvInitSystem(globals["0,characs)
26 # if res != 0:
27 #       sys.exit(1)
28
29 # create flag file for the following tests
30 works.set_file(TESTNAME)
31
32 # return 0 ('PASS')
33 sys.exit(0)