]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
make the tests work on FreeBSD, they will now fail under Linux
authorMiek Gieben <miekg@NLnetLabs.nl>
Mon, 10 Oct 2005 09:43:57 +0000 (09:43 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Mon, 10 Oct 2005 09:43:57 +0000 (09:43 +0000)
test/01-checkout.tpkg
test/02-lint.tpkg
test/99-cleanup.tpkg
test/TODO [new file with mode: 0644]

index d4322a3eaccd84927bfe144d4e88cd64916fe980..58173848771edcdefa621fa86e2e0d4f7cd4f2a9 100644 (file)
-#!/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'.
+# This is a shell archive.  Save it in a file, remove anything before
+# this line, and then unpack it by entering "sh file".  Note, it may
+# create directories; files and directories will be owned by you and
+# have default permissions.
 #
-# Made on 2005-10-07 21:15 CEST by <miekg@elektron>.
-# Source directory was `/home/miekg/svn/libdns/trunk/test'.
+# This archive contains:
 #
-# Existing files will *not* be overwritten unless `-c' is specified.
+#      01-checkout.dsc
+#      01-checkout.test
 #
-# This shar contains:
-# length mode       name
-# ------ ---------- ------------------------------------------
-#    252 -rw------- 01-checkout.dsc
-#    304 -rw------- 01-checkout.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 _sh24199; then
-  $echo 'x -' 'creating lock directory'
-else
-  $echo 'failed to create lock directory'
-  exit 1
-fi
-# ============= 01-checkout.dsc ==============
-if test -f '01-checkout.dsc' && test "$first_param" != -c; then
-  $echo 'x -' SKIPPING '01-checkout.dsc' '(file already exists)'
-else
-  $echo 'x -' extracting '01-checkout.dsc' '(text)'
-  sed 's/^X//' << 'SHAR_EOF' > '01-checkout.dsc' &&
-BaseName: 01-checkout
-Version: 1.0
-Description: check out libdns from svn and compile it
-CreationDate: Fri Oct  7 21:09:03 CEST 2005
-Maintainer: Miek Gieben
-Category: 
-Component:
-Depends: 
-Pre: 
-Post:
-Test: 01-checkout.test
-AuxFiles: 
-Passed:
-Failure:
-SHAR_EOF
-  (set 20 05 10 07 21 09 27 '01-checkout.dsc'; eval "$shar_touch") &&
-  chmod 0600 '01-checkout.dsc' ||
-  $echo 'restore of' '01-checkout.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 '01-checkout.dsc:' 'MD5 check failed'
-15a00891f55acc8f401e0f819cecda8c  01-checkout.dsc
-SHAR_EOF
-  else
-    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '01-checkout.dsc'`"
-    test 252 -eq "$shar_count" ||
-    $echo '01-checkout.dsc:' 'original size' '252,' 'current size' "$shar_count!"
-  fi
-fi
-# ============= 01-checkout.test ==============
-if test -f '01-checkout.test' && test "$first_param" != -c; then
-  $echo 'x -' SKIPPING '01-checkout.test' '(file already exists)'
-else
-  $echo 'x -' extracting '01-checkout.test' '(text)'
-  sed 's/^X//' << 'SHAR_EOF' > '01-checkout.test' &&
-[ -f /home/miekg/svn/libdns/trunk/test/tpkg.var ] && source /home/miekg/svn/libdns/trunk/test/tpkg.var
+echo x - 01-checkout.dsc
+sed 's/^X//' >01-checkout.dsc << 'END-of-01-checkout.dsc'
+XBaseName: 01-checkout
+XVersion: 1.0
+XDescription: check out libdns from svn and compile it
+XCreationDate: Fri Oct  7 21:09:03 CEST 2005
+XMaintainer: Miek Gieben
+XCategory: 
+XComponent:
+XDepends: 
+XPre: 
+XPost:
+XTest: 01-checkout.test
+XAuxFiles: 
+XPassed:
+XFailure:
+END-of-01-checkout.dsc
+echo x - 01-checkout.test
+sed 's/^X//' >01-checkout.test << 'END-of-01-checkout.test'
+X[ -f ../.tpkg.var ] && source ../.tpkg.var
 X
-TPKG_BUILD=`mktemp -d`
+XTPKG_BUILD=`mktemp -d /tmp/XXXXXX`
 X
-echo "TPKG_BUILD=$TPKG_BUILD" >> $TPKG_VAR
+Xecho "TPKG_BUILD=$TPKG_BUILD" >> $TPKG_VAR
 X
-svn co svn+ssh://open.nlnetlabs.nl/svn/libdns/trunk $TPKG_BUILD
+Xsvn co file:///svn/libdns/trunk $TPKG_BUILD
 X
-cd $TPKG_BUILD
-libtoolize && autoreconf && \
+Xcd $TPKG_BUILD
+Xlibtoolize15 && autoheader259 && autoconf259 && \
 X./configure && \
-make
-SHAR_EOF
-  (set 20 05 10 07 21 12 48 '01-checkout.test'; eval "$shar_touch") &&
-  chmod 0600 '01-checkout.test' ||
-  $echo 'restore of' '01-checkout.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 '01-checkout.test:' 'MD5 check failed'
-0fb62fd873c6948604310d61c21f39c3  01-checkout.test
-SHAR_EOF
-  else
-    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '01-checkout.test'`"
-    test 304 -eq "$shar_count" ||
-    $echo '01-checkout.test:' 'original size' '304,' 'current size' "$shar_count!"
-  fi
-fi
-rm -fr _sh24199
-exit 0
+Xgmake
+END-of-01-checkout.test
+exit
+
index de1a759282efea4c60b97018b807ebba3586ffaa..11412f0b31d6f78704bd3d40f0042111a0cb0cba 100644 (file)
-#!/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'.
+# This is a shell archive.  Save it in a file, remove anything before
+# this line, and then unpack it by entering "sh file".  Note, it may
+# create directories; files and directories will be owned by you and
+# have default permissions.
 #
-# Made on 2005-10-10 10:51 CEST by <miekg@floep>.
-# Source directory was `/home/miekg/svn/libdns/trunk/test/02-lint.NOPcEM'.
+# This archive contains:
 #
-# Existing files will *not* be overwritten unless `-c' is specified.
+#      02-lint.dsc
+#      02-lint.test
 #
-# This shar contains:
-# length mode       name
-# ------ ---------- ------------------------------------------
-#    245 -rw------- 02-lint.dsc
-#    130 -rw------- 02-lint.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 _sh10389; then
-  $echo 'x -' 'creating lock directory'
-else
-  $echo 'failed to create lock directory'
-  exit 1
-fi
-# ============= 02-lint.dsc ==============
-if test -f '02-lint.dsc' && test "$first_param" != -c; then
-  $echo 'x -' SKIPPING '02-lint.dsc' '(file already exists)'
-else
-  $echo 'x -' extracting '02-lint.dsc' '(text)'
-  sed 's/^X//' << 'SHAR_EOF' > '02-lint.dsc' &&
-BaseName: 02-lint
-Version: 1.0
-Description: Do a make lint on libdns
-CreationDate: Fri Oct  7 21:16:30 CEST 2005
-Maintainer: Miek Gieben
-Category: 
-Component:
-Depends: 01-checkout.tpkg
-Pre: 
-Post: 
-Test: 02-lint.test
-AuxFiles: 
-Passed:
-Failure:
-SHAR_EOF
-  (set 20 05 10 10 10 48 58 '02-lint.dsc'; eval "$shar_touch") &&
-  chmod 0600 '02-lint.dsc' ||
-  $echo 'restore of' '02-lint.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 '02-lint.dsc:' 'MD5 check failed'
-fb57f76bd30fbacf33b4a350abc6e4d1  02-lint.dsc
-SHAR_EOF
-  else
-    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '02-lint.dsc'`"
-    test 245 -eq "$shar_count" ||
-    $echo '02-lint.dsc:' 'original size' '245,' 'current size' "$shar_count!"
-  fi
-fi
-# ============= 02-lint.test ==============
-if test -f '02-lint.test' && test "$first_param" != -c; then
-  $echo 'x -' SKIPPING '02-lint.test' '(file already exists)'
-else
-  $echo 'x -' extracting '02-lint.test' '(text)'
-  sed 's/^X//' << 'SHAR_EOF' > '02-lint.test' &&
-[ -f /home/miekg/svn/libdns/trunk/test/tpkg.var ] && source /home/miekg/svn/libdns/trunk/test/tpkg.var
+echo x - 02-lint.dsc
+sed 's/^X//' >02-lint.dsc << 'END-of-02-lint.dsc'
+XBaseName: 02-lint
+XVersion: 1.0
+XDescription: Do a make lint on libdns
+XCreationDate: Fri Oct  7 21:16:30 CEST 2005
+XMaintainer: Miek Gieben
+XCategory: 
+XComponent:
+XDepends: 01-checkout.tpkg
+XPre: 
+XPost: 
+XTest: 02-lint.test
+XAuxFiles: 
+XPassed:
+XFailure:
+END-of-02-lint.dsc
+echo x - 02-lint.test
+sed 's/^X//' >02-lint.test << 'END-of-02-lint.test'
+X[ -f ../.tpkg.var ] && source ../.tpkg.var
 X
-cd $TPKG_BUILD
-make lint 
-SHAR_EOF
-  (set 20 05 10 07 21 20 22 '02-lint.test'; eval "$shar_touch") &&
-  chmod 0600 '02-lint.test' ||
-  $echo 'restore of' '02-lint.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 '02-lint.test:' 'MD5 check failed'
-cd023451e1cff93cf527f90f2a3ec7ad  02-lint.test
-SHAR_EOF
-  else
-    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '02-lint.test'`"
-    test 130 -eq "$shar_count" ||
-    $echo '02-lint.test:' 'original size' '130,' 'current size' "$shar_count!"
-  fi
-fi
-rm -fr _sh10389
-exit 0
+Xcd $TPKG_BUILD
+Xgmake lint 
+END-of-02-lint.test
+exit
+
index 05ec3ef3e5aef8d7ad45b4e10c6458c875f61255..da2e0914c2bd9e264e8e60fe4708389d66d1bab5 100644 (file)
-#!/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'.
+# This is a shell archive.  Save it in a file, remove anything before
+# this line, and then unpack it by entering "sh file".  Note, it may
+# create directories; files and directories will be owned by you and
+# have default permissions.
 #
-# Made on 2005-10-07 21:26 CEST by <miekg@elektron>.
-# Source directory was `/home/miekg/svn/libdns/trunk/test/tmp.AFmbyz'.
+# This archive contains:
 #
-# Existing files will *not* be overwritten unless `-c' is specified.
+#      99-cleanup.dsc
+#      99-cleanup.test
 #
-# This shar contains:
-# length mode       name
-# ------ ---------- ------------------------------------------
-#    235 -rw------- 99-cleanup.dsc
-#    142 -rw------- 99-cleanup.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 _sh31592; then
-  $echo 'x -' 'creating lock directory'
-else
-  $echo 'failed to create lock directory'
-  exit 1
-fi
-# ============= 99-cleanup.dsc ==============
-if test -f '99-cleanup.dsc' && test "$first_param" != -c; then
-  $echo 'x -' SKIPPING '99-cleanup.dsc' '(file already exists)'
-else
-  $echo 'x -' extracting '99-cleanup.dsc' '(text)'
-  sed 's/^X//' << 'SHAR_EOF' > '99-cleanup.dsc' &&
-BaseName: 99-cleanup
-Version: 1.0
-Description: Cleaning up the builddir
-CreationDate: Fri Oct  7 21:22:58 CEST 2005
-Maintainer: Miek Gieben
-Category: 
-Component:
-Depends: 
-Pre: 
-Post: 
-Test: 99-cleanup.test
-AuxFiles: 
-Passed:
-Failure:
-SHAR_EOF
-  (set 20 05 10 07 21 25 31 '99-cleanup.dsc'; eval "$shar_touch") &&
-  chmod 0600 '99-cleanup.dsc' ||
-  $echo 'restore of' '99-cleanup.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 '99-cleanup.dsc:' 'MD5 check failed'
-b1e9acaffc0b37e057b288efc1a0c7d0  99-cleanup.dsc
-SHAR_EOF
-  else
-    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '99-cleanup.dsc'`"
-    test 235 -eq "$shar_count" ||
-    $echo '99-cleanup.dsc:' 'original size' '235,' 'current size' "$shar_count!"
-  fi
-fi
-# ============= 99-cleanup.test ==============
-if test -f '99-cleanup.test' && test "$first_param" != -c; then
-  $echo 'x -' SKIPPING '99-cleanup.test' '(file already exists)'
-else
-  $echo 'x -' extracting '99-cleanup.test' '(text)'
-  sed 's/^X//' << 'SHAR_EOF' > '99-cleanup.test' &&
-[ -f /home/miekg/svn/libdns/trunk/test/tpkg.var ] && source /home/miekg/svn/libdns/trunk/test/tpkg.var
+echo x - 99-cleanup.dsc
+sed 's/^X//' >99-cleanup.dsc << 'END-of-99-cleanup.dsc'
+XBaseName: 99-cleanup
+XVersion: 1.0
+XDescription: Cleaning up the builddir
+XCreationDate: Fri Oct  7 21:22:58 CEST 2005
+XMaintainer: Miek Gieben
+XCategory: 
+XComponent:
+XDepends: 
+XPre: 
+XPost: 
+XTest: 99-cleanup.test
+XAuxFiles: 
+XPassed:
+XFailure:
+END-of-99-cleanup.dsc
+echo x - 99-cleanup.test
+sed 's/^X//' >99-cleanup.test << 'END-of-99-cleanup.test'
+X[ -f ../.tpkg.var ] && source ../.tpkg.var
 X
-# cleanup the mess
-rm -rf $TPKG_BUILD
-SHAR_EOF
-  (set 20 05 10 07 21 24 14 '99-cleanup.test'; eval "$shar_touch") &&
-  chmod 0600 '99-cleanup.test' ||
-  $echo 'restore of' '99-cleanup.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 '99-cleanup.test:' 'MD5 check failed'
-e2e85c757f85175c39d6084ccebea19d  99-cleanup.test
-SHAR_EOF
-  else
-    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '99-cleanup.test'`"
-    test 142 -eq "$shar_count" ||
-    $echo '99-cleanup.test:' 'original size' '142,' 'current size' "$shar_count!"
-  fi
-fi
-rm -fr _sh31592
-exit 0
+X# cleanup the mess
+Xrm -rf $TPKG_BUILD
+END-of-99-cleanup.test
+exit
+
diff --git a/test/TODO b/test/TODO
new file mode 100644 (file)
index 0000000..b94662a
--- /dev/null
+++ b/test/TODO
@@ -0,0 +1,2 @@
+make it work on all platforms
+gmake, libtoolize shit on FreeBSD