X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=tests%2Fruntc.c;h=75bfff4ff4931fb3fcfb10a4809a344edfdf2edb;hp=af1e3fba961129a3641a4aaa220ad89130ecc779;hb=d841d5b26f2134143fc80c9898522d13387b7cc8;hpb=7023cb9faa3d212b2ba6a0c2f59f93ced0afa547
diff --git a/tests/runtc.c b/tests/runtc.c
index af1e3fb..75bfff4 100644
--- a/tests/runtc.c
+++ b/tests/runtc.c
@@ -17,6 +17,7 @@
* along with this program. If not, see .
*/
+#include
#include "../libsigrokdecode.h"
#include
#include
@@ -35,25 +36,25 @@
#ifdef __LINUX__
#include
#endif
-#include "../config.h"
+#include "config.h"
int debug = FALSE;
int statistics = FALSE;
char *coverage_report;
-struct probe {
+struct channel {
char *name;
- int probe;
+ int channel;
};
struct option {
char *key;
- char *value;
+ GVariant *value;
};
struct pd {
char *name;
- GSList *probes;
+ GSList *channels;
GSList *options;
};
@@ -73,13 +74,11 @@ struct cvg {
GSList *missed_lines;
};
-
struct cvg *get_mod_cov(PyObject *py_cov, char *module_name);
void cvg_add(struct cvg *dst, struct cvg *src);
struct cvg *cvg_new(void);
gboolean find_missed_line(struct cvg *cvg, char *linespec);
-
static void logmsg(char *prefix, FILE *out, const char *format, va_list args)
{
if (prefix)
@@ -140,8 +139,8 @@ static void usage(char *msg)
printf("Usage: runtc [-dPpoiOf]\n");
printf(" -d Debug\n");
printf(" -P \n");
- printf(" -p (optional)\n");
- printf(" -o (optional)\n");
+ printf(" -p (optional)\n");
+ printf(" -o (optional)\n");
printf(" -i \n");
printf(" -O \n");
printf(" -f