Last active
August 29, 2015 13:57
-
-
Save cheecheeo/9521607 to your computer and use it in GitHub Desktop.
Thrift Haskell testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
cabal sandbox hc-pkg unregister thrift | |
rm -rf ./tutorial/hs/dist/ ./tutorial/gen-hs && | |
cabal sandbox init && | |
pushd lib/hs && | |
ln -sf ../../.cabal-sandbox . && | |
ln -sf ../../cabal.sandbox.config . && | |
popd && | |
./bootstrap.sh && | |
./configure && | |
make -j 3 && | |
pushd tutorial && | |
../compiler/cpp/thrift -r --gen hs tutorial.thrift && | |
pushd hs && | |
ln -sf ../../.cabal-sandbox . && | |
ln -sf ../../cabal.sandbox.config . && | |
cabal install && | |
popd && | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
pushd .cabal-sandbox/bin | |
./HaskellServer & | |
trap "kill -9 $!" EXIT | |
until ./HaskellClient; do | |
sleep 0.1 | |
done | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment