[longomatch] Add script to check installation on Windows



commit fdf15994843ba6d5579c5409afd4398eecf18b23
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Jul 29 01:01:22 2011 +0200

    Add script to check installation on Windows

 win32/checks.sh       |   13 +++++++++++++
 win32/deploy_win32.py |    1 +
 win32/installer.iss   |    2 +-
 3 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/win32/checks.sh b/win32/checks.sh
new file mode 100644
index 0000000..cf31291
--- /dev/null
+++ b/win32/checks.sh
@@ -0,0 +1,13 @@
+export GST_REGISTRY=/c/test.reg
+# Get the list of plugins
+./gst-inspect.exe > /c/checks.log 2>&1
+# Check videosink
+GST_DEBUG=3 ./gst-launch.exe videotestsrc num-buffers=2 ! d3dvideosink  >> /c/checks.log 2>&1
+# Check H264
+GST_DEBUG=3 ./gst-launch.exe videotestsrc num-buffers=2 ! x264enc ! decodebin2 ! d3dvideosink  >> /c/checks.log 2>&1
+# Check MPEG-4
+GST_DEBUG=3 ./gst-launch.exe videotestsrc num-buffers=2 ! xvidenc ! decodebin2 ! d3dvideosink  >> /c/checks.log 2>&1
+# Check VP8
+GST_DEBUG=3 ./gst-launch.exe videotestsrc num-buffers=2 ! vp8enc ! decodebin2 ! d3dvideosink  >> /c/checks.log 2>&1
+# Check Theora
+GST_DEBUG=3 ./gst-launch.exe videotestsrc num-buffers=2 ! theoraenc ! decodebin2 ! d3dvideosink  >> /c/checks.log 2>&1
diff --git a/win32/deploy_win32.py b/win32/deploy_win32.py
index a75b49f..8c2e0e0 100644
--- a/win32/deploy_win32.py
+++ b/win32/deploy_win32.py
@@ -219,6 +219,7 @@ class Deploy():
         args =shlex.split('make -f Makefile.win32 install')
         p = subprocess.call(args, cwd=os.path.join(self.curr_dir, '..'))
         shutil.copy(os.path.join(self.deps_dir, 'Db4objects.Db4o.dll'), self.bin_dir)
+        shutil.copy(os.path.join(self.curr_dir, 'checks.sh'), self.bin_dir)
 
     def deploy_msys(self):
         print 'Deploying msys'
diff --git a/win32/installer.iss b/win32/installer.iss
index b1420ff..2ed03a9 100644
--- a/win32/installer.iss
+++ b/win32/installer.iss
@@ -43,12 +43,12 @@ Source: ".\dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs create
 [Icons]
 Name: "{group}\LongoMatch-0.15"; Filename: "{app}\bin\LongoMatch.exe" ;WorkingDir: "{app}\bin"
 Name: "{group}\Theme Selector"; Filename: "{app}\bin\ThemeSelector.exe" ;WorkingDir: "{app}\bin"
+Name: "{group}\X-Installation Checks (Use only to report installation errors)"; Filename: "{app}\bin\rxvt.exe"; Parameters:"-e ./sh checks.sh" ; WorkingDir: "{app}\bin" ; IconFileName: "{app}\share\chronojump\images\chronojump_icon.ico"
 Name: "{commondesktop}\LongoMatch"; Filename: "{app}\bin\LongoMatch.exe"; WorkingDir: "{app}\bin"; Tasks: desktopicon
 
 [Run]
 Filename: "{app}\bin\LongoMatch.exe"; WorkingDir: "{app}\bin";Description: "{cm:LaunchProgram,LongoMatch}"; Flags: nowait postinstall skipifsilent
 
-
 [InstallDelete] 
 Type: filesandordirs; Name:"{userdocs}\..\.gstreamer-0.10"
 Type: filesandordirs; Name:"{app}\*"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]