File: runTest.sh

package info (click to toggle)
haskell-dyre 0.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 224 kB
  • sloc: haskell: 608; sh: 96; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# If the main executable was compiled with -threaded, Dyre
# should also compile the custom executable with -threaded.

. ../subr.sh

mkdir -p working
cd working

### TEST A ###
cp ../Lib.hs ../Main.hs ../threadedTest.hs .
$HC -threaded --make Main.hs -o threadedTest || die "compilation failed"
OUTPUT_A=`./threadedTest --dyre-debug`
assert "$OUTPUT_A" "custom True" "A"

echo "Passed"
cd ..
rm -r working