Update to 2.0.0 tree from current Fremantle build
[opencv] / tests / python / highgui / cvSaveImage.py
diff --git a/tests/python/highgui/cvSaveImage.py b/tests/python/highgui/cvSaveImage.py
deleted file mode 100755 (executable)
index f952ef1..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#! /usr/bin/env python
-"""
-This script will test highgui's image saving functionality
-"""
-
-# name if this test and it's requirements
-TESTNAME = "cvSaveImage"
-REQUIRED = ["cvLoadImagejpg"]
-
-#needed for sys.exit(int), filehandling and .works file checks
-import os
-import sys
-import works
-
-# path to imagefiles we need
-PREFIX=os.environ["top_srcdir"]+"/tests/python/testdata/images/"
-
-# delete old .works file and check requirements
-if not works.check_files(REQUIRED,TESTNAME):
-       sys.exit(77)
-
-# import the necessary things for OpenCV
-import python
-from python.highgui import *
-from python.cv import *
-
-# our temporary test file
-file_name = "./highgui_testfile.bmp"
-
-# try to load an image from a file
-image = cvLoadImage(PREFIX+"baboon.jpg")
-
-# if the returned object is not Null, loading was successful.
-if image==0:
-       print "(INFO) Couldn't load test image. Skipping rest of this test."
-       sys.exit(77)
-
-res = cvSaveImage("./highgui_testfile.bmp", image)
-
-if res == 0:
-       print "(ERROR) Couldn't save image to '"+file_name+"'."
-       sys.exit(1)
-
-# remove temporary file
-os.remove(file_name)
-
-# create flag file
-works.set_file(TESTNAME)
-
-# return 0 ('PASS')
-sys.exit(0)