diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-03-18 12:45:42 +0100 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-03-18 12:47:50 +0100 |
commit | 5680eee885791e46ac20aa0f5f1f6acedc4bf5ee (patch) | |
tree | d5516be224b2b7736cb9723544d58331bffb09d5 /examples_checks.py | |
parent | c886d5e791d83a15331999557c65b57e749bda2d (diff) |
examples_checks: add more configurations to how to run examples
Summary:
this adds the options, which are needed to execute those examples.
Depends on D8379
Reviewers: cedric, zmike, stefan_schmidt, segfaultxavi
Reviewed By: segfaultxavi
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8380
Diffstat (limited to 'examples_checks.py')
-rwxr-xr-x | examples_checks.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/examples_checks.py b/examples_checks.py index 2a51c80819..f456e6be58 100755 --- a/examples_checks.py +++ b/examples_checks.py | |||
@@ -57,6 +57,41 @@ def prep_eet_data_file_descriptor_02(): | |||
57 | f2.write(b"Simulation2") | 57 | f2.write(b"Simulation2") |
58 | return [f1.name, f2.name, "union", "5", "Example-Simulation"] | 58 | return [f1.name, f2.name, "union", "5", "Example-Simulation"] |
59 | 59 | ||
60 | def prep_ecore_getopt_example(): | ||
61 | return ["string-1", "120", "apple", "none-optional-arg"] | ||
62 | |||
63 | def prep_eio_file_copy(): | ||
64 | f1 = tempfile.NamedTemporaryFile(delete=False) | ||
65 | f1.write(b"Simulation") | ||
66 | return [f1.name, "/tmp/eio_dst_file"] | ||
67 | |||
68 | def prep_eio_file_ls(): | ||
69 | return ["/tmp/"] | ||
70 | |||
71 | def prep_edje_color_class(): | ||
72 | return ["beta", "red", "green", "blue"] | ||
73 | |||
74 | def prep_ecore_con_url_headers_example(): | ||
75 | return ["GET", "www.enlightenment.org"] | ||
76 | |||
77 | def prep_ecore_con_url_download_example(): | ||
78 | return ["www.enlightenment.org"] | ||
79 | |||
80 | def prep_ecore_con_url_cookies_example(): | ||
81 | return ["www.enlightenment.org"] | ||
82 | |||
83 | def prep_ecore_con_client_example(): | ||
84 | return ["enlightenment.org", "80"] | ||
85 | |||
86 | def prep_ecore_con_lookup_example(): | ||
87 | return ["enlightenment.org"] | ||
88 | |||
89 | def prep_ecore_con_server_example(): | ||
90 | return ["enlightenment.org", "1234"] | ||
91 | |||
92 | def prep_ecore_con_client_simple_example(): | ||
93 | return ["enlightenment.org", "80"] | ||
94 | |||
60 | example_preparation = { | 95 | example_preparation = { |
61 | "eina_file_02" : prep_eina_file_02, | 96 | "eina_file_02" : prep_eina_file_02, |
62 | "eina_xattr_01" : prep_eina_xattr_01, | 97 | "eina_xattr_01" : prep_eina_xattr_01, |
@@ -66,6 +101,17 @@ example_preparation = { | |||
66 | "eet-data-simple" : prep_eet_data_simple, | 101 | "eet-data-simple" : prep_eet_data_simple, |
67 | "eet-data-file_descriptor_01" : prep_eet_data_file_descriptor_01, | 102 | "eet-data-file_descriptor_01" : prep_eet_data_file_descriptor_01, |
68 | "eet-data-file_descriptor_02" : prep_eet_data_file_descriptor_02, | 103 | "eet-data-file_descriptor_02" : prep_eet_data_file_descriptor_02, |
104 | "ecore_getopt_example" : prep_ecore_getopt_example, | ||
105 | "eio_file_copy" : prep_eio_file_copy, | ||
106 | "eio_file_ls" : prep_eio_file_ls, | ||
107 | "edje-color-class" : prep_edje_color_class, | ||
108 | "ecore_con_url_headers_example" : prep_ecore_con_url_headers_example, | ||
109 | "ecore_con_url_download_example" : prep_ecore_con_url_download_example, | ||
110 | "ecore_con_url_cookies_example" : prep_ecore_con_url_cookies_example, | ||
111 | "ecore_con_client_example" : prep_ecore_con_client_example, | ||
112 | "ecore_con_lookup_example" : prep_ecore_con_lookup_example, | ||
113 | "ecore_con_server_example" : prep_ecore_con_server_example, | ||
114 | "ecore_con_client_simple_example" : prep_ecore_con_client_simple_example, | ||
69 | } | 115 | } |
70 | 116 | ||
71 | # | 117 | # |