OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_test.sh versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_test.sh 1.4 -> 1.5

--- rc_test.sh   2002/02/04 22:35:20     1.4
+++ rc_test.sh   2002/02/07 15:36:26     1.5
@@ -27,26 +27,55 @@
 #
 #  test_rc.sh: Run-command processor test script
 
-#Pre:
-#tar zxvf ossprc-0.9.tar.gz
-#cd ossprc-0.9
-#./configure
-#make
-#su
-#make install
-#export OSSP_RC_ROOT=/etc/ossprc/
-#
-#Assume:
-#Installed program 'mycom' in /usr/local/bin/mycom
-#Valid OSSP run command file rc.mycom in /etc/ossprc/rc.d
-#File rc.mycom contains the sections start, sync, and restart
-#
-#Begin:
-#$ rc mycom start sync restart
-#
-#Output:
-#
-#Post:
-#
-#Procedure:
-#
+# Test short options, should fail for false combination usage
+./rc -dVehilpsrvxLcfqt samba start sleep=2 restart
+echo
+
+# Test short options, should succeed
+./rc -derv -L /sfw/etc/rc.d/rc.%{RCFILE:s/^all$/*/} -c /sfw/etc/rc.conf -f /sfw/etc/rc.func -t /tmp openssh stop sleep=4 start daily minsize=2097152
+echo
+
+# Test some long options, should fail for false combination usage
+./rc --verbose --silent uucp stop sleep=6 start
+echo
+./rc --query --silent zebra bing bang
+echo
+./rc --conf /sfw/rc.conf --locate /sfw/etc/rc.d --query what to enter here
+echo
+
+# Test minimal set of long options, should succeed
+./rc --debug --version rsyncd nothing matters but the version
+echo
+
+# FIXME these cases are not handled yet by our configuration FIXME #
+#./rc --debug --version
+#echo
+#./rc --debug --help
+#echo
+#./rc --debug --info --verbose
+#echo
+#./rc --conf /etc/rc.conf --debug --info --raw
+#echo
+#./rc --conf /sfw/rc.conf --tmp /sfw/RPM/TMP --debug --labels rsyncd
+#echo
+# FIXME these cases are not handled yet by our configuration FIXME #
+
+./rc --func /sfw/etc/rc.func --print --verbose openssh stop sleep=4 start
+echo
+./rc --func /sfw/etc/rc.func --debug --eval uucp restart
+echo
+./rc --conf ./myrc --func /sfw/etc/rc.func --tmp /tmp --debug --silent --exec uucp start
+
+# Next milestone
+#RequireOwner
+#RequireGroup
+#RequireUmask
+#ParseEnvAss
+#ParseSectionDef
+#ParseSectionRef
+#ParseSectionParam
+#ParseTerminal
+#NameConfig
+#NameCommon
+#NameDefault
+#NameError

CVSTrac 2.0.1