Added code emit tests

This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-26 13:18:50 +02:00 committed by GitHub
parent 91e389c4ff
commit 43677cbcfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 1 deletions

View File

@ -97,4 +97,49 @@ jobs:
- name: test3
run: ./tlang typecheck source/tlang/testing/test3.t
emit:
needs: build
name: Emit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download math result for job 1
uses: actions/download-artifact@v3
with:
name: tbin
- name: Chmod compiler
run: chmod +x tlang
- name: Simple functions
run: |
./tlang compile source/tlang/testing/simple_functions.t
./tlang.out
- name: Simple variables
run: |
./tlang compile source/tlang/testing/simple_variables.t
./tlang.out
- name: Simple conditions
run: |
./tlang compile source/tlang/testing/simple_conditions.t
./tlang.out
- name: Nested conditionals
run: |
./tlang compile source/tlang/testing/nested_conditionals.t
./tlang.out
- name: Simple function decls
run: |
./tlang compile source/tlang/testing/simple_function_decls.t
./tlang.out
- name: Simple function (only) decls
run: |
./tlang compile source/tlang/testing/simple_variables_only_decs.t
./tlang.out
- name: Simple variables decls assignment
run: |
./tlang compile source/tlang/testing/simple_variables_decls_ass.t
./tlang.out
- name: Simple while
run: |
./tlang compile source/tlang/testing/simple_while.t
./tlang.out