-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·25 lines (18 loc) · 832 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·25 lines (18 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# Simple test script to verify the handler responds correctly
# Example test case (you'll need to replace with actual test data)
echo "Testing kernel-bindings-test-handler..."
# Build the handler
dotnet build tools/kernel-bindings-test-handler/kernel-bindings-test-handler.csproj > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "❌ Build failed"
exit 1
fi
echo "✅ Build successful"
# Test 1: Invalid method
echo '{"id":"test-1","method":"invalid.method","params":{}}' | \
dotnet run --project tools/kernel-bindings-test-handler 2>/dev/null | \
grep -q '"error"' && echo "✅ Test 1 passed: Invalid method returns error" || echo "❌ Test 1 failed"
echo ""
echo "Handler is ready to use with conformance test suites."
echo "Run with: dotnet run --project tools/kernel-bindings-test-handler"