summaryrefslogtreecommitdiffstats
path: root/tests/expected/script
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:30:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:30:35 +0000
commit378c18e5f024ac5a8aef4cb40d7c9aa9633d144c (patch)
tree44dfb6ca500d32cabd450649b322a42e70a30683 /tests/expected/script
parentInitial commit. (diff)
downloadutil-linux-upstream.tar.xz
util-linux-upstream.zip
Adding upstream version 2.38.1.upstream/2.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/expected/script')
-rw-r--r--tests/expected/script/buffering-race3
-rw-r--r--tests/expected/script/options-append8
-rw-r--r--tests/expected/script/options-force14
-rw-r--r--tests/expected/script/options-quiet8
-rw-r--r--tests/expected/script/options-return16
-rw-r--r--tests/expected/script/options-size9
-rw-r--r--tests/expected/script/race1
-rw-r--r--tests/expected/script/replay0
-rw-r--r--tests/expected/script/replay-basic9
-rw-r--r--tests/expected/script/replay-input4
-rw-r--r--tests/expected/script/replay-live7
-rw-r--r--tests/expected/script/replay-output7
12 files changed, 86 insertions, 0 deletions
diff --git a/tests/expected/script/buffering-race b/tests/expected/script/buffering-race
new file mode 100644
index 0000000..884ad00
--- /dev/null
+++ b/tests/expected/script/buffering-race
@@ -0,0 +1,3 @@
+Script started, output log file is '/dev/null'.
+Hallo World
+Script done.
diff --git a/tests/expected/script/options-append b/tests/expected/script/options-append
new file mode 100644
index 0000000..584d921
--- /dev/null
+++ b/tests/expected/script/options-append
@@ -0,0 +1,8 @@
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo append1" <not executed on terminal>]
+append1
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo append2" <not executed on terminal>]
+append2
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
diff --git a/tests/expected/script/options-force b/tests/expected/script/options-force
new file mode 100644
index 0000000..7b9854e
--- /dev/null
+++ b/tests/expected/script/options-force
@@ -0,0 +1,14 @@
+test_script: output file `typescript' is a link
+Use --force if you really want to use it.
+Program not started.
+1
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo with force" <not executed on terminal>]
+with force
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
+0
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo not typescript" <not executed on terminal>]
+not typescript
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
+0
diff --git a/tests/expected/script/options-quiet b/tests/expected/script/options-quiet
new file mode 100644
index 0000000..9718d17
--- /dev/null
+++ b/tests/expected/script/options-quiet
@@ -0,0 +1,8 @@
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo quiet1" <not executed on terminal>]
+quiet1
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo quiet2" <not executed on terminal>]
+quiet2
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
diff --git a/tests/expected/script/options-return b/tests/expected/script/options-return
new file mode 100644
index 0000000..94cd860
--- /dev/null
+++ b/tests/expected/script/options-return
@@ -0,0 +1,16 @@
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="exit 1" <not executed on terminal>]
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="1"]
+0
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="exit 0" <not executed on terminal>]
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="0"]
+0
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="exit 42" <not executed on terminal>]
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="42"]
+42
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="exit 127" <not executed on terminal>]
+
+Script done on 2015-05-24 17:43:18+00:00 [COMMAND_EXIT_CODE="127"]
+127
diff --git a/tests/expected/script/options-size b/tests/expected/script/options-size
new file mode 100644
index 0000000..bdbe688
--- /dev/null
+++ b/tests/expected/script/options-size
@@ -0,0 +1,9 @@
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo 1:1234567890" <not executed on terminal>]
+1:1234567890
+
+Script done on 2015-05-24 17:43:18+00:00 [<max output size exceeded>]
+Script started on 2015-05-24 17:43:18+00:00 [COMMAND="echo 2:1234567890" <not executed on terminal>]
+2:1234567890
+
+Script done on 2015-05-24 17:43:18+00:00 [<max output size exceeded>]
+1
diff --git a/tests/expected/script/race b/tests/expected/script/race
new file mode 100644
index 0000000..faede5f
--- /dev/null
+++ b/tests/expected/script/race
@@ -0,0 +1 @@
+all bingos seen
diff --git a/tests/expected/script/replay b/tests/expected/script/replay
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/script/replay
diff --git a/tests/expected/script/replay-basic b/tests/expected/script/replay-basic
new file mode 100644
index 0000000..0363253
--- /dev/null
+++ b/tests/expected/script/replay-basic
@@ -0,0 +1,9 @@
+===recording
+Script started, output log file is 'outlog', timing file is 'timingfile'.
+hello world
+all done
+Script done.
+===replaying
+hello world
+all done
+
diff --git a/tests/expected/script/replay-input b/tests/expected/script/replay-input
new file mode 100644
index 0000000..8da6ed2
--- /dev/null
+++ b/tests/expected/script/replay-input
@@ -0,0 +1,4 @@
+===recording
+===replaying
+echo "result is $(($NUMBER + 1))"
+
diff --git a/tests/expected/script/replay-live b/tests/expected/script/replay-live
new file mode 100644
index 0000000..7d575ed
--- /dev/null
+++ b/tests/expected/script/replay-live
@@ -0,0 +1,7 @@
+>>> scriptlive: Starting your typescript execution by sh.
+echo "result is $(($NUMBER + 1))"
+prompt> echo "result is $(($NUMBER + 1))"
+result is 124
+prompt> exit
+
+>>> scriptlive: done.
diff --git a/tests/expected/script/replay-output b/tests/expected/script/replay-output
new file mode 100644
index 0000000..4aace29
--- /dev/null
+++ b/tests/expected/script/replay-output
@@ -0,0 +1,7 @@
+===recording
+Script started, output log file is 'outlog', timing file is 'timingfile'.
+result is 2
+Script done.
+===replaying
+result is 2
+