[erlang-questions] Common Test Hooks
Ola Andersson A
Fri Sep 30 16:41:00 CEST 2011
Thanks for the info Lukas!
We will probably go directly for R14B04 at the next upgrade so that's good to know.
By the way, we also recently added a hook that compiles C code. In our case it's test cases that are executed on the target node.
The code is compiled and transferred to the node with ftp, then executed from the erlang suite with some hidden signalling.
All magically provided by the CTH.
> -----Original Message-----
> [mailto:] On Behalf Of
> Lukas Larsson
> Sent: den 30 september 2011 14:48
> Subject: Re: [erlang-questions] Common Test Hooks
> Hi Ola!
> Just letting you and everyone else know that there will be a
> small interface change (return value of init callback) in
> R14B04 with CTHs in order to allow priority inbetween CTHs. I
> have also planned to extend the priority feature to be more
> flexible duing execution of a suite so that one could run
> hooks in one order during init_per_* and another during
> end_per_*. Besides this change nothing more is planned right
> now, though suggestions on improvements are more than welcome!
> CTH will remain alpha until the R15 release and then be put
> in final version.
> Regarding creative uses of hooks, we at OTP use them to
> compile C code in SUITE_data directories which are then used
> to test various interface functionality within the erlang emulator.
> Erlang/OTP team
> On 30/09/11 13:57, Ola Andersson A wrote:
> > Hi CT users,
> > I wonder if anyone else has tried out the relatively recent
> addition of Common Test Hooks in Common Test?
> > In the project I'm working in we have used it successfully
> for about six months now.
> > I think it's a very powerful tool for creating behaviours
> that are common to multiple test suites.
> > We also use CT Hooks to start up and supervise resources and to
> > perform cleanup and recovery actions after failed test
> cases. It saves the testers a lot of work.
> > The CT Hooks functionality is still in alpha vsn according to OTP
> > R14B03 but I think it's stable enough to go ahead and use
> it. We have had no problems at all during these six months.
> > If anyone else out there has used CT Hooks I would
> appreciate if you
> > could share your experiences and maybe provide some new
> ideas about creative usage of the feature.
> > BR,
> > /OLA.
> > _______________________________________________
> > erlang-questions mailing list
> > http://erlang.org/mailman/listinfo/erlang-questions
> erlang-questions mailing list
More information about the erlang-questions