X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=tests%2Flib.h;h=f2dd6291169aa0183e84dc17ab4e7d560c33a714;hb=aedbf89d85cc7efa1263f5e210c3b78097ad471a;hp=daed18daffc218727688228c93c009d41399b2fb;hpb=a755b0e122105d934c4e7b97435420eda6df6e8e;p=libsigrok.git
diff --git a/tests/lib.h b/tests/lib.h
index daed18da..f2dd6291 100644
--- a/tests/lib.h
+++ b/tests/lib.h
@@ -14,30 +14,31 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#ifndef LIBSIGROK_TESTS_LIB_H
#define LIBSIGROK_TESTS_LIB_H
-#include "../include/libsigrok/libsigrok.h"
+#include
+
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+
+extern struct sr_context *srtest_ctx;
+
+void srtest_setup(void);
+void srtest_teardown(void);
struct sr_dev_driver *srtest_driver_get(const char *drivername);
-struct sr_input_format *srtest_input_get(const char *id);
void srtest_driver_init(struct sr_context *sr_ctx, struct sr_dev_driver *driver);
void srtest_driver_init_all(struct sr_context *sr_ctx);
-void srtest_input_init(struct sr_context *sr_ctx, struct sr_input_format *input);
-void srtest_input_init_all(struct sr_context *sr_ctx);
-
void srtest_set_samplerate(struct sr_dev_driver *driver, uint64_t samplerate);
uint64_t srtest_get_samplerate(struct sr_dev_driver *driver);
void srtest_check_samplerate(struct sr_context *sr_ctx, const char *drivername,
uint64_t samplerate);
-void srtest_buf_to_file(const char *filename, const uint8_t *buf, uint64_t len);
GArray *srtest_get_enabled_logic_channels(const struct sr_dev_inst *sdi);
Suite *suite_core(void);
@@ -45,7 +46,12 @@ Suite *suite_driver_all(void);
Suite *suite_input_all(void);
Suite *suite_input_binary(void);
Suite *suite_output_all(void);
+Suite *suite_transform_all(void);
+Suite *suite_session(void);
Suite *suite_strutil(void);
Suite *suite_version(void);
+Suite *suite_device(void);
+Suite *suite_trigger(void);
+Suite *suite_analog(void);
#endif