Skip to content

Commit

Permalink
fix test and update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sekiguchi-nagisa committed May 15, 2024
1 parent cb3b0f5 commit 153bdc3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,14 @@ jobs:
strategy:
matrix:
cc: [ g++-14, clang++-18 ]
option: [ on, off ]
# option: [ on, off ]
option: [ off ]
steps:
- uses: actions/checkout@v4
- name: prepare
run: |
sudo apt update
sudo apt install language-pack-ja ninja-build lld lld-18
sudo apt install language-pack-ja ninja-build lld lld-18 llvm-18 llvm-18-dev
- name: configure
run: |
mkdir build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ jobs:
strategy:
matrix:
cc: [ g++-14, clang++-18 ]
option: [ on, off ]
# option: [ on, off ]
option: [ off ]
steps:
- uses: actions/checkout@v4
- name: prepare
run: |
sudo apt update
sudo apt install language-pack-ja ninja-build
sudo apt install language-pack-ja ninja-build lld lld-18 llvm-18 llvm-18-dev
- name: configure
run: |
mkdir build
Expand Down
10 changes: 5 additions & 5 deletions test/exec/cases/base/builtin_complete5.ds
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ assert diff <(cd $SCRIPT_DIR/../ && complete -m ${$/\d+/.replace($mod as String,

## options
assert "$({ complete -q ';'; assert $COMPREPLY.size() != 0; })".empty();
assert complete -s 'var';
assert $COMPREPLY.size() == 1 && $COMPREPLY[0] == 'var'
assert complete -s 'exportenv';
assert $COMPREPLY.size() == 1; assert $COMPREPLY[0] == 'exportenv'

## space insertion (-s option)
### variable
Expand All @@ -161,9 +161,9 @@ assert { complete -q 'whil'; $COMPREPLY.hasSpace(0); } # insert space after keyw
assert diff <(complete -s 'for aaa i') <(echo 'in ')
assert { complete -q 'for aaa i'; $COMPREPLY.hasSpace(0); }
### file name
assert diff <(complete -s '/bi') <(echo 'bin/')
assert { complete -q '/bi'; !$COMPREPLY.hasSpace(0); } # not insert space after dir
assert diff <(complete -s 'echo /bi') <(echo 'bin/')
assert diff <(complete -s '/us') <(echo 'usr/')
assert { complete -q '/us'; !$COMPREPLY.hasSpace(0); } # not insert space after dir
assert diff <(complete -s 'echo /us') <(echo 'usr/')
assert { complete -q 'echo /bi'; !$COMPREPLY.hasSpace(0); } # not insert space after dir even if command argument
if $OSTYPE !~ $/cygwin/i && $OSTYPE !~ $/msys/ {
assert diff <(complete -s '~roo') <(echo '~root/')
Expand Down
2 changes: 1 addition & 1 deletion test/exec/cases/base/glob.ds
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ assert "$(echo [ ])" == '[ ]'
assert "$(echo [${""}""$34)" == '['
assert $(echo /[a-zA-Z]*).sort().join(" ") == $(sh -c 'echo /[a-zA-Z]*').sort().join(" ")
assert $(echo /[!@]*).sort().join(" ") == $(sh -c 'echo /[!@]*').sort().join(" ")
assert $(echo /[^@]*).sort().join(" ") == $(sh -c 'echo /[^@]*').sort().join(" ")
assert $(echo /[^@]*).sort().join(" ") == $(echo /[!@]*).sort().join(" ")
assert $(echo /[[:alnum:]]*).sort().join(" ") == $(sh -c 'echo /[[:alnum:]]*').sort().join(" ")
assert $(echo ~/[a-z]*).sort().join(" ") == $(sh -c 'echo ~/[a-z]*').sort().join(" ")

Expand Down

0 comments on commit 153bdc3

Please sign in to comment.