Add initial support skeleton code for DejaGnu testsuite
authorJacob Bachmeyer <jcb@gnu.org>
Sat, 27 Feb 2021 02:54:27 +0000 (20:54 -0600)
committerJacob Bachmeyer <jcb@gnu.org>
Sat, 27 Feb 2021 02:54:27 +0000 (20:54 -0600)
testsuite/config/unix.exp [new file with mode: 0644]
testsuite/lib/upload.exp [new file with mode: 0644]

diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
new file mode 100644 (file)
index 0000000..fa81ada
--- /dev/null
@@ -0,0 +1 @@
+# empty file
diff --git a/testsuite/lib/upload.exp b/testsuite/lib/upload.exp
new file mode 100644 (file)
index 0000000..b566d23
--- /dev/null
@@ -0,0 +1,29 @@
+# DejaGnu tool init file for GNU FTP upload handler tests
+
+# Copyright (C) 2021 Jacob Bachmeyer
+#
+# This file is part of a testsuite for the GNU FTP upload system.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+set UPLOAD_TOOL [file join $srcdir upload-ftp-v1.2.pl]
+
+proc upload_exit {} {}
+proc upload_version {} {
+    global UPLOAD_TOOL
+
+    exec -- $UPLOAD_TOOL --version >@ stdout
+}
+
+#EOF