Browse Source

Switch to 8 slices for test run

pull/2502/head
Sami Vaarala 2 years ago
parent
commit
fa80dcd786
  1. 34
      .github/workflows/test-workflow.yaml
  2. 20
      Makefile

34
.github/workflows/test-workflow.yaml

@ -1,9 +1,12 @@
name: Test
on: [push, pull_request]
jobs:
ecmatest:
name: Ecmatest
alltest:
name: API and ECMA
runs-on: ubuntu-22.04
strategy:
matrix:
slice: [ '1', '2', '3', '4', '5', '6', '7', '8' ]
steps:
- name: Checkout code
uses: actions/checkout@v2
@ -15,32 +18,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
- name: Test
run: |
make build/duk
- name: Ecmatest
run: |
TZ=Europe/Helsinki make ecmatest
apitest:
name: Apitest
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
make build/duk
- name: Apitest
run: |
TZ=Europe/Helsinki make apitest
TZ=Europe/Helsinki make test-all-${{matrix.slice}}
misctests:
name: Misc tests
runs-on: ubuntu-22.04

20
Makefile

@ -679,16 +679,28 @@ test-all: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all.log $(TEST_ALL_DIRS)
.PHONY: test-all-1
test-all-1: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-1.log --test-hash-min 0 --test-hash-max 63 $(TEST_ALL_DIRS)
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-1.log --test-hash-min 0 --test-hash-max 31 $(TEST_ALL_DIRS)
.PHONY: test-all-2
test-all-2: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-2.log --test-hash-min 64 --test-hash-max 127 $(TEST_ALL_DIRS)
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-2.log --test-hash-min 32 --test-hash-max 63 $(TEST_ALL_DIRS)
.PHONY: test-all-3
test-all-3: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-3.log --test-hash-min 128 --test-hash-max 191 $(TEST_ALL_DIRS)
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-3.log --test-hash-min 64 --test-hash-max 95 $(TEST_ALL_DIRS)
.PHONY: test-all-4
test-all-4: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-4.log --test-hash-min 192 --test-hash-max 255 $(TEST_ALL_DIRS)
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-4.log --test-hash-min 96 --test-hash-max 127 $(TEST_ALL_DIRS)
.PHONY: test-all-5
test-all-5: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-1.log --test-hash-min 128 --test-hash-max 159 $(TEST_ALL_DIRS)
.PHONY: test-all-6
test-all-6: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-2.log --test-hash-min 160 --test-hash-max 191 $(TEST_ALL_DIRS)
.PHONY: test-all-7
test-all-7: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-3.log --test-hash-min 192 --test-hash-max 223 $(TEST_ALL_DIRS)
.PHONY: test-all-8
test-all-8: prep-duktool | tmp deps/UglifyJS
"$(NODEJS)" src-tools/index.js run-tests --uglifyjs-bin deps/UglifyJS/bin/uglifyjs --test-log-file tmp/test-all-4.log --test-hash-min 224 --test-hash-max 255 $(TEST_ALL_DIRS)
.PHONY: perftest
perftest: prep-duktool | tmp deps/UglifyJS

Loading…
Cancel
Save