aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-10-30 20:30:03 +0700
committerShulhan <ms@kilabit.info>2023-10-30 20:30:03 +0700
commit7226fa9262d5fb1a4fb81087308e7365b3700120 (patch)
tree551ef71ce2206c6889be3551527eb73df88df5ed /testdata
parent4726a28cee89f542eb3b0569639069a05d1df6b0 (diff)
downloadawwan-7226fa9262d5fb1a4fb81087308e7365b3700120.tar.xz
all: add begin and end for each script execution
When the script executed, log the script and line number to be executed with "=== BEGIN", and when its finished, log the end of it with "=== END". This is to make the log more traceable.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/local/local_encrypted.data8
-rw-r--r--testdata/local/local_test.data8
-rw-r--r--testdata/play/awwanssh.test/play_test.data6
3 files changed, 15 insertions, 7 deletions
diff --git a/testdata/local/local_encrypted.data b/testdata/local/local_encrypted.data
index 2682124..54cec22 100644
--- a/testdata/local/local_encrypted.data
+++ b/testdata/local/local_encrypted.data
@@ -1,6 +1,8 @@
<<< echo_encrypted
-- local_encrypted.aww --> local: 3: echo this_is_a_secret
+- local_encrypted.aww === BEGIN: local testdata/local/local_encrypted.aww 3
+- local_encrypted.aww --> 3: echo this_is_a_secret
this_is_a_secret
+- local_encrypted.aww === END
<<< echo_encrypted_no_pass
Local: NewScript: ParseScript: template: local_encrypted.aww:3:7: executing "local_encrypted.aww" at <.Val>: error calling Val: "secret::pass" is empty
@@ -9,5 +11,7 @@ Local: NewScript: ParseScript: template: local_encrypted.aww:3:7: executing "loc
Local: NewSession: .awwan.env.vault: LoadPrivateKeyInteractive: x509: decryption password incorrect
<<< sub_echo_encrypted
-- local_encrypted.aww --> local: 1: echo this_is_a_secret_in_sub
+- local_encrypted.aww === BEGIN: local testdata/local/sub/local_encrypted.aww 1
+- local_encrypted.aww --> 1: echo this_is_a_secret_in_sub
this_is_a_secret_in_sub
+- local_encrypted.aww === END
diff --git a/testdata/local/local_test.data b/testdata/local/local_test.data
index d5bc811..8459a72 100644
--- a/testdata/local/local_test.data
+++ b/testdata/local/local_test.data
@@ -1,8 +1,10 @@
Test on "local" command.
<<< local:output
-- local.aww --> local: 1: echo "hello"
+- local.aww === BEGIN: local testdata/local/local.aww 1-
+- local.aww --> 1: echo "hello"
hello
-- local.aww --> local: 4: #local: echo "nothing"
-- local.aww --> local: 6: echo "local"
+- local.aww --> 4: #local: echo "nothing"
+- local.aww --> 6: echo "local"
local
+- local.aww === END
diff --git a/testdata/play/awwanssh.test/play_test.data b/testdata/play/awwanssh.test/play_test.data
index 9f27fae..3c63013 100644
--- a/testdata/play/awwanssh.test/play_test.data
+++ b/testdata/play/awwanssh.test/play_test.data
@@ -3,7 +3,9 @@ Test on "play" command.
<<< play_with_local:output
--- SSH connection: awwanssh@127.0.0.1:10022
--- SSH identity file: [/home/awwan/.ssh/id_ed25519]
-- play.aww --> awwanssh@127.0.0.1:10022: 2: pwd
+- play.aww === BEGIN: play testdata/play/awwanssh.test/play.aww 1-
+- play.aww --> 2: pwd
/home/awwanssh
-- play.aww --> awwanssh@127.0.0.1:10022: 5: #local: pwd
+- play.aww --> 5: #local: pwd
/home/awwan/src
+- play.aww === END