[DTrace-devel] [PATCH 1/5] test: Reduce volume of test log output for link-idempotence
eugene.loh at oracle.com
eugene.loh at oracle.com
Wed Feb 21 18:48:47 UTC 2024
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>
---
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..a24197a7 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
+ cat dtrace.out >& 2
echo "failed to regenerate DOF" >& 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
More information about the DTrace-devel
mailing list