diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-12 01:34:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-12 22:14:51 +0700 |
| commit | a0c9e5e87e951df4d1bc86c6ccc2ed73dbe7f942 (patch) | |
| tree | d0650c477fff66fe87afb51233ce9c88e8c9fd79 /testdata | |
| parent | 207e7f016bf96ab037f510837940c037111cd42f (diff) | |
| download | awwan-a0c9e5e87e951df4d1bc86c6ccc2ed73dbe7f942.tar.xz | |
all: add integration tests for magic command "#get!"
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/local/get.aww | 2 | ||||
| -rw-r--r-- | testdata/local/get.data | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/testdata/local/get.aww b/testdata/local/get.aww index 15878c6..d889f22 100644 --- a/testdata/local/get.aww +++ b/testdata/local/get.aww @@ -1 +1,3 @@ #get: {{.ScriptDir}}/plain.txt {{.ScriptDir}}/tmp/get_plain.txt + +#get! /etc/os-release {{.ScriptDir}}/tmp/os-release diff --git a/testdata/local/get.data b/testdata/local/get.data index 0e7ee57..c0e24ec 100644 --- a/testdata/local/get.data +++ b/testdata/local/get.data @@ -1,5 +1,18 @@ -Test on magic command "#get:". +Test output from magic command "#get:" and "#get!" <<< tmp/get_plain.txt The host name is {{.Val "host::name"}}. + +<<< tmp/os-release +NAME="Arch Linux" +PRETTY_NAME="Arch Linux" +ID=arch +BUILD_ID=rolling +ANSI_COLOR="38;2;23;147;209" +HOME_URL="https://archlinux.org/" +DOCUMENTATION_URL="https://wiki.archlinux.org/" +SUPPORT_URL="https://bbs.archlinux.org/" +BUG_REPORT_URL="https://bugs.archlinux.org/" +PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" +LOGO=archlinux-logo |
