From f2d1ef10e3d1f42de0028786413ba2fea3ace10f Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 16:04:47 -0400 Subject: [PATCH 01/17] update ic.yml to my branch --- .github/workflows/ic.yml | 101 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .github/workflows/ic.yml diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml new file mode 100644 index 00000000..cdbe29fa --- /dev/null +++ b/.github/workflows/ic.yml @@ -0,0 +1,101 @@ +name: Build and Test + +on: [push, pull_request] + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies for Linux + if: runner.os == 'Linux' + run: | + sudo apt-get update -qq + sudo apt-get -y install bison \ + autotools-dev \ + libncurses5-dev \ + libevent-dev \ + pkg-config \ + libutempter-dev \ + build-essential + if [ "${{ matrix.build }}" == "musl" ] || [ "${{ matrix.build }}" == "musl-static" ]; then + sudo apt-get -y install musl-dev \ + musl-tools + fi + + # Add steps for other operating systems if needed, similar to the Linux steps above. + + - name: Build tmux + run: | + sh autogen.sh + ./configure + make + + # Add additional steps for running tests if applicable. + - name: Run Tests + working-directory: ./regress + run: | + chmod +x am-terminal.sh + ./am-terminal.sh + chmod +x capture-pane-hyperlink.sh + ./capture-pane-hyperlink.sh + chmod +x combine-test.sh + sh combine-test.sh + chmod +x command-order.sh + sh command-order.sh + chmod +x conf-syntax.sh + sh conf-syntax.sh + chmod +x control-client-sanity.sh + sh control-client-sanity.sh + chmod +x cursor-test1.sh + sh cursor-test1.sh + chmod +x cursor-test2.sh + sh cursor-test2.sh + chmod +x cursor-test3.sh + sh cursor-test3.sh + chmod +x cursor-test4.sh + sh cursor-test4.sh + chmod +x has-session-return.sh + sh has-session-return.sh + chmod +x if-shell-error.sh + sh if-shell-error.sh + chmod +x if-shell-nested.sh + sh if-shell-nested.sh + chmod +x if-shell-TERM.sh + sh if-shell-TERM.sh + chmod +x input-keys.sh + sh input-keys.sh + chmod +x kill-session-process-exit.sh + sh kill-session-process-exit.sh + chmod +x new-session-base-index.sh + sh new-session-base-index.sh + chmod +x new-window-command.sh + sh new-window-command.sh + chmod +x osc-11colours.sh + sh osc-11colours.sh + chmod +x style-trim.sh + sh style-trim.sh + chmod +x control-client-size.sh + sh control-client-size.sh + chmod +x new-session-no-client.sh + sh new-session-no-client.sh + chmod +x new-session-size.sh + sh new-session-size.sh + chmod +x new-session-command.sh + sh new-session-command.sh + ## chmod +x tty-keys.sh + ## sh tty-keys.sh + ## chmod +x format-strings.sh + ## sh format-strings.sh + ## chmod +x copy-mode-test-emacs.sh + ## sh copy-mode-test-emacs.sh + ## chmod +x copy-mode-test-vi.sh + ## sh copy-mode-test-vi.sh + ## chmod +x new-session-environment.sh + ## sh new-session-environment.sh + + + + + From c2d1648a8f4ef944995b0ae5a82a9c2609fb0b07 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:07:13 -0400 Subject: [PATCH 02/17] modify test-emacs and update ic.yml --- .github/workflows/ic.yml | 5 +++-- regress/copy-mode-test-emacs.sh | 13 ++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index cdbe29fa..6ae9a0ad 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -84,12 +84,13 @@ jobs: sh new-session-size.sh chmod +x new-session-command.sh sh new-session-command.sh + chmod +x copy-mode-test-emacs.sh + sh copy-mode-test-emacs.sh ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh ## sh format-strings.sh - ## chmod +x copy-mode-test-emacs.sh - ## sh copy-mode-test-emacs.sh + ## chmod +x copy-mode-test-vi.sh ## sh copy-mode-test-vi.sh ## chmod +x new-session-environment.sh diff --git a/regress/copy-mode-test-emacs.sh b/regress/copy-mode-test-emacs.sh index 63293963..52edb012 100644 --- a/regress/copy-mode-test-emacs.sh +++ b/regress/copy-mode-test-emacs.sh @@ -42,7 +42,18 @@ $TMUX send-keys -X begin-selection $TMUX send-keys -X next-word-end $TMUX send-keys -X next-word-end $TMUX send-keys -X copy-selection -[ "$($TMUX show-buffer)" = "$(echo -e "words\n Indented")" ] || exit 1 +if [ "$($TMUX show-buffer)" != "$(printf "words\n Indented")" ] +then + actual=$($TMUX show-buffer) + expected=$(printf "words\n Indented") + + echo "actual: " + echo $actual + echo "expected: " + echo $expected + exit 1 +fi +#[ "$($TMUX show-buffer)" = "$(echo -e "words\n Indented")" ] || exit 1 # Test that `next-word` wraps around un-indented line breaks. $TMUX send-keys -X next-word From e8e71a484ad1637b03c86fb8a6d08c4dd5bdfeb3 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:10:04 -0400 Subject: [PATCH 03/17] modify test-emacs with printf --- regress/copy-mode-test-emacs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/copy-mode-test-emacs.sh b/regress/copy-mode-test-emacs.sh index 52edb012..70a7b6a1 100644 --- a/regress/copy-mode-test-emacs.sh +++ b/regress/copy-mode-test-emacs.sh @@ -60,7 +60,7 @@ $TMUX send-keys -X next-word $TMUX send-keys -X begin-selection $TMUX send-keys -X next-word $TMUX send-keys -X copy-selection -[ "$($TMUX show-buffer)" = "$(echo -e "line\n")" ] || exit 1 +[ "$($TMUX show-buffer)" = "$(printf "line\n")" ] || exit 1 # Test that `next-word-end` treats periods as letters. $TMUX send-keys -X next-word @@ -74,14 +74,14 @@ $TMUX send-keys -X previous-word $TMUX send-keys -X begin-selection $TMUX send-keys -X next-word $TMUX send-keys -X copy-selection -[ "$($TMUX show-buffer)" = "$(echo -e "line...\n")" ] || exit 1 +[ "$($TMUX show-buffer)" = "$(printf "line...\n")" ] || exit 1 # Test that `previous-space` and `next-space` treat periods as letters. $TMUX send-keys -X previous-space $TMUX send-keys -X begin-selection $TMUX send-keys -X next-space $TMUX send-keys -X copy-selection -[ "$($TMUX show-buffer)" = "$(echo -e "line...\n")" ] || exit 1 +[ "$($TMUX show-buffer)" = "$(printf "line...\n")" ] || exit 1 # Test that `next-word` and `next-word-end` treat other symbols as letters. $TMUX send-keys -X begin-selection From 879857f5f77f1f8cd1475075ec9858592057e640 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:15:03 -0400 Subject: [PATCH 04/17] modify test-emacs with printf2 --- regress/copy-mode-test-emacs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regress/copy-mode-test-emacs.sh b/regress/copy-mode-test-emacs.sh index 70a7b6a1..479b7d35 100644 --- a/regress/copy-mode-test-emacs.sh +++ b/regress/copy-mode-test-emacs.sh @@ -98,7 +98,7 @@ $TMUX send-keys -X previous-word $TMUX send-keys -X begin-selection $TMUX send-keys -X next-word $TMUX send-keys -X copy-selection -[ "$($TMUX show-buffer)" = "$(echo -e "\$ym_bols[]{}\n ")" ] || exit 1 +[ "$($TMUX show-buffer)" = "$(printf "\$ym_bols[]{}\n ")" ] || exit 1 # Test that `next-word-end` treats digits as letters $TMUX send-keys -X next-word-end From 6bac1952708fe1926911257e6a77588ea8572d7e Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:18:29 -0400 Subject: [PATCH 05/17] remove some comment in test-emacs --- regress/copy-mode-test-emacs.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/regress/copy-mode-test-emacs.sh b/regress/copy-mode-test-emacs.sh index 479b7d35..9779aeed 100644 --- a/regress/copy-mode-test-emacs.sh +++ b/regress/copy-mode-test-emacs.sh @@ -53,7 +53,6 @@ then echo $expected exit 1 fi -#[ "$($TMUX show-buffer)" = "$(echo -e "words\n Indented")" ] || exit 1 # Test that `next-word` wraps around un-indented line breaks. $TMUX send-keys -X next-word From 4d95d1da146446f2836b9591a9d6fe4c4d19ecc9 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:27:48 -0400 Subject: [PATCH 06/17] update ic.yml with script --- .github/workflows/ic.yml | 55 +++------------------------------------- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 6ae9a0ad..26f22941 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -36,61 +36,14 @@ jobs: - name: Run Tests working-directory: ./regress run: | - chmod +x am-terminal.sh - ./am-terminal.sh - chmod +x capture-pane-hyperlink.sh - ./capture-pane-hyperlink.sh - chmod +x combine-test.sh - sh combine-test.sh - chmod +x command-order.sh - sh command-order.sh - chmod +x conf-syntax.sh - sh conf-syntax.sh - chmod +x control-client-sanity.sh - sh control-client-sanity.sh - chmod +x cursor-test1.sh - sh cursor-test1.sh - chmod +x cursor-test2.sh - sh cursor-test2.sh - chmod +x cursor-test3.sh - sh cursor-test3.sh - chmod +x cursor-test4.sh - sh cursor-test4.sh - chmod +x has-session-return.sh - sh has-session-return.sh - chmod +x if-shell-error.sh - sh if-shell-error.sh - chmod +x if-shell-nested.sh - sh if-shell-nested.sh - chmod +x if-shell-TERM.sh - sh if-shell-TERM.sh - chmod +x input-keys.sh - sh input-keys.sh - chmod +x kill-session-process-exit.sh - sh kill-session-process-exit.sh - chmod +x new-session-base-index.sh - sh new-session-base-index.sh - chmod +x new-window-command.sh - sh new-window-command.sh - chmod +x osc-11colours.sh - sh osc-11colours.sh - chmod +x style-trim.sh - sh style-trim.sh - chmod +x control-client-size.sh - sh control-client-size.sh - chmod +x new-session-no-client.sh - sh new-session-no-client.sh - chmod +x new-session-size.sh - sh new-session-size.sh - chmod +x new-session-command.sh - sh new-session-command.sh - chmod +x copy-mode-test-emacs.sh - sh copy-mode-test-emacs.sh + for script in am-terminal.sh capture-pane-hyperlink.sh combine-test.sh command-order.sh conf-syntax.sh control-client-sanity.sh cursor-test{1..4}.sh has-session-return.sh if-shell-{error,nested,TERM}.sh input-keys.sh kill-session-process-exit.sh new-{session-base-index,window-command}.sh osc-11colours.sh style-trim.sh control-client-size.sh new-session-{no-client,size,command}.sh copy-mode-test-emacs.sh; do + chmod +x $script + ./$script + done ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh ## sh format-strings.sh - ## chmod +x copy-mode-test-vi.sh ## sh copy-mode-test-vi.sh ## chmod +x new-session-environment.sh From 113c2016d5c1228d4e3d0708884a41cf4571bfee Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:36:34 -0400 Subject: [PATCH 07/17] update ic.yml with script --- .github/workflows/ic.yml | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 26f22941..ea0e3fa0 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -31,15 +31,44 @@ jobs: sh autogen.sh ./configure make + # List of test scripts to execute + scripts=( + am-terminal.sh + capture-pane-hyperlink.sh + combine-test.sh + command-order.sh + conf-syntax.sh + control-client-sanity.sh + cursor-test1.sh + cursor-test2.sh + cursor-test3.sh + cursor-test4.sh + has-session-return.sh + if-shell-error.sh + if-shell-nested.sh + if-shell-TERM.sh + input-keys.sh + kill-session-process-exit.sh + new-session-base-index.sh + new-window-command.sh + osc-11colours.sh + style-trim.sh + control-client-size.sh + new-session-no-client.sh + new-session-size.sh + new-session-command.sh + copy-mode-test-emacs.sh + ) # Add additional steps for running tests if applicable. - name: Run Tests working-directory: ./regress run: | - for script in am-terminal.sh capture-pane-hyperlink.sh combine-test.sh command-order.sh conf-syntax.sh control-client-sanity.sh cursor-test{1..4}.sh has-session-return.sh if-shell-{error,nested,TERM}.sh input-keys.sh kill-session-process-exit.sh new-{session-base-index,window-command}.sh osc-11colours.sh style-trim.sh control-client-size.sh new-session-{no-client,size,command}.sh copy-mode-test-emacs.sh; do - chmod +x $script - ./$script + for script in "${scripts[@]}"; do + chmod +x "$script" + ./"$script" done + ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh From 19b7a919fc613380d5baed446b74b1c959492516 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:37:42 -0400 Subject: [PATCH 08/17] update ic.yml with script --- .github/workflows/ic.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index ea0e3fa0..9e52a6b2 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -31,6 +31,7 @@ jobs: sh autogen.sh ./configure make + # List of test scripts to execute scripts=( am-terminal.sh From aced0722ebec365beab4ea33664074a28bc41de6 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:41:49 -0400 Subject: [PATCH 09/17] update ic.yml with script --- .github/workflows/ic.yml | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 9e52a6b2..45dd136c 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -31,43 +31,14 @@ jobs: sh autogen.sh ./configure make - - # List of test scripts to execute - scripts=( - am-terminal.sh - capture-pane-hyperlink.sh - combine-test.sh - command-order.sh - conf-syntax.sh - control-client-sanity.sh - cursor-test1.sh - cursor-test2.sh - cursor-test3.sh - cursor-test4.sh - has-session-return.sh - if-shell-error.sh - if-shell-nested.sh - if-shell-TERM.sh - input-keys.sh - kill-session-process-exit.sh - new-session-base-index.sh - new-window-command.sh - osc-11colours.sh - style-trim.sh - control-client-size.sh - new-session-no-client.sh - new-session-size.sh - new-session-command.sh - copy-mode-test-emacs.sh - ) # Add additional steps for running tests if applicable. - name: Run Tests working-directory: ./regress run: | - for script in "${scripts[@]}"; do - chmod +x "$script" - ./"$script" + for script in am-terminal.sh capture-pane-hyperlink.sh combine-test.sh command-order.sh conf-syntax.sh control-client-sanity.sh cursor-test{1..4}.sh has-session-return.sh if-shell-{error,nested,TERM}.sh input-keys.sh kill-session-process-exit.sh new-{session-base-index,window-command}.sh osc-11colours.sh style-trim.sh control-client-size.sh new-session-{no-client,size,command}.sh copy-mode-test-emacs.sh; do + chmod +x $script + ./$script done ## chmod +x tty-keys.sh From eebf4e13e258be5711ea1108d52437bf337ed5df Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:44:52 -0400 Subject: [PATCH 10/17] update ic.yml with script --- .github/workflows/ic.yml | 55 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 45dd136c..03b3d84c 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -36,11 +36,56 @@ jobs: - name: Run Tests working-directory: ./regress run: | - for script in am-terminal.sh capture-pane-hyperlink.sh combine-test.sh command-order.sh conf-syntax.sh control-client-sanity.sh cursor-test{1..4}.sh has-session-return.sh if-shell-{error,nested,TERM}.sh input-keys.sh kill-session-process-exit.sh new-{session-base-index,window-command}.sh osc-11colours.sh style-trim.sh control-client-size.sh new-session-{no-client,size,command}.sh copy-mode-test-emacs.sh; do - chmod +x $script - ./$script - done - + chmod +x am-terminal.sh + ./am-terminal.sh + chmod +x capture-pane-hyperlink.sh + ./capture-pane-hyperlink.sh + chmod +x combine-test.sh + sh combine-test.sh + chmod +x command-order.sh + sh command-order.sh + chmod +x conf-syntax.sh + sh conf-syntax.sh + chmod +x control-client-sanity.sh + sh control-client-sanity.sh + chmod +x cursor-test1.sh + sh cursor-test1.sh + chmod +x cursor-test2.sh + sh cursor-test2.sh + chmod +x cursor-test3.sh + sh cursor-test3.sh + chmod +x cursor-test4.sh + sh cursor-test4.sh + chmod +x has-session-return.sh + sh has-session-return.sh + chmod +x if-shell-error.sh + sh if-shell-error.sh + chmod +x if-shell-nested.sh + sh if-shell-nested.sh + chmod +x if-shell-TERM.sh + sh if-shell-TERM.sh + chmod +x input-keys.sh + sh input-keys.sh + chmod +x kill-session-process-exit.sh + sh kill-session-process-exit.sh + chmod +x new-session-base-index.sh + sh new-session-base-index.sh + chmod +x new-window-command.sh + sh new-window-command.sh + chmod +x osc-11colours.sh + sh osc-11colours.sh + chmod +x style-trim.sh + sh style-trim.sh + chmod +x control-client-size.sh + sh control-client-size.sh + chmod +x new-session-no-client.sh + sh new-session-no-client.sh + chmod +x new-session-size.sh + sh new-session-size.sh + chmod +x new-session-command.sh + sh new-session-command.sh + chmod +x copy-mode-test-emacs.sh + sh copy-mode-test-emacs.sh ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh From 22e8733a73b733a4bba247fb13520567b192ce4b Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:47:32 -0400 Subject: [PATCH 11/17] update ic.yml with script --- .github/workflows/ic.yml | 54 +++------------------------------------- 1 file changed, 4 insertions(+), 50 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 03b3d84c..26f22941 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -36,56 +36,10 @@ jobs: - name: Run Tests working-directory: ./regress run: | - chmod +x am-terminal.sh - ./am-terminal.sh - chmod +x capture-pane-hyperlink.sh - ./capture-pane-hyperlink.sh - chmod +x combine-test.sh - sh combine-test.sh - chmod +x command-order.sh - sh command-order.sh - chmod +x conf-syntax.sh - sh conf-syntax.sh - chmod +x control-client-sanity.sh - sh control-client-sanity.sh - chmod +x cursor-test1.sh - sh cursor-test1.sh - chmod +x cursor-test2.sh - sh cursor-test2.sh - chmod +x cursor-test3.sh - sh cursor-test3.sh - chmod +x cursor-test4.sh - sh cursor-test4.sh - chmod +x has-session-return.sh - sh has-session-return.sh - chmod +x if-shell-error.sh - sh if-shell-error.sh - chmod +x if-shell-nested.sh - sh if-shell-nested.sh - chmod +x if-shell-TERM.sh - sh if-shell-TERM.sh - chmod +x input-keys.sh - sh input-keys.sh - chmod +x kill-session-process-exit.sh - sh kill-session-process-exit.sh - chmod +x new-session-base-index.sh - sh new-session-base-index.sh - chmod +x new-window-command.sh - sh new-window-command.sh - chmod +x osc-11colours.sh - sh osc-11colours.sh - chmod +x style-trim.sh - sh style-trim.sh - chmod +x control-client-size.sh - sh control-client-size.sh - chmod +x new-session-no-client.sh - sh new-session-no-client.sh - chmod +x new-session-size.sh - sh new-session-size.sh - chmod +x new-session-command.sh - sh new-session-command.sh - chmod +x copy-mode-test-emacs.sh - sh copy-mode-test-emacs.sh + for script in am-terminal.sh capture-pane-hyperlink.sh combine-test.sh command-order.sh conf-syntax.sh control-client-sanity.sh cursor-test{1..4}.sh has-session-return.sh if-shell-{error,nested,TERM}.sh input-keys.sh kill-session-process-exit.sh new-{session-base-index,window-command}.sh osc-11colours.sh style-trim.sh control-client-size.sh new-session-{no-client,size,command}.sh copy-mode-test-emacs.sh; do + chmod +x $script + ./$script + done ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh From 463a3e45035b9f63318333c48ce9d30005eb2b5e Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 17:59:42 -0400 Subject: [PATCH 12/17] update ic.yml with script --- .github/workflows/ic.yml | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 26f22941..03eb4675 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -32,13 +32,42 @@ jobs: ./configure make + # Explicitly declare an array of scripts to execute + declare -a scripts=( + "am-terminal.sh" + "capture-pane-hyperlink.sh" + "combine-test.sh" + "command-order.sh" + "conf-syntax.sh" + "control-client-sanity.sh" + "cursor-test1.sh" + "cursor-test2.sh" + "cursor-test3.sh" + "cursor-test4.sh" + "has-session-return.sh" + "if-shell-error.sh" + "if-shell-nested.sh" + "if-shell-TERM.sh" + "input-keys.sh" + "kill-session-process-exit.sh" + "new-session-base-index.sh" + "new-window-command.sh" + "osc-11colours.sh" + "style-trim.sh" + "control-client-size.sh" + "new-session-no-client.sh" + "new-session-size.sh" + "new-session-command.sh" + "copy-mode-test-emacs.sh" + ) + # Add additional steps for running tests if applicable. - name: Run Tests working-directory: ./regress run: | - for script in am-terminal.sh capture-pane-hyperlink.sh combine-test.sh command-order.sh conf-syntax.sh control-client-sanity.sh cursor-test{1..4}.sh has-session-return.sh if-shell-{error,nested,TERM}.sh input-keys.sh kill-session-process-exit.sh new-{session-base-index,window-command}.sh osc-11colours.sh style-trim.sh control-client-size.sh new-session-{no-client,size,command}.sh copy-mode-test-emacs.sh; do - chmod +x $script - ./$script + for script in "${scripts[@]}"; do + chmod +x "$script" + sh "$script" done ## chmod +x tty-keys.sh ## sh tty-keys.sh From 9afb41fbb4960338417a3fa741b092671c39a1a7 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 18:00:43 -0400 Subject: [PATCH 13/17] update ic.yml with script --- .github/workflows/ic.yml | 54 +++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 03eb4675..fad1899d 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -33,32 +33,34 @@ jobs: make # Explicitly declare an array of scripts to execute - declare -a scripts=( - "am-terminal.sh" - "capture-pane-hyperlink.sh" - "combine-test.sh" - "command-order.sh" - "conf-syntax.sh" - "control-client-sanity.sh" - "cursor-test1.sh" - "cursor-test2.sh" - "cursor-test3.sh" - "cursor-test4.sh" - "has-session-return.sh" - "if-shell-error.sh" - "if-shell-nested.sh" - "if-shell-TERM.sh" - "input-keys.sh" - "kill-session-process-exit.sh" - "new-session-base-index.sh" - "new-window-command.sh" - "osc-11colours.sh" - "style-trim.sh" - "control-client-size.sh" - "new-session-no-client.sh" - "new-session-size.sh" - "new-session-command.sh" - "copy-mode-test-emacs.sh" + - name: Build tmux + run: | + declare -a scripts=( + "am-terminal.sh" + "capture-pane-hyperlink.sh" + "combine-test.sh" + "command-order.sh" + "conf-syntax.sh" + "control-client-sanity.sh" + "cursor-test1.sh" + "cursor-test2.sh" + "cursor-test3.sh" + "cursor-test4.sh" + "has-session-return.sh" + "if-shell-error.sh" + "if-shell-nested.sh" + "if-shell-TERM.sh" + "input-keys.sh" + "kill-session-process-exit.sh" + "new-session-base-index.sh" + "new-window-command.sh" + "osc-11colours.sh" + "style-trim.sh" + "control-client-size.sh" + "new-session-no-client.sh" + "new-session-size.sh" + "new-session-command.sh" + "copy-mode-test-emacs.sh" ) # Add additional steps for running tests if applicable. From fee7b0ca7d8b6948fe651cdc0125d5599d69cb26 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 18:03:15 -0400 Subject: [PATCH 14/17] update ic.yml with script --- .github/workflows/ic.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index fad1899d..94ac28f6 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -33,7 +33,8 @@ jobs: make # Explicitly declare an array of scripts to execute - - name: Build tmux + - name: run tests + working-directory: ./regress run: | declare -a scripts=( "am-terminal.sh" @@ -61,16 +62,14 @@ jobs: "new-session-size.sh" "new-session-command.sh" "copy-mode-test-emacs.sh" - ) + ) - # Add additional steps for running tests if applicable. - - name: Run Tests - working-directory: ./regress - run: | for script in "${scripts[@]}"; do chmod +x "$script" - sh "$script" + ./"$script" done + + # Add additional steps for running tests if applicable. ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh From d88e0c3eef3af2d032343ba5730dfae4fa853897 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 18:04:22 -0400 Subject: [PATCH 15/17] update ic.yml with script --- .github/workflows/ic.yml | 90 +++++++++++++++++++++++----------------- 1 file changed, 53 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 94ac28f6..03b3d84c 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -32,44 +32,60 @@ jobs: ./configure make - # Explicitly declare an array of scripts to execute - - name: run tests - working-directory: ./regress - run: | - declare -a scripts=( - "am-terminal.sh" - "capture-pane-hyperlink.sh" - "combine-test.sh" - "command-order.sh" - "conf-syntax.sh" - "control-client-sanity.sh" - "cursor-test1.sh" - "cursor-test2.sh" - "cursor-test3.sh" - "cursor-test4.sh" - "has-session-return.sh" - "if-shell-error.sh" - "if-shell-nested.sh" - "if-shell-TERM.sh" - "input-keys.sh" - "kill-session-process-exit.sh" - "new-session-base-index.sh" - "new-window-command.sh" - "osc-11colours.sh" - "style-trim.sh" - "control-client-size.sh" - "new-session-no-client.sh" - "new-session-size.sh" - "new-session-command.sh" - "copy-mode-test-emacs.sh" - ) - - for script in "${scripts[@]}"; do - chmod +x "$script" - ./"$script" - done - # Add additional steps for running tests if applicable. + - name: Run Tests + working-directory: ./regress + run: | + chmod +x am-terminal.sh + ./am-terminal.sh + chmod +x capture-pane-hyperlink.sh + ./capture-pane-hyperlink.sh + chmod +x combine-test.sh + sh combine-test.sh + chmod +x command-order.sh + sh command-order.sh + chmod +x conf-syntax.sh + sh conf-syntax.sh + chmod +x control-client-sanity.sh + sh control-client-sanity.sh + chmod +x cursor-test1.sh + sh cursor-test1.sh + chmod +x cursor-test2.sh + sh cursor-test2.sh + chmod +x cursor-test3.sh + sh cursor-test3.sh + chmod +x cursor-test4.sh + sh cursor-test4.sh + chmod +x has-session-return.sh + sh has-session-return.sh + chmod +x if-shell-error.sh + sh if-shell-error.sh + chmod +x if-shell-nested.sh + sh if-shell-nested.sh + chmod +x if-shell-TERM.sh + sh if-shell-TERM.sh + chmod +x input-keys.sh + sh input-keys.sh + chmod +x kill-session-process-exit.sh + sh kill-session-process-exit.sh + chmod +x new-session-base-index.sh + sh new-session-base-index.sh + chmod +x new-window-command.sh + sh new-window-command.sh + chmod +x osc-11colours.sh + sh osc-11colours.sh + chmod +x style-trim.sh + sh style-trim.sh + chmod +x control-client-size.sh + sh control-client-size.sh + chmod +x new-session-no-client.sh + sh new-session-no-client.sh + chmod +x new-session-size.sh + sh new-session-size.sh + chmod +x new-session-command.sh + sh new-session-command.sh + chmod +x copy-mode-test-emacs.sh + sh copy-mode-test-emacs.sh ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh From 72c849617614f23ce4e040789b710f258c6aef89 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 23:34:14 -0400 Subject: [PATCH 16/17] fix pr comment --- .github/workflows/ic.yml | 56 ++++------------------------------------ 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index 03b3d84c..cd5dbe3c 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -25,7 +25,6 @@ jobs: fi # Add steps for other operating systems if needed, similar to the Linux steps above. - - name: Build tmux run: | sh autogen.sh @@ -36,56 +35,11 @@ jobs: - name: Run Tests working-directory: ./regress run: | - chmod +x am-terminal.sh - ./am-terminal.sh - chmod +x capture-pane-hyperlink.sh - ./capture-pane-hyperlink.sh - chmod +x combine-test.sh - sh combine-test.sh - chmod +x command-order.sh - sh command-order.sh - chmod +x conf-syntax.sh - sh conf-syntax.sh - chmod +x control-client-sanity.sh - sh control-client-sanity.sh - chmod +x cursor-test1.sh - sh cursor-test1.sh - chmod +x cursor-test2.sh - sh cursor-test2.sh - chmod +x cursor-test3.sh - sh cursor-test3.sh - chmod +x cursor-test4.sh - sh cursor-test4.sh - chmod +x has-session-return.sh - sh has-session-return.sh - chmod +x if-shell-error.sh - sh if-shell-error.sh - chmod +x if-shell-nested.sh - sh if-shell-nested.sh - chmod +x if-shell-TERM.sh - sh if-shell-TERM.sh - chmod +x input-keys.sh - sh input-keys.sh - chmod +x kill-session-process-exit.sh - sh kill-session-process-exit.sh - chmod +x new-session-base-index.sh - sh new-session-base-index.sh - chmod +x new-window-command.sh - sh new-window-command.sh - chmod +x osc-11colours.sh - sh osc-11colours.sh - chmod +x style-trim.sh - sh style-trim.sh - chmod +x control-client-size.sh - sh control-client-size.sh - chmod +x new-session-no-client.sh - sh new-session-no-client.sh - chmod +x new-session-size.sh - sh new-session-size.sh - chmod +x new-session-command.sh - sh new-session-command.sh - chmod +x copy-mode-test-emacs.sh - sh copy-mode-test-emacs.sh + for test_script in *.sh; do + chmod +x $test_script + echo Running test $test_script + ./$test_script + done ## chmod +x tty-keys.sh ## sh tty-keys.sh ## chmod +x format-strings.sh From 23a065a33b9cca3a09cb8237ffbc03fdca14e003 Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Wed, 20 Mar 2024 23:39:30 -0400 Subject: [PATCH 17/17] fix all pr comment --- .github/workflows/ic.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/ic.yml b/.github/workflows/ic.yml index cd5dbe3c..439b22f7 100644 --- a/.github/workflows/ic.yml +++ b/.github/workflows/ic.yml @@ -40,14 +40,7 @@ jobs: echo Running test $test_script ./$test_script done - ## chmod +x tty-keys.sh - ## sh tty-keys.sh - ## chmod +x format-strings.sh - ## sh format-strings.sh - ## chmod +x copy-mode-test-vi.sh - ## sh copy-mode-test-vi.sh - ## chmod +x new-session-environment.sh - ## sh new-session-environment.sh +