8 if [ "z$1" = "z--help" ]; then
9 echo "usage: $0 [options]"
12 echo " --lite lite tests"
15 if [ "z$1" = "z--dmd" ]; then
17 elif [ "z$1" = "z--lite" ]; then
20 echo "invalid arg: $1"
27 rm tweetNaCl tweetNaCl.o
2>/dev
/null
29 if [ $USE_DMD = "tan" ]; then
30 if [ $SHORT_TEST = "tan" ]; then
33 tt
="-version=unittest_full"
36 time dmd
-version=tweetnacl_unittest
-version=unittest_main
$tt -unittest -O -inline -w -oftweetNaCl tweetNaCl.d
38 if [ $SHORT_TEST = "tan" ]; then
41 tt
="-fversion=unittest_full"
44 time gdc
-fversion=tweetnacl_unittest
-fversion=unittest_main
$tt -funittest -O3 -fwrapv -march=native
-mtune=native
-Wall -o tweetNaCl tweetNaCl.d
48 rm tweetNaCl.o
2>/dev
/null
51 rm tweetNaCl.o
2>/dev
/null