mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-07 21:45:43 +09:00
update: doc on how to run test
This commit is contained in:
parent
a801f3e8b2
commit
dfc000b389
1 changed files with 27 additions and 0 deletions
|
@ -27,8 +27,35 @@ backspaceでjulianモードに戻り(左側が`julia>`になってる)、`using
|
|||
テストでは実際にデータベースを作成している。
|
||||
デフォルトでは全部は実行しないが、master log fileをおき、かつ環境変数`LOCAL_TEST`を設定することで、master log fileが必要な工程まで含めて実行できる。[^1]
|
||||
|
||||
Pkgモード(`]`を押す)で`test`とうつと実行できる。
|
||||
環境変数の設定は`ENV["LOCAL_TEST"] = "1"`とでも書く。
|
||||
自動でsqlite browserを開く設定になっている。
|
||||
|
||||
[^1]: master log fileはgitには入れたくないので、このような形態をとっている。
|
||||
|
||||
## Master logを用意する
|
||||
|
||||
[`start-shiftwork`](https://gitlab.cern.ch/dhashimo/PS_Board_QAQC/-/blob/master/Software_Test/ShiftWorks/script/start-shiftwork?ref_type=heads)が生成するログファイル(同じリポジトリの`../log`のところ、通常はJATHub Masterにある)を`test/input/`以下に置く。
|
||||
以下のようにする。
|
||||
|
||||
```sh
|
||||
$ tree -L 2 test/input/
|
||||
test/input/
|
||||
└── log
|
||||
├── 100.log
|
||||
├── 101_long.log
|
||||
├── 102_long.log
|
||||
├── 103.log
|
||||
├── 104_long.log
|
||||
├── 105.log
|
||||
├── 106_long.log
|
||||
├── 107.log
|
||||
├── 108_long.log
|
||||
├── 109_long.log
|
||||
├── 110.log
|
||||
...
|
||||
```
|
||||
|
||||
# 新しいQAQCキャンペーン時に更新すべき内容
|
||||
|
||||
- [`PSBoardDataBase.insert_qaqc_campaign_id`](@ref): キャンペーンの日時
|
||||
|
|
Loading…
Add table
Reference in a new issue