Re-enable testing

This commit is contained in:
Zahary Karadjov 2020-04-04 00:30:28 +03:00
parent d704aed7c0
commit d5d32328bd
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 8 additions and 2 deletions

View File

@ -93,11 +93,17 @@ libbacktrace:
# builds and runs the test suite
test: | build deps
echo fake test completed!
$(ENV_SCRIPT) nim test $(NIM_PARAMS) nimbus.nims
# primitive reproducibility test
test-reproducibility:
echo fake reproducability test completed!
+ [ -e build/nimbus ] || $(MAKE) V=0 nimbus; \
MD5SUM1=$$($(MD5SUM) build/nimbus | cut -d ' ' -f 1) && \
rm -rf nimcache/*/nimbus && \
$(MAKE) V=0 nimbus && \
MD5SUM2=$$($(MD5SUM) build/nimbus | cut -d ' ' -f 1) && \
[ "$$MD5SUM1" = "$$MD5SUM2" ] && echo -e "\e[92mSuccess: identical binaries.\e[39m" || \
{ echo -e "\e[91mFailure: the binary changed between builds.\e[39m"; exit 1; }
# usual cleaning
clean: | clean-common