Print this page
10823 should ignore DW_TAG_subprogram with DW_AT_declaration tags
10824 GCC7-derived CTF can double qualifiers on arrays
10825 ctfdump -c drops last type
10826 ctfdump -c goes off the rails with a missing parent
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/util-tests/tests/ctf/Makefile
          +++ new/usr/src/test/util-tests/tests/ctf/Makefile
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  # Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13      -# Copyright (c) 2019, Joyent, Inc.
       13 +# Copyright 2019, Joyent, Inc.
  14   14  #
  15   15  
  16   16  include $(SRC)/Makefile.master
  17   17  
  18   18  ROOTOPTPKG = $(ROOT)/opt/util-tests
  19   19  TESTDIR = $(ROOTOPTPKG)/tests/ctf
  20   20  
  21   21  SCRIPTS =       precheck.ksh \
  22   22                  ctftest.ksh \
  23   23                  ctftest-convert-non-c.ksh \
↓ open down ↓ 1 lines elided ↑ open up ↑
  25   25                  ctftest-merge-no-ctf.ksh \
  26   26  
  27   27  TESTS =         test-float.c \
  28   28                  test-reference.c \
  29   29                  test-int.c \
  30   30                  test-array.c \
  31   31                  test-enum.c \
  32   32                  test-forward.c \
  33   33                  test-sou.c \
  34   34                  test-function.c \
       35 +                test-qualifiers.c \
  35   36                  test-merge-static/Makefile.ctftest \
  36   37                  test-merge-static/test-a.c \
  37   38                  test-merge-static/test-b.c \
  38   39                  test-merge-static/test-c.c \
  39   40                  test-merge-static/test-d.c \
  40   41                  test-merge-static/test-main.c \
  41   42                  test-merge-forward/Makefile.ctftest \
  42   43                  test-merge-forward/test-impl.c \
  43   44                  test-merge-forward/test-merge.c \
  44   45                  test-merge-dedup/Makefile.ctftest \
↓ open down ↓ 21 lines elided ↑ open up ↑
  66   67                  check-int-32 \
  67   68                  check-int-64 \
  68   69                  check-reference \
  69   70                  check-array \
  70   71                  check-enum \
  71   72                  check-sou-32 \
  72   73                  check-sou-64 \
  73   74                  check-forward-32 \
  74   75                  check-forward-64 \
  75   76                  check-function \
       77 +                check-qualifiers \
  76   78                  check-merge-static \
  77   79                  check-merge-forward-32 \
  78   80                  check-merge-forward-64 \
  79   81                  check-merge-dedup \
  80   82                  check-merge-reduction \
  81   83                  check-merge-weak \
  82   84                  check-weak
  83   85  
  84   86  COMMON_OBJS =   check-common.o
  85   87  ALL_OBJS =      $(CHECKS:%=%.o) $(CHECKS:%-32=%.32.o) $(CHECKS:%-64=%.64.o) $(COMMON_OBJS)
↓ open down ↓ 3 lines elided ↑ open up ↑
  89   91  ROOTCHECKS =    $(CHECKS:%=$(TESTDIR)/%)
  90   92  ROOTSCRIPTS =   $(SCRIPTS:%.ksh=$(TESTDIR)/%)
  91   93  
  92   94  ROOTTESTS       := FILEMODE =   0444
  93   95  ROOTCHECKS      := FILEMODE =   0555
  94   96  ROOTSCRIPTS     := FILEMODE =   0555
  95   97  
  96   98  include $(SRC)/cmd/Makefile.cmd
  97   99  include $(SRC)/test/Makefile.com
  98  100  
      101 +CSTD = $(CSTD_GNU99)
      102 +
  99  103  LDLIBS +=       -lctf
 100  104  
 101  105  check-merge-static :=   LDLIBS += -lelf
 102  106  
 103  107  all: $(CHECKS)
 104  108  
 105  109  install: all $(ROOTTESTS) $(ROOTCHECKS) $(ROOTSCRIPTS)
 106  110  
 107  111  $(CHECKS): $(COMMON_OBJS)
 108  112  
↓ open down ↓ 45 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX