summaryrefslogtreecommitdiff
path: root/tests/depmod-data.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/depmod-data.test')
-rwxr-xr-xtests/depmod-data.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/depmod-data.test b/tests/depmod-data.test
new file mode 100755
index 000000000..fdaa52b04
--- /dev/null
+++ b/tests/depmod-data.test
@@ -0,0 +1,30 @@
+#! /bin/sh
+# Copyright (C) 2011 Free Software Foundation, Inc.
+#
+# This program 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 2, 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/>.
+
+# Helper testcase which generate input data for the other tests
+# `*.depmod'. It basically delegates the work to the helper script
+# `depmod-test.sh'.
+
+# Ensure proper definition of $testsrcdir.
+. ./defs-static || exit 99
+
+# Sanity check.
+if test x"$testsrcdir" = x; then
+ echo "$0: \$testsrcdir not set after sourcing of ./defs-static" >&2
+ exit 99
+fi
+
+exec $SHELL $testsrcdir/depmod-tests.sh --generate-data