[dmtest] generate command