1 From 976216172721d886fbbb6ec469e4366aedfd7616 Mon Sep 17 00:00:00 2001
2 From: Richard Lowe <richlowe@richlowe.net>
3 Date: Tue, 26 Jan 2016 14:24:11 -0500
4 Subject: compare_tests: Use nawk(1) on illumos, since awk(1) is
8 contrib/compare_tests | 11 +++++++++--
9 1 file changed, 9 insertions(+), 2 deletions(-)
11 diff --git a/contrib/compare_tests b/contrib/compare_tests
12 index 2dfa8640756a..6616a201f23b 100755
13 --- a/contrib/compare_tests
14 +++ b/contrib/compare_tests
15 @@ -108,8 +108,15 @@ elif [ -d "$1" -o -d "$2" ] ; then
16 usage "Must specify either two directories or two files"
19 -sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp1
20 -sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp2
22 +if [ `expr "$osrev" : "SunOS 5."` -eq "8" ]; then
28 +sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$1" | $AWK '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp1
29 +sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$2" | $AWK '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp2