mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
36b3d2775a
* PikaNN sample * Delete __asset_lib_to_file_py_a.c * Update CMakeLists.txt Co-authored-by: Lyon <88232613+pikasTech@users.noreply.github.com>
20 lines
519 B
C
20 lines
519 B
C
#include "test_common.h"
|
|
|
|
#if (PIKA_SYNTAX_LEVEL == PIKA_SYNTAX_LEVEL_MAXIMAL) && (!PIKA_POOL_ENABLE) && \
|
|
(PIKA_STACK_BUFF_SIZE > 0x6000)
|
|
TEST(PikaNN, test1) {
|
|
/* init */
|
|
pikaMemInfo.heapUsedMax = 0;
|
|
PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain);
|
|
/* run */
|
|
__platform_printf("BEGIN\r\n");
|
|
pikaVM_runSingleFile(pikaMain, "test/python/PikaNN/PikaNN_test1.py");
|
|
/* collect */
|
|
/* assert */
|
|
/* deinit */
|
|
obj_deinit(pikaMain);
|
|
|
|
EXPECT_EQ(pikaMemNow(), 0);
|
|
}
|
|
|
|
#endif |