Skip to content
Snippets Groups Projects
Commit 75b0c4c1 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Aumenta tempo para testes rodarem

parent 2def96df
Branches
No related tags found
No related merge requests found
Pipeline #
......@@ -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"
......
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment