From: Michal Sojka Date: Thu, 17 Feb 2011 14:29:37 +0000 (+0100) Subject: forb: Use new syntax for forbrun command line X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/forb.git/commitdiff_plain/211be39088159de43bc83bf62268e5a2bebfbc2d forb: Use new syntax for forbrun command line We have added '--' before the name of the first library as it simplifies command line parsing. --- diff --git a/src/forbrun/tests/forbrun.sh b/src/forbrun/tests/forbrun.sh index a7b4c90..7c5fde1 100755 --- a/src/forbrun/tests/forbrun.sh +++ b/src/forbrun/tests/forbrun.sh @@ -6,22 +6,22 @@ WVSTART "Without any parameters do nothing" WVPASS forbrun WVSTART "argv[0] in forb_main() contains the name of the library" -WVFAIL sh -c 'forbrun libtest_obj.so 2> error' +WVFAIL sh -c 'forbrun -- libtest_obj.so 2> error' WVPASSEQ "$(cat error)" "Usage: libtest_obj.so " WVSTART "Both server and client in a single process" -WVPASS sh -c 'forbrun libtest_obj.so "Hello" -- libtest_client.so > output' +WVPASS sh -c 'forbrun -- libtest_obj.so "Hello" -- libtest_client.so > output' WVPASSEQ "$(cat output)" "Hello" WVSTART "Server and client in separate processes" # Run server on background rm -f test.pid -WVPASS sh -c 'forbrun --daemon=test.pid libtest_obj.so "Hello" > output' +WVPASS sh -c 'forbrun --daemon=test.pid -- libtest_obj.so "Hello" > output' WVPASS test -f test.pid # Run client -WVPASS forbrun libtest_client.so -WVPASS kill $(cat test.pif) +WVPASS forbrun -- libtest_client.so +WVPASS kill $(cat test.pid) # Test whether the server was called WVPASSEQ "$(cat output)" "Hello"