# 使用说明 ## 测试代码说明 > 本套测试代码,提供了3个用例
标题 用例名称 测试步骤 预期结果
用例1 接口基本功能测试 按默认条件编译出一个可执行文件,放入设备,检查日志 用例全部通过。并检查是否可搜到关键字:this is the first run of test after flash
用例2 数据重启可用测试 用例1执行完后,重启设备,检查日志 用例全部通过。并检查是否可搜到关键字:this is not the first run of test after flash
用例3 token持久化测试 打开 TOKEN_PERSIST_TEST 宏(去注释BUILD.gn里面倒数第二行defines)进行编译,放入设备,检查日志 用例全部通过。并检查是否可搜到关键字:this is the first run of test after flash
## 编译说明 ### 第一步 当前路径BUILD.gn中修改include_dirs最后一行为oem_auth_config.h和oem_auth_result_storage.h 实际所在路径。 默认为:"//vendor/kitframework/include/" 例如君正x2000的oem_auth_config.h和oem_auth_result_storage.h可能要修改为:"//vendor/ingenic/smartpen/adapter/kitframework/include" ### 第二步 BUILD.gn中修改deps最后两行为oem_auth_config.a和oem_auth_result_storage.a实际所在路径。 例如君正x2000的oem_auth_config.h和oem_auth_result_storage.h可能要修改为: "//vendor/ingenic/smartpen/adapter/kitframework:oem_auth_result_storage", "//vendor/ingenic/smartpen/adapter/kitframework:oem_auth_config", ### 第二步 输入:hb build -f -T //test/xts/acts/applications/small_device:ActsKitFwkApiTest 编译完成后可在out/bin目录找到ActsKitFwkApiTest.bin文件 ### 第三步 放入设备,运行看日志