如何为 "ct_run" 命令添加“-env ERL_LIBS XXX”?

how to add "-env ERL_LIBS XXX" for "ct_run" command?

我已经使用 "rebar generate" 创建包并将包移动到 运行 的测试电脑。

但是当 运行 通用测试套件时,我不知道如何 "-env ERL_LIBS XXX""ct_run" 命令。

如何更正?

ct_run -dir /home/peter/gate-0.0.1.20/lib/gate-0.0.1.20/ct -suite gate_test_data_SUITE.erl -erl_args -- -env ERL_LIBS gate-0.0.1.20/lib

这个变量也适用于环境。您是否尝试过 运行 作为 ERL_LIBS gate-0.0.1.20/lib ct_run -dir /home/peter/gate-0.0.1.20/lib/gate-0.0.1.20/ct -suite gate_test_data_SUITE.erl 的命令?