diff options
Diffstat (limited to 'tests/quote')
-rw-r--r-- | tests/quote/buildfile | 18 | ||||
-rw-r--r-- | tests/quote/test.out | 11 | ||||
-rwxr-xr-x | tests/quote/test.sh | 3 |
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/quote/buildfile b/tests/quote/buildfile new file mode 100644 index 0000000..931bc36 --- /dev/null +++ b/tests/quote/buildfile @@ -0,0 +1,18 @@ +print "foo bar" +print "foo +bar" + +foo = "fo o" +bar = " bar " + +print "$foo" +print "$bar" +print "$foo $bar" +print "$foo$bar" + +print "[ $foo ]" +print "[ $bar ]" +print "[ $foo $bar ]" +print "[ $foo/$bar ]" + +./: diff --git a/tests/quote/test.out b/tests/quote/test.out new file mode 100644 index 0000000..802f28f --- /dev/null +++ b/tests/quote/test.out @@ -0,0 +1,11 @@ +foo bar +foo +bar +fo o + bar +fo o bar +fo o bar +[ fo o ] +[ bar ] +[ fo o bar ] +[ fo o/ bar ] diff --git a/tests/quote/test.sh b/tests/quote/test.sh new file mode 100755 index 0000000..145ea6b --- /dev/null +++ b/tests/quote/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +valgrind -q b -q | diff test.out - |