Skip to content

Commit a61fae7

Browse files
committed
fix(tasks): revert to using main repo's test.sh which was already working
The inline test task was conflicting with test.sh from main repo. Main repo's test.sh already had correct USAGE syntax and was working. Removing the redundant inline definition to use the working version.
1 parent 349ef88 commit a61fae7

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

mise.toml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -27,58 +27,6 @@ run = """
2727
rm -f release/cipherstash-encrypt.sql
2828
"""
2929

30-
[tasks."test"]
31-
description = "Run all tests (legacy SQL + SQLx Rust)"
32-
sources = ["src/**/*_test.sql", "tests/**/*.sql", "tests/sqlx/**/*.rs"]
33-
usage = '''
34-
flag "--postgres <version>" help="PostgreSQL version to test against" default="17" {
35-
choices "14" "15" "16" "17"
36-
}
37-
'''
38-
run = '''
39-
#!/bin/bash
40-
set -euo pipefail
41-
42-
POSTGRES_VERSION=${usage_postgres:-17}
43-
44-
echo "=========================================="
45-
echo "Running Complete EQL Test Suite"
46-
echo "PostgreSQL Version: $POSTGRES_VERSION"
47-
echo "=========================================="
48-
echo ""
49-
50-
# Check PostgreSQL is running
51-
{{config_root}}/tasks/check-postgres.sh ${POSTGRES_VERSION}
52-
53-
# Build first
54-
echo "Building EQL..."
55-
mise run build --force
56-
57-
# Run legacy SQL tests
58-
echo ""
59-
echo "=========================================="
60-
echo "1/2: Running Legacy SQL Tests"
61-
echo "=========================================="
62-
mise run test:legacy --postgres ${POSTGRES_VERSION}
63-
64-
# Run SQLx Rust tests
65-
echo ""
66-
echo "=========================================="
67-
echo "2/2: Running SQLx Rust Tests"
68-
echo "=========================================="
69-
mise run test:sqlx
70-
71-
echo ""
72-
echo "=========================================="
73-
echo "✅ ALL TESTS PASSED"
74-
echo "=========================================="
75-
echo ""
76-
echo "Summary:"
77-
echo " ✓ Legacy SQL tests"
78-
echo " ✓ SQLx Rust tests"
79-
echo ""
80-
'''
81-
8230
[tasks."test:legacy"]
8331
description = "Run legacy SQL tests (inline test files)"
8432
sources = ["src/**/*_test.sql", "tests/*.sql"]

0 commit comments

Comments
 (0)