os: add input_password(prompt) and unit tests (#15507)

This commit is contained in:
Subhomoy Haldar 2022-08-23 20:47:38 +05:30 committed by GitHub
parent d08edf8cba
commit 3b42f18dee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 111 additions and 0 deletions

View file

@ -29,6 +29,7 @@ jobs:
## The following is needed for examples/wkhtmltopdf.v
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt-get install --quiet -y xfonts-75dpi xfonts-base
sudo apt-get install --quiet -y expect
sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb
- name: Build v
run: |
@ -92,6 +93,11 @@ jobs:
./v2 -o v3 -usecache cmd/v
./v3 version
./v3 -o tetris -usecache examples/tetris/tetris.v
- name: Test password input
run: |
./v examples/password
./v examples/password/password_ci.vsh
ubuntu-tcc-boehm-gc:
runs-on: ubuntu-20.04
@ -239,6 +245,10 @@ jobs:
./v2 -o v3 -usecache cmd/v
./v3 version
./v3 -o tetris -usecache examples/tetris/tetris.v
- name: Test password input
run: |
./v examples/password
./v examples/password/password_ci.vsh
ubuntu:
runs-on: ubuntu-20.04