Skip to content

Commit

Permalink
add smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Oct 22, 2024
1 parent 67e4567 commit 4a66cf2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Anoma/Compilation/positive/test001-args.debug.nockma
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[1 100]
32 changes: 32 additions & 0 deletions tests/smoke/Commands/compile.smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,38 @@ tests:
stdout: ""
exit-status: 0

- name: target-anoma-run-debug
command:
shell:
- bash
script: |
temp=$(mktemp -d)
trap 'rm -rf -- "$temp"' EXIT
testdir=$PWD/tests/Anoma/Compilation/positive
cd $temp
juvix --log-level error compile anoma $testdir/test001.juvix --debug
[ -f test001.debug.nockma ]
juvix dev nockma run test001.debug.nockma --args $testdir/test001-args.debug.nockma
stdout: |
106
exit-status: 0

- name: target-anoma-run
command:
shell:
- bash
script: |
temp=$(mktemp -d)
trap 'rm -rf -- "$temp"' EXIT
testdir=$PWD/tests/Anoma/Compilation/positive
cd $temp
juvix --log-level error compile anoma $testdir/test001.juvix
[ -f test001.nockma ]
juvix dev nockma run test001.nockma --args $testdir/test001-args.debug.nockma
stdout: |
106
exit-status: 0

- name: target-anoma
command:
shell:
Expand Down

0 comments on commit 4a66cf2

Please sign in to comment.