summaryrefslogtreecommitdiffstats
path: root/src/kadmin/export/unit-test
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1996-09-11 20:38:17 +0000
committerTheodore Tso <tytso@mit.edu>1996-09-11 20:38:17 +0000
commitc345ae24c280496d0cb3acfa96258c7dbfeb25f2 (patch)
tree42f265a0aab4e417d6973e78a860004693260508 /src/kadmin/export/unit-test
parent5703cfe7cdaeb9e8d21a8dba5993c96a48037cf6 (diff)
downloadkrb5-c345ae24c280496d0cb3acfa96258c7dbfeb25f2.tar.gz
krb5-c345ae24c280496d0cb3acfa96258c7dbfeb25f2.tar.xz
krb5-c345ae24c280496d0cb3acfa96258c7dbfeb25f2.zip
Remove the kadmin/import and kadmin/export directories since the are
subsumed by kdb5_util. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9080 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/export/unit-test')
-rw-r--r--src/kadmin/export/unit-test/config/unix.exp36
-rw-r--r--src/kadmin/export/unit-test/export.0/dotest.exp29
-rw-r--r--src/kadmin/export/unit-test/export.0/output.exp43
-rw-r--r--src/kadmin/export/unit-test/export.0/usage.exp25
4 files changed, 0 insertions, 133 deletions
diff --git a/src/kadmin/export/unit-test/config/unix.exp b/src/kadmin/export/unit-test/config/unix.exp
deleted file mode 100644
index e8d852f89..000000000
--- a/src/kadmin/export/unit-test/config/unix.exp
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# export_version -- extract and print the version number of export
-#
-
-proc export_version {} {
- global EXPORT
- set tmp [exec ident $EXPORT]
- if [regexp {Header: .*export.c,v ([0-9]+\.[0-9]+)} $tmp \
- dummy version] then {
- clone_output "$EXPORT version $version\n"
- } else {
- clone_output "$EXPORT version <unknown>\n"
- }
-}
-#
-# export_load -- loads the program
-#
-proc export_load {} {
- #
-}
-
-# export_exit -- clean up and exit
-proc export_exit {} {
- #
-}
-
-#
-# export_start -- start export running
-#
-proc export_start { args } {
- global EXPORT
- global spawn_id
-
- verbose "% $EXPORT $args" 1
- eval spawn $EXPORT $args
-}
diff --git a/src/kadmin/export/unit-test/export.0/dotest.exp b/src/kadmin/export/unit-test/export.0/dotest.exp
deleted file mode 100644
index 93ac21250..000000000
--- a/src/kadmin/export/unit-test/export.0/dotest.exp
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-# $Id$
-#
-
-verbose "starting test: dotest.sh"
-
-spawn ./dotest.sh
-
-set timeout 60
-
-expect {
- -re "error dumping (princ|policy)\.(\[12\])"
- { fail $expect_out(0,string); exp_continue }
- -re "export/import (principal|policy) db (failed|succeeded)"
- {
- if {![string compare $expect_out(2,string) failed]} {
- fail $expect_out(0,string)
- } else {
- pass $expect_out(0,string)
- }
- exp_continue
- }
- eof break
- timeout { fail "timeout"; close }
-}
-
-set w [wait]
-
-verbose "% Exit $w"
diff --git a/src/kadmin/export/unit-test/export.0/output.exp b/src/kadmin/export/unit-test/export.0/output.exp
deleted file mode 100644
index 6e0d4144b..000000000
--- a/src/kadmin/export/unit-test/export.0/output.exp
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# $Id$
-#
-
-set timeout 30
-
-load_lib "helpers.exp"
-
-#
-# Here are the tests
-#
-
-exec rm -f /tmp/dbexport
-
-export_win "B.25: General success" /tmp/dbexport
-
-check_mode "B.26" /tmp/dbexport 0400
-
-if {[catch "exec chmod 666 /tmp/dbexport" output]} {
- unresolved "B.27: can't chmod /tmp/dbexport: $output"
-} else {
- export_win "prep for B.27" /tmp/dbexport
- check_mode "B.27" /tmp/dbexport 0400
- exec rm -f /tmp/dbexport
-}
-
-proc test28 {} {
- if {[catch "file stat /dev/null stats" output]} {
- unresolved "B.28: can't stat /dev/null: $output"
- return
- }
- set stats(mode) [expr $stats(mode) & 07777]
- if {$stats(mode) == [expr 0400]} {
- if {[catch "exec chmod 666 /dev/null" output]} {
- unresolved "B.28: can't chmod /dev/null: $output"
- return
- }
- set stats(mode) [expr 0666]
- }
- export_win "prep for B.28" /dev/null
- check_mode "B.28" /dev/null $stats(mode)
-}
-test28
diff --git a/src/kadmin/export/unit-test/export.0/usage.exp b/src/kadmin/export/unit-test/export.0/usage.exp
deleted file mode 100644
index 9a592c9b8..000000000
--- a/src/kadmin/export/unit-test/export.0/usage.exp
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# $Id$
-#
-
-set timeout 30
-
-load_lib "helpers.exp"
-
-#
-# Here are the tests
-#
-
-export_lose "A.9: output file not writable" /foo/bar/baz \
- "No such file or directory while opening output file"
-
-export_lose "A.10: two arguments" {foo bar} \
- "Usage:"
-
-# XXX this depends on this being the last test run
-
-system {rm /krb5/kadb5}
-
-export_lose "A.2: /krb5 doesn't exist" /tmp/dbexport \
- "No such file or directory while opening database"
-