Skip to content

Commit

Permalink
Merge pull request #399 from niklasmohrin/tests
Browse files Browse the repository at this point in the history
Various test improvements
  • Loading branch information
niklasmohrin authored Jan 2, 2025
2 parents ceee231 + dbab55a commit 8266307
Show file tree
Hide file tree
Showing 17 changed files with 321 additions and 294 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Build with logging and webpki roots
run: cargo build --features logging,webpki-roots --no-default-features
- name: Run tests
run: cargo test
run: cargo test -- --test-threads 1

clippy:
name: run clippy lints
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ native-roots = ["reqwest/rustls-tls-native-roots"]
webpki-roots = ["reqwest/rustls-tls-webpki-roots"]
native-tls = ["reqwest/native-tls"]

ignore-online-tests = []

[profile.release]
strip = true
opt-level = 3
Expand Down
37 changes: 37 additions & 0 deletions tests/cache/pages.ja/common/apt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# apt

> Debian系ディストリビューションで使われるパッケージ管理システムです。
> Ubuntuのバージョンが16.04か、それ以降で対話モードを使う場合`apt-get`の代わりとして使用します。
> 詳しくはこちら: <https://manned.org/apt.8>
- 利用可能なパーケージとバージョンのリストの更新(他の`apt`コマンドの前での実行を推奨):

`sudo apt update`

- 指定されたパッケージの検索:

`apt search {{パッケージ}}`

- パッケージの情報を出力:

`apt show {{パッケージ}}`

- パッケージのインストール、または利用可能な最新バージョンに更新:

`sudo apt install {{パッケージ}}`

- パッケージの削除(`sudo apt remove --purge`の場合設定ファイルも削除):

`sudo apt remove {{パッケージ}}`

- インストールされている全てのパッケージを最新のバージョンにアップグレード:

`sudo apt upgrade`

- インストールできるすべてのパッケージを表示:

`apt list`

- インストールされた全てのパッケージを表示(依存関係も表示):

`apt list --installed`
36 changes: 36 additions & 0 deletions tests/cache/pages/common/git-checkout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# git checkout

> Checkout a branch or paths to the working tree.
> More information: <https://git-scm.com/docs/git-checkout>.
- Create and switch to a new branch:

`git checkout -b {{branch_name}}`

- Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

`git checkout -b {{branch_name}} {{reference}}`

- Switch to an existing local branch:

`git checkout {{branch_name}}`

- Switch to the previously checked out branch:

`git checkout -`

- Switch to an existing remote branch:

`git checkout --track {{remote_name}}/{{branch_name}}`

- Discard all unstaged changes in the current directory (see `git reset` for more undo-like commands):

`git checkout .`

- Discard unstaged changes to a given file:

`git checkout {{path/to/file}}`

- Replace a file in the current directory with the version of it committed in a given branch:

`git checkout {{branch_name}} -- {{path/to/file}}`
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 0 additions & 32 deletions tests/chmod.ru.expected

This file was deleted.

32 changes: 0 additions & 32 deletions tests/chmod.ru.md

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 8266307

Please sign in to comment.