isl-0.24 'make check' is broken on HP-UX 11.31

6 views
Skip to first unread message

Ian McNish

unread,
Jun 17, 2024, 6:15:48 PMJun 17
to isl-dev...@googlegroups.com
The bundled version of 'diff' on HP-UX does not include the '-u' option.
isl-0.24 'configure' should test for support of 'diff -u'.

Quick local fix:
*** codegen_test.sh     Mon Jun 17 14:17:12 2024
--- codegen_test.sh.20240617T141651.bak Mon Jun 17 11:17:35 2024
***************
*** 13,19 ****
        dir=`dirname $i`
        ref=$dir/$base.c
        (./isl_codegen$EXEEXT < $i > $test &&
!        diff -cw $ref $test && rm $test) || failed=1
  done
  for i in $srcdir/test_inputs/codegen/*.in \
                $srcdir/test_inputs/codegen/omega/*.in \
--- 13,19 ----
        dir=`dirname $i`
        ref=$dir/$base.c
        (./isl_codegen$EXEEXT < $i > $test &&
!        diff -uw $ref $test && rm $test) || failed=1
  done
  for i in $srcdir/test_inputs/codegen/*.in \
                $srcdir/test_inputs/codegen/omega/*.in \
***************
*** 24,30 ****
        dir=`dirname $i`
        ref=$dir/$base.c
        (./isl_codegen$EXEEXT < $i > $test &&
!        diff -cw $ref $test && rm $test) || failed=1
  done

  test $failed -eq 0 || exit
--- 24,30 ----
        dir=`dirname $i`
        ref=$dir/$base.c
        (./isl_codegen$EXEEXT < $i > $test &&
!        diff -uw $ref $test && rm $test) || failed=1
  done

  test $failed -eq 0 || exit

More info:
-bash-5.2$ uname -s
HP-UX
-bash-5.2$ uname -r
B.11.31
-bash-5.2$ uname -v
U
-bash-5.2$ uname -m
ia64
-bash-5.2$ model
ia64 hp server Integrity Virtual Machine
-bash-5.2$ type diff
diff is /usr/bin/diff
-bash-5.2$ man diff

 diff(1) diff(1)

 NAME
      diff - differential file and directory comparator

 SYNOPSIS
      diff [-C n] [-S name] [-lrs] [-bcefhintw] dir1 dir2

      diff [-C n] [-S name] [-bcefhintw] file1 file2

      diff [-D string] [-biw] file1 file2

 DESCRIPTION
...
-bash-5.2$ cat ./test-suite.log
================================
   isl 0.24: ./test-suite.log
================================

# TOTAL: 7
# PASS:  6
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: codegen_test.sh
=====================

./test_inputs/codegen/atomic.st
diff: illegal option -- u
        usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2
                diff [-C n ] [ -bcefhintw ] file1 file2
                diff [ -D string ] [ -biw ] file1 file2
./test_inputs/codegen/bilinear.st
diff: illegal option -- u
        usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2
                diff [-C n ] [ -bcefhintw ] file1 file2
                diff [ -D string ] [ -biw ] file1 file2
...



Best,
Ian

Sven Verdoolaege

unread,
Jun 22, 2024, 10:35:53 AM (11 days ago) Jun 22
to Ian McNish, isl-dev...@googlegroups.com
On Mon, Jun 17, 2024 at 09:50:11AM -0700, Ian McNish wrote:
> The bundled version of 'diff' on HP-UX does not include the '-u' option.
> isl-0.24 'configure' should test for support of 'diff -u'.

Thanks for the report.
Try with the latest git version.

skimo
Reply all
Reply to author
Forward
0 new messages