Skip to content

Commit

Permalink
(tests) moved testing workflows to run through the runAll script
Browse files Browse the repository at this point in the history
  • Loading branch information
amkrajewski committed Feb 27, 2024
1 parent 071b6d0 commit 03bc719
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 56 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/testingOnPush_Apple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,8 @@ jobs:
- name: Compile minCSO
run: nim c -d:release src/nimcso

- name: Runtime tests of benchmarks under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/benchmarksRuntime
- name: Runtime tests of benchmarks under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/benchmarksRuntime

- name: Brute Force under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/bruteForce
- name: Brute Force under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/bruteForce

- name: Least Preventing / Most Common under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/leastPreventing
- name: Least Preventing / Most Common under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/leastPreventing

- name: Algorithm Search under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/algorithmSearch
- name: Algorithm Search under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/algorithmSearch
- name: Runtime all tests under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/runAll

- name: Runtime all tests under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/runAll
22 changes: 4 additions & 18 deletions .github/workflows/testingOnPush_Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,8 @@ jobs:
- name: Compile minCSO
run: nim c -d:release src/nimcso

- name: Runtime tests of benchmarks under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/benchmarksRuntime
- name: Runtime tests of benchmarks under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/benchmarksRuntime

- name: Brute Force under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/bruteForce
- name: Brute Force under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/bruteForce
- name: Runtime all tests under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/runAll

- name: Least Preventing / Most Common under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/leastPreventing
- name: Least Preventing / Most Common under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/leastPreventing

- name: Algorithm Search under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/algorithmSearch
- name: Algorithm Search under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/algorithmSearch
- name: Runtime all tests under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/runAll
24 changes: 5 additions & 19 deletions .github/workflows/testingOnPush_Windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,8 @@ jobs:
- name: Compile minCSO
run: nim c -d:release src/nimcso

- name: Runtime tests of benchmarks under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/benchmarksRuntime
- name: Runtime tests of benchmarks under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/benchmarksRuntime

- name: Brute Force under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/bruteForce
- name: Brute Force under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/bruteForce

- name: Least Preventing / Most Common under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/leastPreventing
- name: Least Preventing / Most Common under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/leastPreventing

- name: Algorithm Search under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/algorithmSearch
- name: Algorithm Search under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/algorithmSearch
- name: Runtime all tests under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/runAll

- name: Runtime all tests under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/runAll

0 comments on commit 03bc719

Please sign in to comment.