Skip to content

Commit 03af403

Browse files
authored
tests: sync BUILD.gn files for devtools e2e tests (#14184)
1 parent ecf41d7 commit 03af403

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

lighthouse-core/scripts/roll-to-devtools.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ rsync -avh "$lh_webtests_exp_dir" "$fe_webtests_exp_dir" --exclude="OWNERS" --de
8484
# copy e2e tests
8585
lh_e2e_dir="third-party/devtools-tests/e2e/lighthouse/"
8686
fe_e2e_dir="$dt_dir/test/e2e/lighthouse"
87-
rsync -avh "$lh_e2e_dir" "$fe_e2e_dir" --exclude="OWNERS" --exclude="BUILD.gn" --delete
87+
rsync -avh "$lh_e2e_dir" "$fe_e2e_dir" --exclude="OWNERS" --delete
8888
lh_e2e_res_dir="third-party/devtools-tests/e2e/resources/lighthouse/"
8989
fe_e2e_res_dir="$dt_dir/test/e2e/resources/lighthouse"
90-
rsync -avh "$lh_e2e_res_dir" "$fe_e2e_res_dir" --exclude="OWNERS" --exclude="BUILD.gn" --delete
90+
rsync -avh "$lh_e2e_res_dir" "$fe_e2e_res_dir" --exclude="OWNERS" --delete
9191

9292
echo ""
9393
echo "Done. To run the webtests: "

third-party/devtools-tests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ See `lighthouse-core/test/chromium-web-tests/README.md` for more.
99
## Sync
1010

1111
```sh
12-
rsync -ahvz --exclude='OWNERS' --exclude='BUILD.gn' ~/src/devtools/devtools-frontend/test/e2e/lighthouse/ third-party/devtools-tests/e2e/lighthouse/
13-
rsync -ahvz --exclude='OWNERS' --exclude='BUILD.gn' ~/src/devtools/devtools-frontend/test/e2e/resources/lighthouse/ third-party/devtools-tests/e2e/resources/lighthouse/
12+
rsync -ahvz --exclude='OWNERS' ~/src/devtools/devtools-frontend/test/e2e/lighthouse/ third-party/devtools-tests/e2e/lighthouse/
13+
rsync -ahvz --exclude='OWNERS' ~/src/devtools/devtools-frontend/test/e2e/resources/lighthouse/ third-party/devtools-tests/e2e/resources/lighthouse/
1414
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2020 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("../../../third_party/typescript/typescript.gni")
6+
7+
node_ts_library("lighthouse") {
8+
sources = [
9+
"generate-report_test.ts",
10+
"indexeddb-warning_test.ts",
11+
]
12+
13+
deps = [
14+
"../../shared",
15+
"../helpers",
16+
]
17+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2022 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("../../../../scripts/build/ninja/copy.gni")
6+
7+
copy_to_gen("lighthouse") {
8+
sources = [ "lighthouse-storage.html" ]
9+
}

0 commit comments

Comments
 (0)