ZOSOpenTools / gettextport

Apache License 2.0
0 stars 1 forks source link

testing not working #7

Closed MikeFultonDev closed 1 year ago

MikeFultonDev commented 1 year ago

Starting to work on getting testing going.

Here is what I see:

make  test-memory-ostream test-term-ostream libtests.a
make[6]: Entering directory '/home/fultonm/zopen/dev/gettextport/gettext-0.21/libtextstyle/tests'
depbase=`echo test-memory-ostream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
xlclang -DHAVE_CONFIG_H -I. -I. -I../lib -I..  -DIN_LIBTEXTSTYLE_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../lib -I./../lib -DNSIG=42 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -D_OPEN_SYS_FILE_EXT=1 -D_AE_BIMODAL=1 -D_ENHANCED_ASCII_EXT=0xFFFFFFFF   -qascii -std=gnu11 -qnocsect -qenum=int  -I/home/fultonm/zopen/prod/ncurses-6.3.20221103_130648.zos/include -MT test-memory-ostream.o -MD -MP -MF $depbase.Tpo -c -o test-memory-ostream.o test-memory-ostream.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo dummy.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
xlclang -DHAVE_CONFIG_H -I. -I. -I../lib -I..  -DIN_LIBTEXTSTYLE_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../lib -I./../lib -DNSIG=42 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -D_OPEN_SYS_FILE_EXT=1 -D_AE_BIMODAL=1 -D_ENHANCED_ASCII_EXT=0xFFFFFFFF   -qascii -std=gnu11 -qnocsect -qenum=int  -I/home/fultonm/zopen/prod/ncurses-6.3.20221103_130648.zos/include -MT dummy.o -MD -MP -MF $depbase.Tpo -c -o dummy.o dummy.c &&\
mv -f $depbase.Tpo $depbase.Po
rm -f libtests.a
ar cr libtests.a dummy.o
: libtests.a
/home/fultonm/zopen/prod/bash-5.2.20221030_222659.zos/bin/bash ../libtool  --tag=CC --preserve-dup-deps  --mode=link xlclang  -qascii -std=gnu11 -qnocsect -qenum=int  -I/home/fultonm/zopen/prod/ncurses-6.3.20221103_130648.zos/include  -L/home/fultonm/zopen/prod/ncurses-6.3.20221103_130648.zos/lib -o test-memory-ostream test-memory-ostream.o libtests.a ../lib/libtextstyle.la libtests.a ../lib/libtextstyle.la  -lncurses
libtool: link: xlclang -qascii -std=gnu11 -qnocsect -qenum=int -I/home/fultonm/zopen/prod/ncurses-6.3.20221103_130648.zos/include -o test-memory-ostream test-memory-ostream.o  -L/home/fultonm/zopen/prod/ncurses-6.3.20221103_130648.zos/lib libtests.a libtests.a ../lib/.libs/libtextstyle.a -lncurses
 IEW2788S D41E AN ATTEMPT TO PROCESS ARCHIVE FILE DATA IN PATH ./libtests.a
          FAILED BECAUSE THE FILE DOES NOT CONTAIN VALID DATA. ERROR ID =
          509.
 IEW2453E 920D UNABLE TO PROCESS LIBRARY /0000002 DURING AUTOCALL PROCESSING.
 IEW2788S D41E AN ATTEMPT TO PROCESS ARCHIVE FILE DATA IN PATH ./libtests.a
          FAILED BECAUSE THE FILE DOES NOT CONTAIN VALID DATA. ERROR ID =
          509.
 IEW2453E 920D UNABLE TO PROCESS LIBRARY /0000002 DURING AUTOCALL PROCESSING.
FSUM3065 The LINKEDIT step ended with return code 12.

Presumably because the script is running a .o file through echo and into sed?

MikeFultonDev commented 1 year ago

this appears to be due to our 'ar' facility not being happy having .o's that have no code or data in them. I am testing out a patch that creates a dummy external symbol in dummy.c (similar to a sun #ifdef)

MikeFultonDev commented 1 year ago

next bug in the test suite is that test-sameacls.c expects macros to be defined that aren't, on z/OS

In file included from ./test-sameacls.c:37:
../gnulib-lib/xalloc.h:82:1: warning: unknown attribute '_Noreturn' ignored [-Wunknown-attributes]
_GL_NORETURN_FUNC extern void xalloc_die (void);
^
../gnulib-lib/noreturn.h:68:44: note: expanded from macro '_GL_NORETURN_FUNC'
# define _GL_NORETURN_FUNC __attribute__ ((__noreturn__))
                                           ^
/nfsmnts/bpidrivers/clcv241/S2141/util/usr/include/le/features.h:791:26: note: expanded from macro '__noreturn__'
    #define __noreturn__ _Noreturn
                         ^
./test-sameacls.c:121:9: error: use of undeclared identifier 'ACL_TYPE_ACCESS'
        ACL_TYPE_ACCESS
        ^
./test-sameacls.c:128:28: error: invalid application of 'sizeof' to an incomplete type 'const int []'
    for (t = 0; t < sizeof (types) / sizeof (types[0]); t++)
                           ^~~~~~~
./test-sameacls.c:131:9: error: unknown type name 'acl_t'; did you mean 'lacl_t'?
        acl_t acl1;
        ^~~~~
        lacl_t
...
MikeFultonDev commented 1 year ago

fixed in latest build