1NOTE regression tests for the ksh codex plugin
2
3UNIT ksh
4
5TEST 'aes + uu-mime'
6
7	EXEC -c 'builtin -f codex codex
8		p="open sesame"
9		q="close sesame"
10		for ((i=1; i<=10; i++))
11		do
12			e=$(codex -p "$p" ">aes>uu-mime" <<<"hello newman")
13			codex -p "$p" "<uu-mime<aes" <<<"$e"
14			e=$(codex -p "$q" ">aes>uu-mime" <<<"see ya")
15			codex -p "$q" "<uu-mime<aes" <<<"$e"
16		done'
17
18	EXEC -c 'builtin -f codex
19		p="open sesame"
20		q="close sesame"
21		for ((i=1; i<=10; i++))
22		do
23			e=$(codex -p "$p" ">aes>uu-mime" <<<"hello newman")
24			codex -p "$p" "<uu-mime<aes" <<<"$e"
25			e=$(codex -p "$q" ">aes>uu-mime" <<<"see ya")
26			codex -p "$q" "<uu-mime<aes" <<<"$e"
27		done'
28