Skip to content

Commit

Permalink
Add a test for the unit test benchmark
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Feb 29, 2024
1 parent 4bbe094 commit 978db3f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
repo: SOMpp.git
apt: libcppunit-dev
build: "cmake . && make SOM++"
som: "./som.sh"
som: "./som.sh"
not-up-to-date: true

- name: CSOM
Expand All @@ -23,13 +23,13 @@ jobs:
export COMPILER=gcc
export ARCH=64bit
make
som: "./som.sh"
som: "./som.sh"
not-up-to-date: true

- name: JsSOM
repo: JsSOM.git
build: ""
som: "./som.sh"
som: "./som.sh"
not-up-to-date: true

- name: PySOM
Expand All @@ -39,7 +39,7 @@ jobs:

- name: SOM (Java)
build: make
som: ./som.sh
som: ./som.sh
repo: som-java.git
not-up-to-date: false

Expand All @@ -59,7 +59,7 @@ jobs:
not-up-to-date: false

- name: Specification Tests
som: spec
som: spec
not-up-to-date: false

- name: SOM-RS
Expand All @@ -72,7 +72,7 @@ jobs:
- name: ykSOM
repo: yksom.git
build: "cargo build"
som: "cargo run -- "
som: "cargo run -- "
som-tests: "--cp ../Smalltalk ../TestSuite/TestHarness.som"
not-up-to-date: true

Expand Down Expand Up @@ -168,12 +168,13 @@ jobs:
run: |
cd som-vm
${{ matrix.som }} -cp ../Smalltalk:../TestSuite:../SomSom/src/compiler:../SomSom/src/interpreter:../SomSom/src/primitives:../SomSom/src/vm:../SomSom/src/vmobjects ../SomSom/tests/SomSomTests.som
- name: Test Unit Test Benchmark
if: ${{ matrix.repo == 'som-java.git' }}
run: |
cd Examples/Benchmarks/TestSuite
./duplicate-tests.sh
cd ../../../som-vm
${{ matrix.som }} -cp ../Smalltalk:../TestSuite ../Examples/Benchmarks/TestSuite/TestTestSuite.som
${{ matrix.som }} -cp ../Smalltalk:../Examples/Benchmarks/TestSuite ../Examples/Benchmarks/BenchmarkHarness.som --gc TestGC100 1 1
${{ matrix.som }} -cp ../Smalltalk:../Examples/Benchmarks/TestSuite ../Examples/Benchmarks/BenchmarkHarness.som Test100 1 1
29 changes: 29 additions & 0 deletions Examples/Benchmarks/TestSuite/TestTestSuite.som
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
TestTestSuite = TestHarness (
tests = ( "Now ordered by alphabetical order to improve maintainability"
^ Array1Test,
Block1Test,
Boolean1Test,
ClassLoading1Test,
ClassStructure1Test,
Closure1Test,
Coercion1Test,
CompilerReturn1Test,
Dictionary1Test,
DoesNotUnderstand1Test,
Double1Test,
Empty1Test,
Global1Test,
Hash1Test,
Integer1Test,
Preliminary1Test,
Reflection1Test,
SelfBlock1Test,
Set1Test,
SpecialSelectors1Test,
String1Test,
Super1Test,
Symbol1Test,
System1Test,
Vector1Test
)
)

0 comments on commit 978db3f

Please sign in to comment.