Skip to content

Commit

Permalink
fix smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Dec 2, 2024
1 parent 60239a5 commit ba4399d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions tests/smoke/Commands/format.smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ tests:
temp=$(mktemp -d)
trap 'rm -rf -- "$temp"' EXIT
pushd $temp > /dev/null
juvix init -n
juvix init
popd > /dev/null
cp positive/Format.juvix $temp
mkdir $temp/sub
pushd $temp/sub > /dev/null
juvix init -n
juvix init
popd > /dev/null
cp positive/Format.juvix $temp/sub
juvix format $temp
Expand Down Expand Up @@ -364,4 +364,3 @@ tests:
stderr:
contains: juvix format error
exit-status: 1

10 changes: 5 additions & 5 deletions tests/smoke/Commands/init.smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tests:
options:
- dot-all
exit-status: 0
- name: init-non-interactive-name
- name: init-name
command:
shell:
- bash
Expand All @@ -28,7 +28,7 @@ tests:
trap 'rm -rf -- "$temp"' EXIT
mkdir "$temp/packagename"
cd "$temp/packagename"
juvix init -n
juvix init
juvix repl Package.juvix
stdout:
contains: '"packagename"'
Expand All @@ -42,21 +42,21 @@ tests:
temp=$(mktemp -d)
trap 'rm -rf -- "$temp"' EXIT
cd $temp
echo -e 'packagename\n\n\n' | juvix init
echo -e 'packagename\n\n\n' | juvix init -i
juvix repl Package.juvix
stdout:
contains: '"packagename"'
stdin: Package.name package
exit-status: 0
- name: init-version
- name: init-version-interactive
command:
shell:
- bash
script: |
temp=$(mktemp -d)
trap 'rm -rf -- "$temp"' EXIT
cd $temp
echo -e 'packagename\n1.2.3-prerel+meta\n\n' | juvix init
echo -e 'packagename\n1.2.3-prerel+meta\n\n' | juvix init -i
juvix repl Package.juvix
stdout:
contains: |
Expand Down

0 comments on commit ba4399d

Please sign in to comment.