Skip to content

Commit

Permalink
chore: tests delete everything in .lake, to avoid incompatible header
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Nov 26, 2024
1 parent 77cec38 commit 5376f76
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/pkg/builtin_attr/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build
2 changes: 1 addition & 1 deletion tests/pkg/deriving/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build
2 changes: 1 addition & 1 deletion tests/pkg/frontend/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build

# Check that we can compile a file which shares with the executable
Expand Down
2 changes: 1 addition & 1 deletion tests/pkg/misc/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build
2 changes: 1 addition & 1 deletion tests/pkg/prv/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build 2>&1 | grep 'error: .*: field.*private'
2 changes: 1 addition & 1 deletion tests/pkg/test_extern/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Ideally there would be a more principled testing framework
# that took care of all this!

rm -rf .lake/build
rm -rf .lake

# Function to process the output
verify_output() {
Expand Down
2 changes: 1 addition & 1 deletion tests/pkg/user_attr/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build
2 changes: 1 addition & 1 deletion tests/pkg/user_attr_app/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build && ./.lake/build/bin/user_attr
2 changes: 1 addition & 1 deletion tests/pkg/user_ext/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

rm -rf .lake/build
rm -rf .lake
lake build -v 2>&1 | grep 'hello, test, world'

0 comments on commit 5376f76

Please sign in to comment.