Browse Source

map tests for Linux and Mac

Jeroen van Rijn 2 years ago
parent
commit
9b88a38e54
3 changed files with 18 additions and 1 deletions
  1. 10 0
      .github/workflows/ci.yml
  2. 6 0
      tests/internal/Makefile
  3. 2 1
      tests/internal/build.bat

+ 10 - 0
.github/workflows/ci.yml

@@ -38,6 +38,11 @@ jobs:
           cd tests/vendor
           make
         timeout-minutes: 10
+      - name: Odin internals tests
+        run: |
+          cd tests/internal
+          make
+        timeout-minutes: 10
       - name: Odin check examples/all for Linux i386
         run: ./odin check examples/all -vet -strict-style -target:linux_i386
         timeout-minutes: 10
@@ -87,6 +92,11 @@ jobs:
           cd tests/vendor
           make
         timeout-minutes: 10
+      - name: Odin internals tests
+        run: |
+          cd tests/internals
+          make
+        timeout-minutes: 10
       - name: Odin check examples/all for Darwin arm64
         run: ./odin check examples/all -vet -strict-style -target:darwin_arm64
         timeout-minutes: 10

+ 6 - 0
tests/internal/Makefile

@@ -0,0 +1,6 @@
+ODIN=../../odin
+
+all: map_test
+
+map_test:
+	$(ODIN) run test_map.odin -file -vet -strict-style -o:minimal

+ 2 - 1
tests/internal/build.bat

@@ -1,3 +1,4 @@
 @echo off
 set PATH_TO_ODIN==..\..\odin
-%PATH_TO_ODIN% run test_map.odin -file -vet -strict-style -o:minimal -define:SEED=42
+%PATH_TO_ODIN% run test_map.odin -file -vet -strict-style -o:minimal
+rem -define:SEED=42