1 function(unittest source name)
2 add_test(NAME js_${name}
3 COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} ${CMAKE_CURRENT_LIST_DIR}/${source}.js ${ARGN}
5 set_tests_properties(js_${name} PROPERTIES TIMEOUT 30)
20 unittest(pid_fuzzy pid_fuzzy)
22 unittest(pid_neuro pid_neuro)
26 unittest(trajbell trajbell)
28 unittest(trajpoly3 trajpoly3)
30 unittest(trajpoly5 trajpoly5)
32 unittest(trajpoly7 trajpoly7)
34 unittest(trajtrap trajtrap)
36 unittest(version version)