summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-04-05 13:23:43 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-04-05 13:26:07 -0700
commit6830826727e2dc0c3bbe1fc3697f44af41a4c955 (patch)
tree38426b0d10befe2ada886e8258b58c7c3fe28ea2 /test
parent3eb3167515e51f89afc9ce4b353d88986bdd8bb6 (diff)
More test scripts
Added a few more test scripts including dual-headers, which just makes sure that only the first LSB header is read. The mountfs and network scripts are there to satisfy the requirements from the existing test scripts.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am3
-rw-r--r--test/init.d/dual-headers40
-rw-r--r--test/init.d/mountfs27
-rw-r--r--test/init.d/network22
4 files changed, 91 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 7900770..4834e75 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,6 +1,7 @@
INCLUDES = -I$(top_srcdir)/lib
-testscripts = init.d/bar init.d/foo init.d/barf
+testscripts = init.d/bar init.d/foo init.d/barf init.d/dual-headers \
+ init.d/mountfs init.d/network
EXTRA_DIST = $(testscripts)
TESTS = tstr tstrarg tdep $(srcdir)/tparse.sh $(srcdir)/tparse-dir.sh \
diff --git a/test/init.d/dual-headers b/test/init.d/dual-headers
new file mode 100644
index 0000000..8285e95
--- /dev/null
+++ b/test/init.d/dual-headers
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Begin $rc_base/init.d/dual-headers
+
+### BEGIN INIT INFO
+# Provides : dual-headers
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Required-Start:
+# Required-Stop:
+# Should-Start:
+# Should-Stop:
+# Short-Description: test header parsing
+# Description: The dual-headers script has two LSB headers to
+# see if the parser can deal with that.
+# X-Gado-Default-Start: S30
+# X-Gado-Default-Stop:
+### END INIT INFO
+
+### BEGIN INIT INFO
+# Provides : dual-headers
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Required-Start:
+# Required-Stop:
+# Should-Start:
+# Should-Stop:
+# Short-Description: test header parsing
+# Description: The dual-headers script has two LSB headers to
+# see if the parser can deal with that.
+# X-Gado-Default-Start: S30
+# X-Gado-Default-Stop:
+### END INIT INFO
+
+# Do some other stuff
+case "$1" in
+start)
+ ;;
+stop)
+ ;;
+esac
diff --git a/test/init.d/mountfs b/test/init.d/mountfs
new file mode 100644
index 0000000..eefe2fb
--- /dev/null
+++ b/test/init.d/mountfs
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Begin $rc_base/init.d/mountfs
+
+### BEGIN INIT INFO
+# Provides: $local_fs
+# Default-Start: 1 2 3 4 5
+## Default-Start: sysinit
+# Default-Stop: 0 6
+# Short-Description: Mount local file systems
+# Description: The mountfs script mounts file systems on
+# locally accessible volumes. This means all non-network file systems.
+### END INIT INFO
+
+case "$1" in
+ start)
+ ;;
+
+ stop)
+ ;;
+
+ *)
+ echo "Usage: ${0} {start|stop}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/mountfs
diff --git a/test/init.d/network b/test/init.d/network
new file mode 100644
index 0000000..5c5ab15
--- /dev/null
+++ b/test/init.d/network
@@ -0,0 +1,22 @@
+#!/bin/sh
+# /etc/init.d/network
+
+### BEGIN INIT INFO
+# Provides: $network
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Should-Start: $local_fs
+# Should-Stop: $local_fs
+# Short-Description: Basic networking support
+# Description: The network script enables the initial networking
+# support. Any network interfaces not requiring authentication can
+# be expected to be available.
+### END INIT INFO
+
+# Do some other stuff
+case "$1" in
+start)
+ ;;
+stop)
+ ;;
+esac