Fix usage of CFLAGS with cmake in all.sh

With cmake, CFLAGS has to be set when invoking cmake, not make (which totally
ignores the value of CFLAGS when it runs and only keeps the one from cmake).

Also, in that case the flags were either redundant (-Werror etc) or wrong
(-std=c99 -pedantic) as some parts of the library will not build with
-pedantic (see the other -pedantic tests, which are correct, for what needs to
be disabled).
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 260eec3..9425efd 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -483,7 +483,7 @@
 cp "$CONFIG_H" "$CONFIG_BAK"
 scripts/config.pl full
 scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
-CC=clang cmake -D CMAKE_BUILD_TYPE:String=Check .
+CC=clang cmake -D CMAKE_BUILD_TYPE:String=Check -D ENABLE_TESTING=On .
 make
 
 msg "test: main suites (full config)" # ~ 5s