aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/execve/tests
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2006-05-31 11:13:10 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2006-05-31 11:13:10 +0000
commit393e6ede9e484a0e5c3d6dfaf7ab3c00b95ed441 (patch)
tree53991a628d698e82a910f39be007c49a70769e3f /tools/regression/execve/tests
parent9c0ce099e6d392861d490a77a7eee3825eb4ef5c (diff)
Notes
Diffstat (limited to 'tools/regression/execve/tests')
-rw-r--r--tools/regression/execve/tests/badinterplen4
-rw-r--r--tools/regression/execve/tests/devnullscript4
-rw-r--r--tools/regression/execve/tests/goodaout.c47
-rw-r--r--tools/regression/execve/tests/goodscript4
-rw-r--r--tools/regression/execve/tests/nonexistshell4
-rw-r--r--tools/regression/execve/tests/scriptarg4
-rw-r--r--tools/regression/execve/tests/scriptarg-nospace4
7 files changed, 71 insertions, 0 deletions
diff --git a/tools/regression/execve/tests/badinterplen b/tools/regression/execve/tests/badinterplen
new file mode 100644
index 000000000000..96c049fdc839
--- /dev/null
+++ b/tools/regression/execve/tests/badinterplen
@@ -0,0 +1,4 @@
+#! 456789012345678 0123456789012345 789012345678 012345678901234 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
+# $FreeBSD$
+
+echo succeeded
diff --git a/tools/regression/execve/tests/devnullscript b/tools/regression/execve/tests/devnullscript
new file mode 100644
index 000000000000..73b10205cdbb
--- /dev/null
+++ b/tools/regression/execve/tests/devnullscript
@@ -0,0 +1,4 @@
+#! /dev/null
+# $FreeBSD$
+
+echo succeeded
diff --git a/tools/regression/execve/tests/goodaout.c b/tools/regression/execve/tests/goodaout.c
new file mode 100644
index 000000000000..ebf476b2cf7f
--- /dev/null
+++ b/tools/regression/execve/tests/goodaout.c
@@ -0,0 +1,47 @@
+/* $NetBSD: goodaout.c,v 1.8 2003/07/26 19:38:49 salo Exp $ */
+
+/*-
+ * Copyright (c) 1993 Christopher G. Demetriou
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed for the
+ * NetBSD Project. See http://www.NetBSD.org/ for
+ * information about NetBSD.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int
+main(argc, argv)
+ int argc;
+ char *argv[];
+{
+ printf("succeeded\n");
+ exit(0);
+}
diff --git a/tools/regression/execve/tests/goodscript b/tools/regression/execve/tests/goodscript
new file mode 100644
index 000000000000..51270dc38da1
--- /dev/null
+++ b/tools/regression/execve/tests/goodscript
@@ -0,0 +1,4 @@
+#! /bin/csh
+# $FreeBSD$
+
+echo succeeded
diff --git a/tools/regression/execve/tests/nonexistshell b/tools/regression/execve/tests/nonexistshell
new file mode 100644
index 000000000000..f9ee705bd9e9
--- /dev/null
+++ b/tools/regression/execve/tests/nonexistshell
@@ -0,0 +1,4 @@
+#! /foo/bar/baz
+# $FreeBSD$
+
+echo foo
diff --git a/tools/regression/execve/tests/scriptarg b/tools/regression/execve/tests/scriptarg
new file mode 100644
index 000000000000..2700f1c3a38f
--- /dev/null
+++ b/tools/regression/execve/tests/scriptarg
@@ -0,0 +1,4 @@
+#! /bin/sh -x
+# $FreeBSD$
+
+echo succeeded
diff --git a/tools/regression/execve/tests/scriptarg-nospace b/tools/regression/execve/tests/scriptarg-nospace
new file mode 100644
index 000000000000..6731ad50f4ac
--- /dev/null
+++ b/tools/regression/execve/tests/scriptarg-nospace
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+# $FreeBSD$
+
+echo succeeded