Skip to content

Commit 7d291a7

Browse files
authored
Rename tests/ to test/. NFC (#17502)
The name of the directory where tests live is more commonly known as just `test`. This matches the convention used by sister projects of emscripten: llvm, binaryen, and wabt. This is big change but git is good a tracking renames so anyone with outstanding changes in this directory should not have any issues.
1 parent 0d92586 commit 7d291a7

File tree

4,727 files changed

+175
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,727 files changed

+175
-172
lines changed

.circleci/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ commands:
108108
name: embuilder build ALL
109109
command: |
110110
./embuilder build ALL
111-
./tests/runner test_hello_world
111+
./test/runner test_hello_world
112112
- run:
113113
name: embuilder (LTO)
114114
command: |
115115
./embuilder build MINIMAL --lto
116-
./tests/runner test_hello_world
116+
./test/runner test_hello_world
117117
- run:
118118
name: embuilder (WASM64)
119119
command: |
@@ -122,12 +122,12 @@ commands:
122122
name: embuilder (PIC)
123123
command: |
124124
./embuilder build MINIMAL_PIC --pic
125-
./tests/runner test_hello_world
125+
./test/runner test_hello_world
126126
- run:
127127
name: embuilder (PIC+LTO)
128128
command: |
129129
./embuilder build MINIMAL --pic --lto
130-
./tests/runner test_hello_world
130+
./test/runner test_hello_world
131131
- run:
132132
name: freeze cache
133133
command: |
@@ -169,7 +169,7 @@ commands:
169169
- run:
170170
name: run tests
171171
command: |
172-
./tests/runner << parameters.test_targets >>
172+
./test/runner << parameters.test_targets >>
173173
$EMSDK_PYTHON ./tools/check_clean.py
174174
run-tests-linux:
175175
description: "Runs emscripten tests"
@@ -229,7 +229,7 @@ commands:
229229
echo "-----"
230230
echo "Running browser tests"
231231
echo "-----"
232-
tests/runner browser skip:browser.test_sdl2_mouse skip:browser.test_html5_webgl_create_context skip:browser.test_webgl_offscreen_canvas_in_pthread skip:browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread skip:browser.test_glut_glutget
232+
test/runner browser skip:browser.test_sdl2_mouse skip:browser.test_html5_webgl_create_context skip:browser.test_webgl_offscreen_canvas_in_pthread skip:browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread skip:browser.test_glut_glutget
233233
# posix and emrun suites are disabled because firefox errors on
234234
# "Firefox is already running, but is not responding."
235235
# TODO: find out a way to shut down and restart firefox
@@ -256,8 +256,8 @@ commands:
256256
# PIC version of libSDL which is used by test_sdl2_misc_main_module
257257
export EM_FROZEN_CACHE=""
258258
# skip test_zzz_zzz_4gb_fail as it OOMs on the current bot
259-
tests/runner browser posixtest_browser.test_pthread_create_1_1 skip:browser.test_zzz_zzz_4gb_fail
260-
tests/runner emrun
259+
test/runner browser posixtest_browser.test_pthread_create_1_1 skip:browser.test_zzz_zzz_4gb_fail
260+
test/runner emrun
261261
test-sockets-chrome:
262262
description: "Runs emscripten sockets tests under chrome"
263263
steps:
@@ -276,7 +276,7 @@ commands:
276276
CHROME_FLAGS_NOCACHE: "--disk-cache-dir=/dev/null --disk-cache-size=1 --media-cache-size=1 --disable-application-cache --incognito"
277277
command: |
278278
export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE"
279-
tests/runner sockets
279+
test/runner sockets
280280
281281
jobs:
282282
build-docs:

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
source = .
3-
omit = ./tests/*
3+
omit = ./test/*
44
./third_party/*
55
./tools/emcoverage.py
66
test.py

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ignorePatterns:
1010
- "site/"
1111
- "cache/"
1212
- "third_party/"
13-
- "tests/"
13+
- "test/"
1414
- "src/polyfill/"
1515
- "src/library*.js"
1616
- "src/runtime_*.js"

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exclude =
44
./third_party/, # third-party code
55
./tools/filelock.py, # third-party code
66
./tools/scons/, # third-party code
7-
./tests/third_party/, # third-party code
7+
./test/third_party/, # third-party code
88
./site/source/conf.py,
99
./tools/debug/,
1010
./system/lib/, # system libraries
@@ -14,5 +14,5 @@ exclude =
1414
# they need to implement the specific plugin APIs
1515
per-file-ignores =
1616
./tools/ports/*.py: U100
17-
./tests/*.py: U100
17+
./test/*.py: U100
1818
./tools/toolchain_profiler.py: U100

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
tools/crunch-worker.js -diff
44
third_party/lzma.js/lzma-decoder.js -diff
55
third_party/lzma.js/lzma-full.js -diff
6-
tests/other/test_emsize.js -diff
6+
test/other/test_emsize.js -diff
77
src/emscripten-source-map.min.js -diff
8-
tests/* linguist-vendored
8+
test/* linguist-vendored
99
third_party/* linguist-vendored
1010
system/ linguist-vendored
1111

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "tests/third_party/posixtestsuite"]
2-
path = tests/third_party/posixtestsuite
1+
[submodule "test/third_party/posixtestsuite"]
2+
path = test/third_party/posixtestsuite
33
url = https://github.com/emscripten-core/posixtestsuite

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ See docs/process.md for more on how version tagging works.
2020

2121
3.1.18
2222
------
23+
- The tests/ directory was renamed to just test/ to match other project close
24+
emscripten (llvm, wabt, binaryen). This should not effect any users of
25+
emscripten, only developers. (#17502)
2326

2427
3.1.17 - 07/22/2022
2528
------

docs/packaging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ linux distributions, or other downstream SDKs.
66

77
Firstly, we provide an install script in `tools/install.py`. This allows
88
just the end-user parts of emscripten to be installed. For example this avoids
9-
including the `tests/third_party` directory which is of that biggest parts
9+
including the `test/third_party` directory which is of that biggest parts
1010
of the source tree.
1111

1212
If you prefer, you can use `make install` or `make dist` which invokes

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ def run(args):
11181118
compiler = shared.EMCC
11191119
if run_via_emxx:
11201120
compiler = shared.EMXX
1121-
cmd = [compiler, utils.path_from_root('tests', input_file), '-v', '-c', '-o', temp_target] + args
1121+
cmd = [compiler, utils.path_from_root('test', input_file), '-v', '-c', '-o', temp_target] + args
11221122
proc = run_process(cmd, stderr=PIPE, check=False)
11231123
if proc.returncode != 0:
11241124
print(proc.stderr)

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jinja2<3.1
1818
# Pin docutils because newer versions are not compatible with sphinx 2.4.4
1919
docutils==0.17.1
2020

21-
# Needed by tests/test_sockets.py
21+
# Needed by test/test_sockets.py
2222
websockify==0.10.0

0 commit comments

Comments
 (0)