From: Miek Gieben Date: Wed, 11 Jan 2006 10:57:33 +0000 (+0000) Subject: added compilation test with: configure --without-ssl X-Git-Tag: release-1.1.0~443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5684b347bb78e7ece588bedda69d01d263067edc;p=thirdparty%2Fldns.git added compilation test with: configure --without-ssl --- diff --git a/test/999-compile-nossl.tpkg b/test/999-compile-nossl.tpkg new file mode 100644 index 00000000..4667523c --- /dev/null +++ b/test/999-compile-nossl.tpkg @@ -0,0 +1,179 @@ +#!/bin/sh +# This is a shell archive (produced by GNU sharutils 4.2.1). +# To extract the files from this archive, save it to some FILE, remove +# everything before the `!/bin/sh' line above, then type `sh FILE'. +# +# Made on 2006-01-11 11:54 CET by . +# Source directory was `/home/miekg/svn/libdns/trunk/test/999-compile-nossl.dir'. +# +# Existing files will *not* be overwritten unless `-c' is specified. +# +# This shar contains: +# length mode name +# ------ ---------- ------------------------------------------ +# 251 -rw------- 999-compile-nossl.dsc +# 175 -rw------- 999-compile-nossl.help +# 530 -rw------- 999-compile-nossl.test +# +save_IFS="${IFS}" +IFS="${IFS}:" +gettext_dir=FAILED +locale_dir=FAILED +first_param="$1" +for dir in $PATH +do + if test "$gettext_dir" = FAILED && test -f $dir/gettext \ + && ($dir/gettext --version >/dev/null 2>&1) + then + set `$dir/gettext --version 2>&1` + if test "$3" = GNU + then + gettext_dir=$dir + fi + fi + if test "$locale_dir" = FAILED && test -f $dir/shar \ + && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) + then + locale_dir=`$dir/shar --print-text-domain-dir` + fi +done +IFS="$save_IFS" +if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED +then + echo=echo +else + TEXTDOMAINDIR=$locale_dir + export TEXTDOMAINDIR + TEXTDOMAIN=sharutils + export TEXTDOMAIN + echo="$gettext_dir/gettext -s" +fi +if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then + shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"' +elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then + shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"' +elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then + shar_touch='touch -am $3$4$5$6$2 "$8"' +else + shar_touch=: + echo + $echo 'WARNING: not restoring timestamps. Consider getting and' + $echo "installing GNU \`touch', distributed in GNU File Utilities..." + echo +fi +rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch +# +if mkdir _sh12117; then + $echo 'x -' 'creating lock directory' +else + $echo 'failed to create lock directory' + exit 1 +fi +# ============= 999-compile-nossl.dsc ============== +if test -f '999-compile-nossl.dsc' && test "$first_param" != -c; then + $echo 'x -' SKIPPING '999-compile-nossl.dsc' '(file already exists)' +else + $echo 'x -' extracting '999-compile-nossl.dsc' '(text)' + sed 's/^X//' << 'SHAR_EOF' > '999-compile-nossl.dsc' && +BaseName: 999-compile-nossl +Version: 1.0 +Description: compile ldns without openssl +CreationDate: Wed Jan 11 11:51:50 CET 2006 +Maintainer: Miek Gieben +Category: +Component: +Depends: +Pre: +Post: +Test: 999-compile-nossl.test +AuxFiles: +Passed: +Failure: +SHAR_EOF + (set 20 06 01 11 11 52 05 '999-compile-nossl.dsc'; eval "$shar_touch") && + chmod 0600 '999-compile-nossl.dsc' || + $echo 'restore of' '999-compile-nossl.dsc' 'failed' + if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ + && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then + md5sum -c << SHAR_EOF >/dev/null 2>&1 \ + || $echo '999-compile-nossl.dsc:' 'MD5 check failed' +b08f8ff32decd442452fe3ef479292f7 999-compile-nossl.dsc +SHAR_EOF + else + shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '999-compile-nossl.dsc'`" + test 251 -eq "$shar_count" || + $echo '999-compile-nossl.dsc:' 'original size' '251,' 'current size' "$shar_count!" + fi +fi +# ============= 999-compile-nossl.help ============== +if test -f '999-compile-nossl.help' && test "$first_param" != -c; then + $echo 'x -' SKIPPING '999-compile-nossl.help' '(file already exists)' +else + $echo 'x -' extracting '999-compile-nossl.help' '(text)' + sed 's/^X//' << 'SHAR_EOF' > '999-compile-nossl.help' && +Synopsis: tpkg -a ../../ exe 01-compile.tpkg +-a path: path is where the source lives +as the test is executed in it own subsdir it will +need ../../ is you use a relative path +SHAR_EOF + (set 20 06 01 11 11 52 18 '999-compile-nossl.help'; eval "$shar_touch") && + chmod 0600 '999-compile-nossl.help' || + $echo 'restore of' '999-compile-nossl.help' 'failed' + if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ + && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then + md5sum -c << SHAR_EOF >/dev/null 2>&1 \ + || $echo '999-compile-nossl.help:' 'MD5 check failed' +5b2c9d6283f060985adc7284c4c1e9e3 999-compile-nossl.help +SHAR_EOF + else + shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '999-compile-nossl.help'`" + test 175 -eq "$shar_count" || + $echo '999-compile-nossl.help:' 'original size' '175,' 'current size' "$shar_count!" + fi +fi +# ============= 999-compile-nossl.test ============== +if test -f '999-compile-nossl.test' && test "$first_param" != -c; then + $echo 'x -' SKIPPING '999-compile-nossl.test' '(file already exists)' +else + $echo 'x -' extracting '999-compile-nossl.test' '(text)' + sed 's/^X//' << 'SHAR_EOF' > '999-compile-nossl.test' && +[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master +X +export PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:. +X +# first arg is the build dir +TPKG_BUILD=$1 +X +cd $TPKG_BUILD +X +case $OSTYPE in +X linux*) +X libtoolize && autoreconf && \ +X ./configure --without-ssl && \ +X make +X ;; +X freebsd*) +X libtoolize15 && \ +X autoconf259 && autoheader259 && \ +X ./configure --without-ssl && \ +X gmake +X ;; +esac +SHAR_EOF + (set 20 06 01 11 11 53 52 '999-compile-nossl.test'; eval "$shar_touch") && + chmod 0600 '999-compile-nossl.test' || + $echo 'restore of' '999-compile-nossl.test' 'failed' + if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ + && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then + md5sum -c << SHAR_EOF >/dev/null 2>&1 \ + || $echo '999-compile-nossl.test:' 'MD5 check failed' +5b64d80c0c830572c5329e783d1633c8 999-compile-nossl.test +SHAR_EOF + else + shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '999-compile-nossl.test'`" + test 530 -eq "$shar_count" || + $echo '999-compile-nossl.test:' 'original size' '530,' 'current size' "$shar_count!" + fi +fi +rm -fr _sh12117 +exit 0