Skip to content

Commit

Permalink
Update to working state
Browse files Browse the repository at this point in the history
  • Loading branch information
volsa committed Jun 12, 2024
1 parent 7c80402 commit 8a397d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/lit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Run lit
- name: Run `build.sh --lit`
shell: bash
run: |
echo $PATH
./scripts/build.sh --lit
echo $PATH
./scripts/build.sh --lit
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ function run_lit_test() {
cargo build
cargo build --release

lit -v -DCOMPILER=$project_location/target/debug/plc tests/lit/
lit -v -DCOMPILER=$project_location/target/release/plc tests/lit/
lit -DCOMPILER=$project_location/target/debug/plc tests/lit/
lit -DCOMPILER=$project_location/target/release/plc tests/lit/
}

function run_test() {
Expand Down
6 changes: 3 additions & 3 deletions tests/lit/single/arithmetic/addition.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ FUNCTION main
y : DINT;
END_VAR

x := 60;
y := 9;
x := 5;
y := 5;
printf('%d$N', x + y);
// CHECK: 68
// CHECK: 10
END_FUNCTION

0 comments on commit 8a397d8

Please sign in to comment.