From 119b995437c52a164b2c5e51ef918c3f46b8a130 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 11 May 2007 12:57:35 +0000 Subject: hush: reinstate hush_test, add testcases for process subst --- shell/hush_test/hush-parsing/noeol.right | 1 + shell/hush_test/hush-parsing/noeol.tests | 2 ++ shell/hush_test/hush-parsing/process_subst.right | 2 ++ shell/hush_test/hush-parsing/process_subst.tests | 2 ++ 4 files changed, 7 insertions(+) create mode 100644 shell/hush_test/hush-parsing/noeol.right create mode 100755 shell/hush_test/hush-parsing/noeol.tests create mode 100644 shell/hush_test/hush-parsing/process_subst.right create mode 100755 shell/hush_test/hush-parsing/process_subst.tests (limited to 'shell/hush_test/hush-parsing') diff --git a/shell/hush_test/hush-parsing/noeol.right b/shell/hush_test/hush-parsing/noeol.right new file mode 100644 index 000000000..e427984d4 --- /dev/null +++ b/shell/hush_test/hush-parsing/noeol.right @@ -0,0 +1 @@ +HELLO diff --git a/shell/hush_test/hush-parsing/noeol.tests b/shell/hush_test/hush-parsing/noeol.tests new file mode 100755 index 000000000..a93113a03 --- /dev/null +++ b/shell/hush_test/hush-parsing/noeol.tests @@ -0,0 +1,2 @@ +# next line has no EOL! +echo HELLO \ No newline at end of file diff --git a/shell/hush_test/hush-parsing/process_subst.right b/shell/hush_test/hush-parsing/process_subst.right new file mode 100644 index 000000000..8f9ab9d40 --- /dev/null +++ b/shell/hush_test/hush-parsing/process_subst.right @@ -0,0 +1,2 @@ +TESTzzBEST +TEST$(echo zz)BEST diff --git a/shell/hush_test/hush-parsing/process_subst.tests b/shell/hush_test/hush-parsing/process_subst.tests new file mode 100755 index 000000000..f8299a514 --- /dev/null +++ b/shell/hush_test/hush-parsing/process_subst.tests @@ -0,0 +1,2 @@ +echo "TEST`echo zz;echo;echo`BEST" +echo "TEST`echo '$(echo zz)'`BEST" -- cgit v1.2.3