gst-inspect: print ranks with offsets from names
[platform/upstream/gstreamer.git] / tools / gst-feedback-m.m
1 #!/bin/sh
2 # this script provides feedback for GStreamer debugging
3 # the user can run this and provide the GStreamer developers with information
4 # about their system
5
6 command_output ()
7 {
8   echo "+++ $1"
9   $1
10 }
11
12 echo "GStreamer feedback script."
13 echo "Please attach the output of this script to your bug reports."
14 echo "Bug reports should go into Gnome's bugzilla (http://bugzilla.gnome.org)"
15 echo
16
17 echo "+   SYSTEM INFORMATION"
18 command_output "uname -a"
19
20 if test -f /etc/redhat-release; then
21   echo "+++  distribution: Red Hat"
22   cat /etc/redhat-release
23 fi
24
25 if test -f /etc/debian_version; then
26   echo "+++  distribution: Debian"
27   cat /etc/debian_version
28 fi
29
30 command_output "cat /etc/issue"
31
32 echo
33
34 echo "+   USER INFORMATION"
35 command_output "id"
36 echo
37
38 echo "+   PKG-CONFIG INFORMATION"
39 for mm in 0.6 0.7 0.8
40 do
41   echo "+   $mm"
42   command_output "pkg-config --version"
43   command_output "pkg-config gstreamer-$mm --modversion" 2>/dev/null
44   command_output "pkg-config gstreamer-$mm --cflags" 2>/dev/null
45   command_output "pkg-config gstreamer-$mm --libs" 2>/dev/null
46   command_output "pkg-config gstreamer-libs-$mm --modversion" 2>/dev/null
47   command_output "pkg-config gstreamer-libs-$mm --cflags" 2>/dev/null
48   command_output "pkg-config gstreamer-libs-$mm --libs" 2>/dev/null
49   echo
50 done
51
52 for mm in 0.9 0.10
53 do
54   for module in gstreamer gstreamer-base gstreamer-check gstreamer-controller\
55                 gstreamer-dataprotocol gstreamer-plugins-base gstreamer-net\
56                 gst-python
57   do
58     echo "+   $mm"
59     command_output "pkg-config $module-$mm --modversion" 2>/dev/null
60     command_output "pkg-config $module-$mm --cflags" 2>/dev/null
61     command_output "pkg-config $module-$mm --libs" 2>/dev/null
62     echo
63   done
64 done
65
66 echo "+   GSTREAMER INFORMATION (unversioned)"
67 command_output "which gst-inspect"
68 command_output "gst-inspect"
69 command_output "gst-inspect fakesrc"
70 command_output "gst-inspect fakesink"
71 command_output "gst-launch fakesrc num-buffers=5 ! fakesink"
72 for mm in 0.6 0.7 0.8 0.9 0.10
73 do
74   echo "+   GSTREAMER INFORMATION ($mm)"
75   command_output "which gst-inspect-$mm"
76   command_output "gst-inspect-$mm"
77   command_output "gst-inspect-$mm fakesrc"
78   command_output "gst-inspect-$mm fakesink"
79   command_output "gst-launch-$mm fakesrc num-buffers=5 ! fakesink"
80 done
81
82 echo "++  looking for gstreamer libraries in common locations"
83 for dirs in /usr/lib /usr/local/lib; do
84   if test -d $dirs; then
85     find $dirs -name libgstreamer* | grep so
86   fi
87 done
88 echo "++  looking for gstreamer headers in common locations"
89 for dirs in /usr/include /usr/local/include; do
90   if test -d $dirs; then
91     find $dirs -name gst.h
92   fi
93 done
94
95 echo "+   GSTREAMER PLUG-INS INFORMATION"
96 command_output "gst-inspect volume"
97 for mm in 0.6 0.7 0.8 0.9 0.10
98 do
99   command_output "gst-inspect-$mm volume"
100 done
101
102 echo "++  looking for gstreamer volume plugin in common locations"
103 for dirs in /usr/lib /usr/local/lib; do
104   if test -d $dirs; then
105     find $dirs -name libgstvolume* | grep so
106   fi
107 done
108 echo "++  looking for gstreamer headers in common locations"
109 for dirs in /usr/include /usr/local/include; do
110   if test -d $dirs; then
111     find $dirs -name audio.h
112   fi
113 done
114
115