[netfilter-cvslog] r4348 - in trunk/nfsim: . testsuite

rusty at netfilter.org rusty at netfilter.org
Wed Oct 12 12:12:07 CEST 2005


Author: rusty at netfilter.org
Date: 2005-10-12 12:12:05 +0200 (Wed, 12 Oct 2005)
New Revision: 4348

Added:
   trunk/nfsim/testsuite/backquote.sim
Modified:
   trunk/nfsim/Makefile.in
Log:
Add backquote test from Max Kellerman, add "check" target.


Modified: trunk/nfsim/Makefile.in
===================================================================
--- trunk/nfsim/Makefile.in	2005-10-12 09:37:04 UTC (rev 4347)
+++ trunk/nfsim/Makefile.in	2005-10-12 10:12:05 UTC (rev 4348)
@@ -119,6 +119,9 @@
 TAGS:
 	find ./ -name '*.[ch]' -print | xargs etags
 
+check: simulator
+	set -e; for f in testsuite/*.sim; do echo $$f; ./simulator -q -e $$f; done
+
 # 'restorelinks' required for cvs checkout
 .PHONY: savelinks restorelinks
 savelinks:

Added: trunk/nfsim/testsuite/backquote.sim
===================================================================
--- trunk/nfsim/testsuite/backquote.sim	2005-10-12 09:37:04 UTC (rev 4347)
+++ trunk/nfsim/testsuite/backquote.sim	2005-10-12 10:12:05 UTC (rev 4348)
@@ -0,0 +1,20 @@
+expect echo foo
+echo foo
+
+expect echo bar
+echo `echo -n bar`
+
+expect echo foo bar
+echo foo `echo -n bar`
+
+expect echo foobar
+echo foo`echo -n bar`
+
+expect echo barfoo
+echo `echo -n bar`foo
+
+expect echo farboo
+echo `echo -n far``echo -n boo`
+
+expect echo far0boo
+echo `echo -n far`0`echo -n boo`




More information about the netfilter-cvslog mailing list