]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
add another test with a quite normal drill run
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 1 Nov 2005 14:01:51 +0000 (14:01 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 1 Nov 2005 14:01:51 +0000 (14:01 +0000)
test/04-run-normal.tpkg [new file with mode: 0644]

diff --git a/test/04-run-normal.tpkg b/test/04-run-normal.tpkg
new file mode 100644 (file)
index 0000000..c01d843
--- /dev/null
@@ -0,0 +1,170 @@
+#!/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 2005-11-01 15:00 CET by <miekg@floep>.
+# Source directory was `/home/miekg/svn/libdns/trunk/test/04-run-normal.dir'.
+#
+# Existing files will *not* be overwritten unless `-c' is specified.
+#
+# This shar contains:
+# length mode       name
+# ------ ---------- ------------------------------------------
+#    277 -rw------- 04-run-normal.dsc
+#     51 -rw------- 04-run-normal.help
+#    522 -rw------- 04-run-normal.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 _sh26098; then
+  $echo 'x -' 'creating lock directory'
+else
+  $echo 'failed to create lock directory'
+  exit 1
+fi
+# ============= 04-run-normal.dsc ==============
+if test -f '04-run-normal.dsc' && test "$first_param" != -c; then
+  $echo 'x -' SKIPPING '04-run-normal.dsc' '(file already exists)'
+else
+  $echo 'x -' extracting '04-run-normal.dsc' '(text)'
+  sed 's/^X//' << 'SHAR_EOF' > '04-run-normal.dsc' &&
+BaseName: 04-run-normal
+Version: 1.0
+Description: run drill and don't do anything fancy
+CreationDate: Tue Nov  1 14:59:25 CET 2005
+Maintainer: Miek Gieben
+Category: 
+Component:
+Depends: 
+Help: 04-run-normal.help
+Pre: 
+Post:
+Test: 04-run-normal.test
+AuxFiles: 
+Passed:
+Failure:
+SHAR_EOF
+  (set 20 05 11 01 14 59 52 '04-run-normal.dsc'; eval "$shar_touch") &&
+  chmod 0600 '04-run-normal.dsc' ||
+  $echo 'restore of' '04-run-normal.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 '04-run-normal.dsc:' 'MD5 check failed'
+25174b897d9b0b3dea5010965d708714  04-run-normal.dsc
+SHAR_EOF
+  else
+    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '04-run-normal.dsc'`"
+    test 277 -eq "$shar_count" ||
+    $echo '04-run-normal.dsc:' 'original size' '277,' 'current size' "$shar_count!"
+  fi
+fi
+# ============= 04-run-normal.help ==============
+if test -f '04-run-normal.help' && test "$first_param" != -c; then
+  $echo 'x -' SKIPPING '04-run-normal.help' '(file already exists)'
+else
+  $echo 'x -' extracting '04-run-normal.help' '(text)'
+  sed 's/^X//' << 'SHAR_EOF' > '04-run-normal.help' &&
+synopsis: tpkg -a <path of ldns> exe 04-run-normal
+SHAR_EOF
+  (set 20 05 11 01 15 00 05 '04-run-normal.help'; eval "$shar_touch") &&
+  chmod 0600 '04-run-normal.help' ||
+  $echo 'restore of' '04-run-normal.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 '04-run-normal.help:' 'MD5 check failed'
+864377be49c84e42e9e9fb81944131d7  04-run-normal.help
+SHAR_EOF
+  else
+    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '04-run-normal.help'`"
+    test 51 -eq "$shar_count" ||
+    $echo '04-run-normal.help:' 'original size' '51,' 'current size' "$shar_count!"
+  fi
+fi
+# ============= 04-run-normal.test ==============
+if test -f '04-run-normal.test' && test "$first_param" != -c; then
+  $echo 'x -' SKIPPING '04-run-normal.test' '(file already exists)'
+else
+  $echo 'x -' extracting '04-run-normal.test' '(text)'
+  sed 's/^X//' << 'SHAR_EOF' > '04-run-normal.test' &&
+# #-- 03-run.test --#
+# source the master var file when it's there
+[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
+# use .tpkg.var.test for in test variable passing
+[ -f .tpkg.var.test ] && source .tpkg.var.test
+# svnserve resets the path, you may need to adjust it, like this:
+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
+cd drill/
+LD_LIBRARY_PATH=../.libs ./drill @localhost mx miek.nl && \
+LD_LIBRARY_PATH=../.libs ./drill  mx miek.nl
+SHAR_EOF
+  (set 20 05 11 01 15 00 35 '04-run-normal.test'; eval "$shar_touch") &&
+  chmod 0600 '04-run-normal.test' ||
+  $echo 'restore of' '04-run-normal.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 '04-run-normal.test:' 'MD5 check failed'
+b7d881568b8a4a89c38c3c096532ce90  04-run-normal.test
+SHAR_EOF
+  else
+    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '04-run-normal.test'`"
+    test 522 -eq "$shar_count" ||
+    $echo '04-run-normal.test:' 'original size' '522,' 'current size' "$shar_count!"
+  fi
+fi
+rm -fr _sh26098
+exit 0