diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e3ea7f1db52986b2924209218fa58ab7fd6fbab..da264654ba92837ef2c6303b8327133855a59fff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,10 @@ before_script: - apt-get -y install build-essential make autoconf gcc - make -run_tests: +test: stage: test script: + - valgrind --leak-check=full main - make test - cd tests - gnuplot "tempos.plot" diff --git a/tests/runTests.sh b/tests/runTests.sh index 5c58e4e3e86e8c4464906e1b75525e29b79af16e..5c5b48209da6e643e7a19a53b870247de9150776 100755 --- a/tests/runTests.sh +++ b/tests/runTests.sh @@ -1,13 +1,13 @@ #!/bin/bash # tempo máximo para executar, em milisegundos -tempo_max=500 +tempo_max=10000 #10s # tamanhos do tabuleiro -tams=(4 8 16 32 64 128) +tams=(4 8 16 32 50 64 80 92 100) # lista de cores -cores=(2 4 8 16) +cores=(2 3 4 5 6 7 8) #-- Cores do terminal RED='\033[0;31m' @@ -67,7 +67,7 @@ done fs=$(cat tabuleiros.txt | wc -l) if [ ${fs} -gt "1" ]; then - echo -e "${RED}${fs} tabuleiro(s) passou do tempo limite de ${tempo_max} milisegundos:${NC}" + echo -e "${RED}${fs} tabuleiro(s) passou(passaram) do tempo limite de ${tempo_max} milisegundos:${NC}" cat tabuleiros.txt exit 1 else