From 75b0c4c10103a1268d53d16ac21765f941261d38 Mon Sep 17 00:00:00 2001 From: Vytor Calixto <vytorcalixto@gmail.com> Date: Thu, 11 May 2017 23:42:40 -0300 Subject: [PATCH] Aumenta tempo para testes rodarem --- .gitlab-ci.yml | 3 ++- tests/runTests.sh | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e3ea7f..da26465 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 5c58e4e..5c5b482 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 -- GitLab