Skip to content

Commit 8ae07d3

Browse files
committed
fix tests
1 parent 230388c commit 8ae07d3

2 files changed

Lines changed: 24 additions & 7 deletions

File tree

test/lit/help/wasm-split.test

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
;; CHECK-NEXT: --split Split an input module into two output
1616
;; CHECK-NEXT: modules. The default mode.
1717
;; CHECK-NEXT:
18+
;; CHECK-NEXT: --multi-split Split an input module into an arbitrary
19+
;; CHECK-NEXT: number of output modules.
20+
;; CHECK-NEXT:
1821
;; CHECK-NEXT: --instrument Instrument an input module to allow it to
1922
;; CHECK-NEXT: generate a profile that can be used to
2023
;; CHECK-NEXT: guide splitting.
@@ -43,6 +46,18 @@
4346
;; CHECK-NEXT: can also pass a file with one function
4447
;; CHECK-NEXT: per line by passing @filename.
4548
;; CHECK-NEXT:
49+
;; CHECK-NEXT: --manifest [multi-split] File describing the
50+
;; CHECK-NEXT: functions to be split into each module.
51+
;; CHECK-NEXT: Each section separated by a blank line
52+
;; CHECK-NEXT: begins with the base name of an output
53+
;; CHECK-NEXT: module, which is followed by a list of
54+
;; CHECK-NEXT: functions to place in that module, one
55+
;; CHECK-NEXT: per line.
56+
;; CHECK-NEXT:
57+
;; CHECK-NEXT: --out-prefix [multi-split] Prefix prepended to module
58+
;; CHECK-NEXT: names in the manifest file to create
59+
;; CHECK-NEXT: output file names.
60+
;; CHECK-NEXT:
4661
;; CHECK-NEXT: --primary-output,-o1 [split] Output file for the primary
4762
;; CHECK-NEXT: module.
4863
;; CHECK-NEXT:
@@ -125,10 +140,12 @@
125140
;; CHECK-NEXT: --emit-text,-S [split, instrument] Emit text instead of
126141
;; CHECK-NEXT: binary for the output file or files.
127142
;; CHECK-NEXT:
128-
;; CHECK-NEXT: --debuginfo,-g [split, instrument] Emit names section in
129-
;; CHECK-NEXT: wasm binary (or full debuginfo in wast)
143+
;; CHECK-NEXT: --debuginfo,-g [split, multi-split, instrument] Emit
144+
;; CHECK-NEXT: names section in wasm binary (or full
145+
;; CHECK-NEXT: debuginfo in wast)
130146
;; CHECK-NEXT:
131-
;; CHECK-NEXT: --output,-o [instrument, merge-profiles] Output file.
147+
;; CHECK-NEXT: --output,-o [instrument, merge-profiles, multi-split]
148+
;; CHECK-NEXT: Output file.
132149
;; CHECK-NEXT:
133150
;; CHECK-NEXT: --unescape,-u Un-escape function names (in
134151
;; CHECK-NEXT: print-profile output)

test/lit/wasm-split/multi-split.wast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
22

33
;; RUN: wasm-split -all -g --multi-split %s --manifest %s.manifest --out-prefix=%t -o %t.wasm
4-
;; RUN: wasm-dis %t.wasm | filecheck --check-prefix=PRIMARY
5-
;; RUN: wasm-dis %t1.wasm | filecheck --check-prefix=CHECK-A
6-
;; RUN: wasm-dis %t2.wasm | filecheck --check-prefix=CHECK-B
7-
;; RUN: wasm-dis %t3.wasm | filecheck --check-prefix=CHECK-C
4+
;; RUN: wasm-dis %t.wasm | filecheck %s --check-prefix=PRIMARY
5+
;; RUN: wasm-dis %t1.wasm | filecheck %s --check-prefix=CHECK-A
6+
;; RUN: wasm-dis %t2.wasm | filecheck %s --check-prefix=CHECK-B
7+
;; RUN: wasm-dis %t3.wasm | filecheck %s --check-prefix=CHECK-C
88

99
(module
1010
(type $ret-i32 (func (result i32)))

0 commit comments

Comments
 (0)