10 if [ "z$1" = "z--help" ]; then
11 echo "usage: $0 [options]"
14 echo " --lite lite tests"
15 echo " --dmdv use vanilla DMD"
17 echo " --opt optimize"
20 if [ "z$1" = "z--dmd" ]; then
22 elif [ "z$1" = "z--lite" ]; then
24 elif [ "z$1" = "z--dmdv" ]; then
27 elif [ "z$1" = "z--dmd" ]; then
29 elif [ "z$1" = "z--gdc" ]; then
31 elif [ "z$1" = "z--opt" ]; then
33 elif [ "z$1" = "z--lite" ]; then
35 elif [ "z$1" = "z--dmdv" ]; then
39 echo "invalid arg: $1"
46 rm tweetNaCl
*.o
2>/dev
/null
48 if [ $USE_DMD = "tan" ]; then
49 if [ $SHORT_TEST = "tan" ]; then
52 tt
="-version=unittest_full"
54 if [ $USE_DMD_VANILLA = "tan" ]; then
59 echo -n "DMD... [$dmdbin]"
60 if [ $USE_OPT = "tan" ]; then
66 time "$dmdbin" $tt $opts -g -w -oftweetNaCl ..
/tweetNaCl.d tweetNaCl_test.d
68 if [ $SHORT_TEST = "tan" ]; then
71 tt
="-fversion=unittest_full"
74 time gdc
$tt -O3 -fwrapv -march=native
-mtune=native
-Wall -o tweetNaCl ..
/tweetNaCl.d tweetNaCl_test.d