# we randomize ports to minimize collisions, # this needs to be fixed someday (use netstat and check which port is free) port=$((RANDOM+1500)) ./rxpd -dq -b $srcdir/files -p policy -t $port example function rxpd_client() { nc localhost $port; } TESTING "basic protcol tests" rxpd_client # this test has to be updated with each new version TEST "version information" < out: # out: # This is free software. You may redistribute copies of it under the terms of out: # the GNU General Public License . out: # There is NO WARRANTY, to the extent permitted by law. out: # out: # http://www.pipapo.org/pipawiki/RegexPolicyDaemon END TEST "buildin protocol help" <