9b6a9b2277fb587ae17e27f187cd2a08de2cf0cc
[opencv] / tests / 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 print sys.path
22
23 # import the necessary things for OpenCV
24 import python
25 from python import highgui
26
27 # try to initialize the highgui system
28 # res = highgui.cvInitSystem(globals["0,characs)
29 # if res != 0:
30 #       sys.exit(1)
31
32 # create flag file for the following tests
33 works.set_file(TESTNAME)
34
35 # return 0 ('PASS')
36 sys.exit(0)