mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-07-07 03:05:38 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
29
Living_SDK/test/testcase/include/yts.h
Normal file
29
Living_SDK/test/testcase/include/yts.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
||||
*/
|
||||
|
||||
#ifndef YTS_H
|
||||
#define YTS_H
|
||||
|
||||
void osupdate_online_test_run(char *bin, int id2);
|
||||
|
||||
#define check_cond_wait(cond, seconds) do { \
|
||||
unsigned int i; \
|
||||
for (i=0;i<(unsigned int)seconds && !(cond);i++) { \
|
||||
aos_msleep(1000); \
|
||||
} \
|
||||
YUNIT_ASSERT(cond); \
|
||||
} while(0);
|
||||
|
||||
#define run_times(func, times) do { \
|
||||
int i; \
|
||||
for (i=0;i<times;i++, func); \
|
||||
} while(0);
|
||||
|
||||
extern int yts_get_args(const char ***argv);
|
||||
extern void yts_run(int argc, char **argv);
|
||||
extern int yts_run_suite_by_name(const char *suite_name, int test_case_times);
|
||||
extern void ct_yts_run_all(void);
|
||||
|
||||
#endif /* YTS_H */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue