File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,18 @@ if(CONFIG_INTERPRETERS_QUICKJS)
135
135
list (APPEND QUICKJS_CSRCS ${QUICKJS_DIR} /quickjs-libc.c )
136
136
endif ()
137
137
138
+ if (CONFIG_INTERPRETERS_QUICKJS_TEST )
139
+ add_custom_target (
140
+ qjstest_img
141
+ COMMAND genromfs -f ${CMAKE_BINARY_DIR} /etc/qjstest.img -d
142
+ ${QUICKJS_DIR} /tests -V "ROMFS_Test"
143
+ WORKING_DIRECTORY ${QUICKJS_DIR}
144
+ COMMENT "QUICKJS UNIT TEST Generating qjstest.img..." )
145
+
146
+ add_dynamic_rcraws (RAWS ${CMAKE_BINARY_DIR} /etc/qjstest.img DEPENDS
147
+ qjstest_img )
148
+ endif ()
149
+
138
150
nuttx_add_library (libqjs )
139
151
target_sources (libqjs PRIVATE ${QUICKJS_CSRCS} )
140
152
target_include_directories (libqjs PRIVATE ${QUICKJS_INCDIR} )
Original file line number Diff line number Diff line change @@ -72,4 +72,8 @@ config INTERPRETERS_QUICKJS_CPUPROFILING
72
72
bool "Enable QUICKJS_CPUPROFILING"
73
73
default n
74
74
75
+ config INTERPRETERS_QUICKJS_TEST
76
+ bool "Enable QuickJS test"
77
+ default n
78
+
75
79
endif # INTERPRETERS_QUICKJS
You can’t perform that action at this time.
0 commit comments