Skip to content
Tim Watson edited this page Jun 4, 2013 · 4 revisions

#Module systest_utils#

##Function Index##

abort/2
as_atom/1
as_string/1
border/2
call/2 makes a gen_server:call with 'infinity' timeout.
combine/2
ets_dump/1
find_files/2 recursive search in Dir for files matching Regex.
make_node/1 make a valid erlang node shortname from Name, using the current (local) hostname.
make_node/2 make a node shortname from the supplied name and host atoms.
print_heading/1
print_section/2
proc_id_and_hostname/1
proplist_format/1 convert the 'proplist' L into a printable list.
quiet/1
record_to_proplist/2 convert a record into a proplist using its exporting module.
remote_load/2
rm_rf/1
safe_call/3 makes a gen_server call, falling back to the supplied Default if ProcRef is invalid (i.e., is a dead pid or doesn't represent a registered name).
strip_suite_suffix/1 strip the "_SUITE" suffic from a ct test suite name.
throw_unless/2
throw_unless/3
throw_unless/4
time_to_ms/1
uniq/1
with_file/3
with_termfile/2

##Function Details##

###abort/2##

abort(Fmt, Args) -> any()

###as_atom/1##

as_atom(X) -> any()

###as_string/1##

as_string(X) -> any()

###border/2##

border(S, C) -> any()

###call/2##

call(Ref, Msg) -> any()

makes a gen_server:call with 'infinity' timeout.

###combine/2##

combine(V1, V2) -> any()

###ets_dump/1##

ets_dump(Tab) -> any()

###find_files/2##

find_files(Dir, Rx) -> any()

recursive search in Dir for files matching Regex

###make_node/1##

make_node(Name) -> any()

make a valid erlang node shortname from Name, using the current (local) hostname

###make_node/2##

make_node(Name, Host) -> any()

make a node shortname from the supplied name and host atoms

###print_heading/1##

print_heading(S) -> any()

###print_section/2##

print_section(Heading, Properties) -> any()

###proc_id_and_hostname/1##

proc_id_and_hostname(ProcId) -> any()

###proplist_format/1##

proplist_format(L) -> any()

convert the 'proplist' L into a printable list

###quiet/1##

quiet(Config) -> any()

###record_to_proplist/2##

record_to_proplist(Rec, Mod) -> any()

convert a record into a proplist using its exporting module

###remote_load/2##

remote_load(Node, Module) -> any()

###rm_rf/1##

rm_rf(Path) -> any()

###safe_call/3##

safe_call(ProcRef, Msg, Default) -> any()

makes a gen_server call, falling back to the supplied Default if ProcRef is invalid (i.e., is a dead pid or doesn't represent a registered name).

###strip_suite_suffix/1##

strip_suite_suffix(Suite) -> any()

strip the "_SUITE" suffic from a ct test suite name

###throw_unless/2##

throw_unless(Cond, Msg) -> any()

###throw_unless/3##

throw_unless(Cond, Msg, FmtArgs) -> any()

###throw_unless/4##

throw_unless(Cond, SubSys, Msg, FmtArgs) -> any()

###time_to_ms/1##

time_to_ms(TS) -> any()

###uniq/1##

uniq(List) -> any()

###with_file/3##

with_file(Path, Modes, Handler) -> any()

###with_termfile/2##

with_termfile(Path, Handler) -> any()