> +#define testcase_pass_f(_func, _fmt, ...) \
> + do { \
> + gettimeofday(&timev2, NULL); \
> + printf("* TESTCASE %s PASS (elapsed time %lds %ldus) " _fmt
> "\n",\
> + _func, timevr.tv_sec, timevr.tv_usec, \
> + ## __VA_ARGS__); \
> + } while (0)
> +
> +#define testcase_skip(_fmt, ...) \
> + printf("* TESTCASE %s SKIP " _fmt "\n", \
> + __func__, ## __VA_ARGS__)
> +
> +#define testcase_skip_f(_func, _fmt, ...) \
> + printf("* TESTCASE %s SKIP " _fmt "\n", \
> + _func, ## __VA_ARGS__)
> +
> +#define testcase_fail(_fmt, ...) \
> + printf("* TESTCASE %s FAIL (%s:%d) " _fmt "\n", \
> + __func__, __FILE__, __LINE__, \
> + ## __VA_ARGS__)
> +
> +#define testcase_fail_f(_func, _fmt, ...) \
> + printf("* TESTCASE %s FAIL (%s:%d) " _fmt "\n", \
> + _func, __FILE__, __LINE__, \
> + ## __VA_ARGS__)
> +
> +#define testcase_error(_fmt, ...) \
> + printf("* TESTCASE %s ERROR (%s:%d)) " _fmt "\n", \
> + __func__, __FILE__, __LINE__, \
> + ## __VA_ARGS__)
> +
> +#define testcase_error_f(_func, _fmt, ...) \
> + printf("* TESTCASE %s ERROR (%s:%d)) " _fmt "\n", \
> + _func, __FILE__, __LINE__, \
> + ## __VA_ARGS__)
> +
>
> #endif
Looks good, Klaus. My only nit would be to send the output for the error
cases above to stderr.
Acked-by: Kent Yoder <[email protected]>
Kent
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech