Last active
August 29, 2015 13:58
-
-
Save lucaswerkmeister/10324086 to your computer and use it in GitHub Desktop.
Script to test ceylon/ceylon.language#429
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 | |
cd /tmp | |
ceylon new hello-world --module-name=tmp --module-version=1.0.0 --ant=false --eclipse=false "ceylon.language#429" | |
cd "ceylon.language#429" | |
cat > source/tmp/run.ceylon << EOF | |
import ceylon.file { Visitor } | |
void f() { | |
object w extends Visitor() {} | |
} | |
void run() { | |
value fun = \`function f\`; | |
} | |
EOF | |
cat > source/tmp/module.ceylon << EOF | |
module tmp "1.0.0" { | |
import ceylon.file "1.0.0"; | |
} | |
EOF | |
trap 'cd ..; rm -r ceylon.language#429' EXIT | |
ceylon compile tmp | |
# this will hang up, so let’s wait | |
ceylon run tmp & | |
sleep 10 | |
if ps -p $! &> /dev/null; then | |
echo "Ceylon didn’t finish, killing" | |
kill $! | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment