mini-bash-tester/test_utils.sh の使用例です。
sample
|-- README.md ... 本ファイル
|-- testee.sh ... テスト対象プログラム
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <gst/gst.h> | |
| #include <gst/video/gstvideodecoder.h> | |
| GstElement *pipeline; | |
| GstElement *identity; | |
| GstElement *decoder; | |
| GArray *garray; |
| /* gcc -Wall -Wextra main.c `pkg-config --libs --cflags gstreamer-1.0` */ | |
| #include <gst/gst.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| GstBuffer *buf; | |
| GstMapInfo info; | |
| GString *tmp; | |
| gst_init (&argc, &argv); |
| #include <stdio.h> | |
| #include <gst/gst.h> | |
| void my_free (GstAllocator * allocator, GstMemory * mem) | |
| { | |
| (void)allocator; | |
| (void)mem; | |
| g_print ("my_free(): Hello\n"); | |
| } |
| #include <stdio.h> | |
| #include <gst/gst.h> | |
| void notify_func(gpointer data) | |
| { | |
| (void) data; | |
| g_print ("from buffer_notify()\n"); | |
| } | |
| int main (int argc, char *argv[]) |
| #include <gst/gst.h> | |
| static void | |
| fakesink_handoff (GstElement* object, GstBuffer* arg0, GstPad* arg1, gpointer data) | |
| { | |
| static gint cnt=0; | |
| GstElement *pipeline = GST_ELEMENT(data); | |
| (void)object; | |
| (void)arg0; | |
| (void)arg1; |
| #include <stdio.h> | |
| #include <gst/gst.h> | |
| #define PIPELINE_STRING "gst-launch-1.0 \ | |
| filesrc location=softboy.avi ! avidemux \ | |
| ! avdec_mpeg4 ! videorate \ | |
| ! capsfilter \ | |
| caps=video/x-raw,framerate=10/1 \ | |
| name=filter \ | |
| ! videoconvert ! ximagesink" |
| // gcc -Wall -Wextra property_notify_watch.c `pkg-config --cflags --libs gstreamer-1.0` | |
| #include <unistd.h> | |
| #include <signal.h> | |
| #include <sys/types.h> | |
| #include <gst/gst.h> | |
| #define HIGH (30) | |
| #define SLOW (10) | |
| GstElement *pipeline; |
| #include <gst/gst.h> | |
| #include <glib.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| GString *launch_str; | |
| GstElement *pipeline; | |
| GstBus *bus; | |
| GstMessage *msg; |
| #include <gst/gst.h> | |
| #include <glib.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| GString *launch_str; | |
| GstElement *pipeline; | |
| GstBus *bus; | |
| GstMessage *msg; |