[DTrace-devel] [PATCH v2 1/5] test: Reduce volume of test log output for link-idempotence
Kris Van Hees
kris.van.hees at oracle.com
Wed Feb 21 21:18:23 UTC 2024
On Wed, Feb 21, 2024 at 03:50:59PM -0500, eugene.loh--- via DTrace-devel wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> Spare 100s to 1000s of lines of output in the normal, PASS case.
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
> test/unittest/usdt/tst.link-idempotence.sh | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/test/unittest/usdt/tst.link-idempotence.sh b/test/unittest/usdt/tst.link-idempotence.sh
> index 5d54e19d..b6841f8f 100755
> --- a/test/unittest/usdt/tst.link-idempotence.sh
> +++ b/test/unittest/usdt/tst.link-idempotence.sh
> @@ -1,7 +1,7 @@
> #!/bin/bash
> #
> # Oracle Linux DTrace.
> -# Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
> +# Copyright (c) 2006, 2024, Oracle and/or its affiliates. All rights reserved.
> # Licensed under the Universal Permissive License v 1.0 as shown at
> # http://oss.oracle.com/licenses/upl.
> #
> @@ -54,13 +54,18 @@ if [ $? -ne 0 ]; then
> exit 1
> fi
> ${CC} ${CFLAGS} -o test test.o prov.o
> -DTRACE_DEBUG=t $dtrace -G -s prov.d test.o
> +DTRACE_DEBUG=t $dtrace -G -s prov.d test.o > dtrace.out 2>&1
> if [ $? -ne 0 ]; then
> echo "failed to regenerate DOF" >& 2
> + cat dtrace.out >& 2
> exit 1
> fi
> if [ test.o -nt test ]; then
> + cat dtrace.out >& 2
> exit 1
> fi
>
> +head dtrace.out
> +echo "..."
> +tail dtrace.out
> exit 0
> --
> 2.18.4
>
>
> _______________________________________________
> DTrace-devel mailing list
> DTrace-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/dtrace-devel
More information about the DTrace-devel
mailing list