diff --git a/tests/artifacts/PASS-str_make-check.log b/tests/artifacts/PASS-str_make-check.log new file mode 100644 index 0000000..508eed7 --- /dev/null +++ b/tests/artifacts/PASS-str_make-check.log @@ -0,0 +1,196 @@ +aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' +libtoolize: putting auxiliary files in '.'. +libtoolize: copying file './ltmain.sh' +libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in, +libtoolize: and rerunning libtoolize and aclocal. +libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. +aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' +automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' +configure.in:2: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: +configure.in:2: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation +configure.in:3: installing './compile' +automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' +parallel-tests: installing './test-driver' +automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' +configure.in:2: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: +configure.in:2: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation +automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' +/usr/share/automake-1.16/am/ltlibrary.am: warning: 'libhyphen.la': linking libtool libraries using a non-POSIX +/usr/share/automake-1.16/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.in' +Makefile.am:3: while processing Libtool library 'libhyphen.la' +checking for a BSD-compatible install... /bin/install -c +checking whether build environment is sane... yes +/var/str/source/missing: Unknown `--is-lightweight' option +Try `/var/str/source/missing --help' for more information +configure: WARNING: 'missing' script is too old or missing +checking for a thread-safe mkdir -p... /bin/mkdir -p +checking for gawk... gawk +checking whether make sets $(MAKE)... yes +checking whether make supports nested variables... yes +checking for gcc... gcc +checking whether the C compiler works... yes +checking for C compiler default output file name... a.out +checking for suffix of executables... +checking whether we are cross compiling... no +checking for suffix of object files... o +checking whether we are using the GNU C compiler... yes +checking whether gcc accepts -g... yes +checking for gcc option to accept ISO C89... none needed +checking whether gcc understands -c and -o together... yes +checking whether make supports the include directive... yes (GNU style) +checking dependency style of gcc... gcc3 +checking build system type... x86_64-unknown-linux-gnu +checking host system type... x86_64-unknown-linux-gnu +checking how to print strings... printf +checking for a sed that does not truncate output... /bin/sed +checking for grep that handles long lines and -e... /bin/grep +checking for egrep... /bin/grep -E +checking for fgrep... /bin/grep -F +checking for ld used by gcc... /bin/ld +checking if the linker (/bin/ld) is GNU ld... yes +checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B +checking the name lister (/bin/nm -B) interface... BSD nm +checking whether ln -s works... yes +checking the maximum length of command line arguments... 1572864 +checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop +checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop +checking for /bin/ld option to reload object files... -r +checking for objdump... objdump +checking how to recognize dependent libraries... pass_all +checking for dlltool... no +checking how to associate runtime and link libraries... printf %s\n +checking for ar... ar +checking for archiver @FILE support... @ +checking for strip... strip +checking for ranlib... ranlib +checking command to parse /bin/nm -B output from gcc object... ok +checking for sysroot... no +checking for a working dd... /bin/dd +checking how to truncate binary pipes... /bin/dd bs=4096 count=1 +checking for mt... no +checking if : is a manifest tool... no +checking how to run the C preprocessor... gcc -E +checking for ANSI C header files... yes +checking for sys/types.h... yes +checking for sys/stat.h... yes +checking for stdlib.h... yes +checking for string.h... yes +checking for memory.h... yes +checking for strings.h... yes +checking for inttypes.h... yes +checking for stdint.h... yes +checking for unistd.h... yes +checking for dlfcn.h... yes +checking for objdir... .libs +checking if gcc supports -fno-rtti -fno-exceptions... no +checking for gcc option to produce PIC... -fPIC -DPIC +checking if gcc PIC flag -fPIC -DPIC works... yes +checking if gcc static flag -static works... no +checking if gcc supports -c -o file.o... yes +checking if gcc supports -c -o file.o... (cached) yes +checking whether the gcc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes +checking whether -lc should be explicitly linked in... no +checking dynamic linker characteristics... GNU/Linux ld.so +checking how to hardcode library paths into programs... immediate +checking whether stripping libraries is possible... yes +checking if libtool supports shared libraries... yes +checking whether to build shared libraries... yes +checking whether to build static libraries... yes +checking that generated files are newer than configure... done +configure: creating ./config.status +config.status: creating Makefile +config.status: creating doc/Makefile +config.status: creating tests/Makefile +config.status: executing depfiles commands +config.status: executing libtool commands +Making all in doc +make[1]: Entering directory '/var/str/source/doc' +make[1]: Nothing to be done for 'all'. +make[1]: Leaving directory '/var/str/source/doc' +Making all in tests +make[1]: Entering directory '/var/str/source/tests' +make[1]: Nothing to be done for 'all'. +make[1]: Leaving directory '/var/str/source/tests' +make[1]: Entering directory '/var/str/source' +gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" -DPACKAGE_STRING=\"hyphen\ 2.8.8\" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT substrings.o -MD -MP -MF .deps/substrings.Tpo -c -o substrings.o substrings.c +mv -f .deps/substrings.Tpo .deps/substrings.Po +/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o substrings substrings.o +libtool: link: gcc -g -O2 -o substrings substrings.o +gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" -DPACKAGE_STRING=\"hyphen\ 2.8.8\" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT example.o -MD -MP -MF .deps/example.Tpo -c -o example.o example.c +mv -f .deps/example.Tpo .deps/example.Po +/bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" -DPACKAGE_STRING=\"hyphen\ 2.8.8\" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT hnjalloc.lo -MD -MP -MF .deps/hnjalloc.Tpo -c -o hnjalloc.lo hnjalloc.c +libtool: compile: gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" "-DPACKAGE_STRING=\"hyphen 2.8.8\"" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT hnjalloc.lo -MD -MP -MF .deps/hnjalloc.Tpo -c hnjalloc.c -fPIC -DPIC -o .libs/hnjalloc.o +libtool: compile: gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" "-DPACKAGE_STRING=\"hyphen 2.8.8\"" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT hnjalloc.lo -MD -MP -MF .deps/hnjalloc.Tpo -c hnjalloc.c -o hnjalloc.o >/dev/null 2>&1 +mv -f .deps/hnjalloc.Tpo .deps/hnjalloc.Plo +/bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" -DPACKAGE_STRING=\"hyphen\ 2.8.8\" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT hyphen.lo -MD -MP -MF .deps/hyphen.Tpo -c -o hyphen.lo hyphen.c +libtool: compile: gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" "-DPACKAGE_STRING=\"hyphen 2.8.8\"" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT hyphen.lo -MD -MP -MF .deps/hyphen.Tpo -c hyphen.c -fPIC -DPIC -o .libs/hyphen.o +libtool: compile: gcc -DPACKAGE_NAME=\"hyphen\" -DPACKAGE_TARNAME=\"hyphen\" -DPACKAGE_VERSION=\"2.8.8\" "-DPACKAGE_STRING=\"hyphen 2.8.8\"" -DPACKAGE_BUGREPORT=\"nemeth@numbertext.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hyphen\" -DVERSION=\"2.8.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -g -O2 -MT hyphen.lo -MD -MP -MF .deps/hyphen.Tpo -c hyphen.c -o hyphen.o >/dev/null 2>&1 +mv -f .deps/hyphen.Tpo .deps/hyphen.Plo +/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -version-info 3:0:3 -o libhyphen.la -rpath /usr/local/lib hnjalloc.lo hyphen.lo +libtool: link: gcc -shared -fPIC -DPIC .libs/hnjalloc.o .libs/hyphen.o -g -O2 -Wl,-soname -Wl,libhyphen.so.0 -o .libs/libhyphen.so.0.3.0 +libtool: link: (cd ".libs" && rm -f "libhyphen.so.0" && ln -s "libhyphen.so.0.3.0" "libhyphen.so.0") +libtool: link: (cd ".libs" && rm -f "libhyphen.so" && ln -s "libhyphen.so.0.3.0" "libhyphen.so") +libtool: link: ar cru .libs/libhyphen.a hnjalloc.o hyphen.o +libtool: link: ranlib .libs/libhyphen.a +libtool: link: ( cd ".libs" && rm -f "libhyphen.la" && ln -s "../libhyphen.la" "libhyphen.la" ) +/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o example example.o libhyphen.la +libtool: link: gcc -g -O2 -o .libs/example example.o ./.libs/libhyphen.so -Wl,-rpath -Wl,/usr/local/lib +cp -f ./hyphen.tex hyphen.us +patch < ./hyphen.patch +patching file hyphen.us +./tbhyphext.sh <./tbhyphext.tex >hyphen.us2 +cat hyphen.us hyphen.us2 | gawk -f ./lig.awk >hyphen.us3 +cat ./ligpatch.txt >>hyphen.us3 +perl ./substrings.pl hyphen.us3 hyph_en_US.dic UTF-8 2 3 >/dev/null +make[1]: Leaving directory '/var/str/source' +Making check in doc +make[1]: Entering directory '/var/str/source/doc' +make[1]: Nothing to be done for 'check'. +make[1]: Leaving directory '/var/str/source/doc' +Making check in tests +make[1]: Entering directory '/var/str/source/tests' +make check-TESTS +make[2]: Entering directory '/var/str/source/tests' +make[3]: Entering directory '/var/str/source/tests' +PASS: basealt2.test +PASS: basealt.test +PASS: base.test +PASS: conv.test +PASS: unicode.test +PASS: alt.test +PASS: alt2.test +PASS: alt3.test +PASS: alt4.test +PASS: alt5.test +PASS: alt6.test +PASS: compound.test +PASS: compound2.test +PASS: compound3.test +PASS: compound4.test +PASS: settings.test +PASS: settings2.test +PASS: settings3.test +PASS: settings4.test +PASS: lhmin.test +PASS: rhmin.test +PASS: lig.test +PASS: hyphen.test +PASS: num.test +============================================================================ +Testsuite summary for hyphen 2.8.8 +============================================================================ +# TOTAL: 24 +# PASS: 24 +# SKIP: 0 +# XFAIL: 0 +# FAIL: 0 +# XPASS: 0 +# ERROR: 0 +============================================================================ +make[3]: Leaving directory '/var/str/source/tests' +make[2]: Leaving directory '/var/str/source/tests' +make[1]: Leaving directory '/var/str/source/tests' +make[1]: Entering directory '/var/str/source' +make[1]: Nothing to be done for 'check-am'. +make[1]: Leaving directory '/var/str/source' +PASS diff --git a/tests/artifacts/results.yml b/tests/artifacts/results.yml new file mode 100644 index 0000000..9d7a8fd --- /dev/null +++ b/tests/artifacts/results.yml @@ -0,0 +1,7 @@ +results: + +- test: make-check + result: pass + runtime: 13 + logs: + - PASS-str_make-check.log diff --git a/tests/artifacts/test.log b/tests/artifacts/test.log new file mode 100644 index 0000000..cd63d16 --- /dev/null +++ b/tests/artifacts/test.log @@ -0,0 +1 @@ +PASS make-check diff --git a/tests/scripts/make_check.sh b/tests/scripts/make_check.sh new file mode 100755 index 0000000..e710587 --- /dev/null +++ b/tests/scripts/make_check.sh @@ -0,0 +1,32 @@ +#!/bin/bash +############################################################################ +#Developed for hyphen +#This script is used to check sanity for hyphen package +#Usage : ./make_check.sh +# +############################################################################ + +file_count=13 +pkg="hyphen" + +check_return_value () { + if [ $1 != 0 ] ; then + exit $1 + fi +} + +check_files_count(){ + no_of_files=`rpm -qlv $pkg | wc -l` + if [ $no_of_files == $file_count ] + then + echo "PASS" + else + echo "FAIL" + fi +} + +cd ../source +autoreconf -i +automake --foreign -Wall +./configure && make && make check +check_files_count diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..9b5c3af --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,24 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-source + +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + tests: + - make-check: + dir: scripts + run: bash ./make_check.sh + required_packages: + - autoconf + - automake + - libtool + - m4 + - gcc + - sed + - make