ossp-pkg/rc/rc_test.sh 1.8 -> 1.9
--- rc_test.sh 2002/04/12 19:15:12 1.8
+++ rc_test.sh 2002/04/22 12:49:26 1.9
@@ -28,44 +28,46 @@
# test_rc.sh: Run-command processor test script
# Test short options, should fail for false combination usage
-./rc -dVehilpsrvxLcfqt samba start sleep=2 restart
echo "./rc -dVehilpsrvxLcfqt samba start sleep=2 restart"
+./rc -dVehilpsrvxLcfqt samba start sleep=2 restart
# 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; echo "./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"
+./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
# Test some long options, should fail for false combination usage
-./rc --verbose --silent uucp stop sleep=6 start
echo; echo "./rc --verbose --silent uucp stop sleep=6 start"
-./rc --query --silent zebra bing bang
+./rc --verbose --silent uucp stop sleep=6 start
echo; echo "./rc --query --silent zebra bing bang"
-./rc --conf /sfw/rc.conf --locate /sfw/etc/rc.d --query what to enter here
-echo; echo "./rc --conf /sfw/rc.conf --locate /sfw/etc/rc.d --query what to enter here"
+./rc --query --silent zebra bing bang
+echo; echo "./rc --conf /sfw/rc.conf --locate /etc/rc3.d:/sfw/etc/rc.d --query what to enter here"
+./rc --conf /sfw/rc.conf --locate /etc/rc3.d:/sfw/etc/rc.d --query what to enter here
# Test minimal set of long options, should succeed
+echo; echo "./rc --debug --version rsyncd nothing matters but the version"
./rc --debug --version rsyncd nothing matters but the version
-echo; echo "./rc --conf /sfw/rc.conf --locate /sfw/etc/rc.d --query what to enter here"
+echo; echo "./rc --conf /sfw/rc.conf --locate /cw/etc/rc.d:/sfw/etc/rc.d:/etc/rc --query what to enter here"
+./rc --conf /sfw/rc.conf --locate /cw/etc/rc.d:/sfw/etc/rc.d:/etc/rc --query what to enter here
# FIXME these cases are not handled yet by our configuration FIXME #
-#./rc --debug --version
#echo; echo "./rc --debug --version"
-#./rc --debug --help
+#./rc --debug --version
#echo; echo "./rc --debug --help"
-#./rc --debug --info --verbose
+#./rc --debug --help
#echo; echo "./rc --debug --info --verbose"
-#./rc --conf /etc/rc.conf --debug --info --raw
+#./rc --debug --info --verbose
#echo; echo "./rc --conf /etc/rc.conf --debug --info --raw"
-#./rc --conf /sfw/rc.conf --tmp /sfw/RPM/TMP --debug --labels rsyncd
+#./rc --conf /etc/rc.conf --debug --info --raw
#echo; echo "./rc --conf /sfw/rc.conf --tmp /sfw/RPM/TMP --debug --labels rsyncd"
+#./rc --conf /sfw/rc.conf --tmp /sfw/RPM/TMP --debug --labels rsyncd
# 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; echo "./rc --func /sfw/etc/rc.func --print --verbose openssh stop sleep=4 start"
-./rc --func /sfw/etc/rc.func --debug --eval uucp restart
+./rc --func /sfw/etc/rc.func --print --verbose openssh stop sleep=4 start
echo; echo "./rc --func /sfw/etc/rc.func --debug --eval uucp restart"
-./rc --conf ./myrc --func /sfw/etc/rc.func --tmp /tmp --debug --silent --exec uucp start
+./rc --func /sfw/etc/rc.func --debug --eval uucp restart
echo; echo "./rc --conf ./myrc --func /sfw/etc/rc.func --tmp /tmp --debug --silent --exec uucp start"
+./rc --conf ./myrc --func /sfw/etc/rc.func --tmp /tmp --debug --silent --exec uucp start
# Next milestone
#RequireOwner
|
|