OSSP CVS Repository

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

ossp-pkg/rc/rc_test.sh 1.18 -> 1.19

--- rc_test.sh   2002/07/10 19:04:52     1.18
+++ rc_test.sh   2002/07/29 16:34:21     1.19
@@ -42,18 +42,18 @@
 #./rc -derv -L ./rc_test/rc.d/rc.%{RCFILE:s/^all$/*/} -c ./rc.conf -f ./rc_test/rcfuncs -t /tmp openssh stop sleep=4 start daily minsize=2097152
 
 # Test some long options, should fail for false combination usage
-echo; echo "./rc --verbose --silent --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" uucp stop sleep=6 start"
-./rc --verbose --silent --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" uucp stop sleep=6 start
-echo; echo "./rc --query myvar --silent --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" zebra bing bang"
-./rc --query myvar --silent --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" zebra bing bang
-echo; echo "./rc --conf ./rc.conf --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --locate ./rc_test/ --query this barf test"
-./rc --conf ./rc.conf --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --locate ./rc_test/ --query this barf test
+echo; echo "./rc --verbose --silent --print --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" uucp stop sleep=6 start"
+./rc --verbose --silent --print --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" uucp stop sleep=6 start
+echo; echo "./rc --query myvar --silent --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" zebra bing bang"
+./rc --query myvar --silent --ParseSectionDef "^%(\w+).*?\n(.*?)^$" zebra bing bang
+echo; echo "./rc --conf ./rc.conf --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --locate ./rc_test/ --query this barf test"
+./rc --conf ./rc.conf --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --locate ./rc_test/ --query this barf test
 
 # Test minimal set of long options, should succeed
-echo; echo "./rc --debug --version --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" rsyncd nothing matters but the version"
-./rc --debug --version --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" rsyncd nothing matters but the version
-echo; echo "./rc --conf $RCBASE/rc.conf --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --locate $RCBASE/rc.d:./rc_test:/etc/rc --query all barf test"
-./rc --conf $RCBASE/rc.conf --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --locate $RCBASE/rc.d:./rc_test:/etc/rc --query all barf test
+echo; echo "./rc --debug --version --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" rsyncd nothing matters but the version"
+./rc --debug --version --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" rsyncd nothing matters but the version
+echo; echo "./rc --conf $RCBASE/rc.conf --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --locate $RCBASE/rc.d:./rc_test:/etc/rc --query all barf test"
+./rc --conf $RCBASE/rc.conf --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --locate $RCBASE/rc.d:./rc_test:/etc/rc --query all barf test
 
 # FIXME these cases are not handled yet by our configuration FIXME #
 #echo; echo "./rc --debug --version"
@@ -68,45 +68,51 @@
 #./rc --conf $RCBASE/rc.conf --tmp /tmp --debug --labels rsyncd
 # FIXME these cases are not handled yet by our configuration FIXME #
 
-echo; echo "./rc --func rc_test/rcfuncs --print --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --verbose openssh stop sleep=4 start"
-./rc --func rc_test/rcfuncs --print --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --verbose openssh stop sleep=4 start
+echo; echo "./rc --func rc_test/rcfuncs --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --verbose openssh stop sleep=4 start"
+./rc --func rc_test/rcfuncs --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --verbose openssh stop sleep=4 start
 echo; echo "./rc --func ./rc_test/rcfuncs --info --eval uucp restart"
 ./rc --func ./rc_test/rcfuncs --info --eval uucp restart
-echo; echo "./rc --conf rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --print uucp start"
-./rc --conf rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --print uucp start
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --print ntp sync"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --print ntp sync
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --silent --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --print ralf feed suppe"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --silent --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --print ralf feed suppe
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L rc_test --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --print samba search finish destroy"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L rc_test --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --print samba search finish destroy
+echo; echo "./rc --conf rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" uucp start"
+./rc --conf rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" uucp start
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" ntp sync"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" ntp sync
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --silent --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" ralf feed suppe"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --silent --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" ralf feed suppe
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L rc_test --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent samba search finish destroy"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L rc_test --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent samba search finish destroy
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --print all feed suppe"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --print all feed suppe
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent all feed suppe"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent all feed suppe
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug --print all config barf gag"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug --print all config barf gag
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug all config barf gag"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug all config barf gag
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug --eval all config start"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug --eval all config start
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug --eval all config start"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug --eval all config start
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug --exec all config start"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug --exec all config start
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug --exec all config start"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug --exec all config start
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print pam info"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print pam info
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --print --debug pam info"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --print --debug pam info
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print apache config start"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --NameConfig config --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print apache config start
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug apache config start"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L $RCBASE/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug apache config start
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --tmp /tmp --silent --debug --print all config start"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --tmp /tmp --silent --debug --print all config start
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --tmp /tmp --silent --debug all config start"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --tmp /tmp --silent --debug all config start
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --NameConfig config --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --tmp /tmp --silent --debug --print pam info"
-./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --NameConfig config --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --tmp /tmp --silent --debug --print pam info
+echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" --tmp /tmp --silent --debug pam info"
+./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" --tmp /tmp --silent --debug pam info
 
-echo; echo "./rc --conf ./rc_test/myrc.conf --func $RCBASE/rc.func -L $RCBASE/rc.d/ --NameConfig config --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug --print dhcpd start"
-./rc --conf ./rc_test/myrc.conf --func $RCBASE/rc.func -L $RCBASE/rc.d/ --NameConfig config --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug --print dhcpd start
+echo; echo "./rc --conf ./rc_test/myrc.conf --func $RCBASE/rc.func -L $RCBASE/rc.d/ --ParseSectionDef \"^%(\w+).*?\n(.*?)^$\" --tmp /tmp --silent --debug dhcpd start"
+./rc --conf ./rc_test/myrc.conf --func $RCBASE/rc.func -L $RCBASE/rc.d/ --ParseSectionDef "^%(\w+).*?\n(.*?)^$" --tmp /tmp --silent --debug dhcpd start
+
+echo; echo "./rc --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef \"^<(.+?)\s*.*?>\n*(.*?)^<\/\1>\" pam info"
+./rc --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef "^<(.+?)\s*.*?>\n*(.*?)^<\/\1>" pam info
+
+echo; echo "./rc --func ./rc_test/rcfuncs -L ./rc_test/ ntp stop"
+./rc --func ./rc_test/rcfuncs -L ./rc_test/ ntp stop
 
 # Next milestone
 #RequireOwner

CVSTrac 2.0.1