-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.do
More file actions
executable file
·33 lines (23 loc) · 802 Bytes
/
test.do
File metadata and controls
executable file
·33 lines (23 loc) · 802 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
26
27
28
29
30
31
32
33
#!/bin/bash
# Run property-based tests
exec >&2
redo-ifchange haskell/build
echo "Running SPARK FFI freeze test..."
redo-ifchange spark-core/tests/build-freeze-test
echo "Running property-based tests..."
cd haskell
# Build the test suite
stack build --test --no-run-tests
# Set library path for SPARK FFI
export LD_LIBRARY_PATH="$PWD/../spark-core/lib:$LD_LIBRARY_PATH"
# Find and run the test executable directly
# This ensures LD_LIBRARY_PATH is properly inherited
TEST_EXE=$(find .stack-work -name "hadlink-test" -type f -executable 2>/dev/null | head -1)
if [ -z "$TEST_EXE" ]; then
echo "Error: Could not find hadlink-test executable"
exit 1
fi
echo "Running: $TEST_EXE"
# Run single-threaded: Ada FFI is not thread-safe for concurrent calls
"$TEST_EXE" +RTS -N1 -RTS
touch "$3"