Skip to content

Commit 9510042

Browse files
move testdata to top-level directory (#28)
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
1 parent c7851d9 commit 9510042

File tree

13 files changed

+7
-7
lines changed

13 files changed

+7
-7
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
# Emacs
1818
*~
1919

20-
internal/testdata/rust/*/target/*
20+
testdata/rust/*/target/*

cmd/wzprof/main_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
)
1111

1212
// This test file performs end-to-end validation of the profiler on actual wasm
13-
// binary files. They are located at internal/testdata/. Tests are very
14-
// sensitive to the content of those files. If you rebuild them, you will likely
15-
// need to rebuild the expected samples below. Use the printSamples() function
16-
// to help you with that.
13+
// binary files. They are located in testdata. Tests are very sensitive to the
14+
// content of those files. If you rebuild them, you will likely need to rebuild
15+
// the expected samples below. Use the printSamples() function to help you with
16+
// that.
1717

1818
func TestDataCSimple(t *testing.T) {
1919
expectedSamples := []sample{
@@ -52,7 +52,7 @@ func TestDataCSimple(t *testing.T) {
5252
}
5353

5454
prog := program{
55-
WasmPath: "../../internal/testdata/c/simple.wasm",
55+
WasmPath: "../../testdata/c/simple.wasm",
5656
CPUSampling: 1.0,
5757
Profilers: "cpu,mem",
5858
}
@@ -97,7 +97,7 @@ func TestDataRustSimple(t *testing.T) {
9797
}
9898

9999
prog := program{
100-
WasmPath: "../../internal/testdata/rust/simple/target/wasm32-wasi/debug/simple.wasm",
100+
WasmPath: "../../testdata/rust/simple/target/wasm32-wasi/debug/simple.wasm",
101101
CPUSampling: 1.0,
102102
Profilers: "cpu,mem",
103103
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)