File: generate-test-wbns.sh

package info (click to toggle)
thunderbird 1%3A115.16.0esr-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,476,252 kB
  • sloc: cpp: 6,972,150; javascript: 5,209,211; ansic: 3,507,222; python: 1,137,609; asm: 432,531; xml: 205,149; java: 175,761; sh: 116,485; makefile: 22,152; perl: 13,971; objc: 12,561; yacc: 4,583; pascal: 2,840; lex: 1,720; ruby: 1,075; exp: 762; sql: 666; awk: 580; php: 436; lisp: 430; sed: 70; csh: 10
file content (105 lines) | stat: -rwxr-xr-x 2,721 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/sh

set -e

if ! command -v gen-bundle > /dev/null 2>&1; then
    echo "gen-bundle is not installed. Please run:"
    echo "  go install github.com/WICG/webpackage/go/bundle/cmd/...@latest"
    echo '  export PATH=$PATH:$(go env GOPATH)/bin'
    exit 1
fi

# TODO: Stop hard-coding "web-platform.test" when generating Web Bundles on the
# fly.
wpt_test_origin=https://web-platform.test:8444
wpt_test_remote_origin=https://www1.web-platform.test:8444

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/wbn/static-element/ \
  -primaryURL $wpt_test_origin/web-bundle/resources/wbn/static-element/resources/style.css \
  -dir static-element/ \
  -o wbn/static-element.wbn

# Create a bundle, nested-main.wbn, which includes nested-sub.wbn.
cp -a wbn/subresource.wbn nested/nested-sub.wbn
gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/wbn/ \
  -primaryURL $wpt_test_origin/web-bundle/resources/wbn/resource.js \
  -dir nested/ \
  -o wbn/nested-main.wbn

gen-bundle \
  -version b2 \
  -har non-utf8-query-encoding.har \
  -primaryURL $wpt_test_origin/web-bundle/resources/wbn/static-element/resources/script.js?x=%A4%A2 \
  -o wbn/non-utf8-query-encoding.wbn

gen-bundle \
  -version b2 \
  -har corp.har \
  -primaryURL $wpt_test_remote_origin/web-bundle/resources/wbn/cors/no-corp.js \
  -o wbn/cors/corp.wbn

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/wbn/ \
  -primaryURL $wpt_test_origin/web-bundle/resources/wbn/location.html \
  -dir location/ \
  -o wbn/location.wbn

gen-bundle \
  -version b2 \
  -har relative-url.har \
  -o wbn/relative-url.wbn

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/wbn/ \
  -dir subresource/ \
  -o wbn/subresource.wbn

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/wbn/dynamic/ \
  -dir dynamic1/ \
  -o wbn/dynamic1.wbn

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/wbn/dynamic/ \
  -dir dynamic2/ \
  -o wbn/dynamic2.wbn

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_remote_origin/web-bundle/resources/wbn/dynamic/ \
  -dir dynamic1/ \
  -o wbn/dynamic1-crossorigin.wbn

gen-bundle \
  -version b2 \
  -baseURL $wpt_test_origin/web-bundle/resources/ \
  -dir path-restriction/ \
  -o wbn/path-restriction.wbn

gen-bundle \
  -version b2 \
  -har cross-origin.har \
  -o wbn/cors/cross-origin.wbn

gen-bundle \
  -version b2 \
  -har cross-origin-no-cors.har \
  -o wbn/no-cors/cross-origin.wbn

gen-bundle \
  -version b2 \
  -har uuid-in-package.har \
  -o wbn/uuid-in-package.wbn

gen-bundle \
  -version b2 \
  -har simple-cross-origin.har \
  -o wbn/simple-cross-origin.wbn