From 2123e2bf5dfe266c6d9155510b0fa7a4da813ff3 Mon Sep 17 00:00:00 2001 From: lfainsin Date: Tue, 22 Dec 2020 13:27:03 +0000 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20d'un=20test=20en=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://cregut.svn.enseeiht.fr/2020/1sn/pim/projets/GH-05@210315 e13453a9-b01f-0410-a051-f404c4f0c485 --- test_pagerank.bash | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 test_pagerank.bash diff --git a/test_pagerank.bash b/test_pagerank.bash new file mode 100644 index 0000000..f831043 --- /dev/null +++ b/test_pagerank.bash @@ -0,0 +1,52 @@ +#!/bin/bash + +ulimit -s 1000000 + +make clean +echo +colormake +echo + +echo "$(tput setaf 2)command: build/pagerank -P fichiers_test/Exemple_sujet/exemple_sujet.net$(tput setaf 7)" +build/pagerank -P fichiers_test/Exemple_sujet/exemple_sujet.net +echo +cmp --silent \ + fichiers_test/Exemple_sujet/exemple_sujet_GH05.ord \ + fichiers_test/Exemple_sujet/exemple_sujet.ord \ + || echo "$(tput setaf 1)exemple_sujet .ord files are different$(tput setaf 7)" +cmp --silent \ + fichiers_test/Exemple_sujet/exemple_sujet_GH05.p \ + fichiers_test/Exemple_sujet/exemple_sujet_P_6.p \ + || echo "$(tput setaf 1)exemple_sujet .p files are different$(tput setaf 7)" +echo + +echo "$(tput setaf 2)command: build/pagerank -P fichiers_test/Worm/worm.net$(tput setaf 7)" +build/pagerank -P fichiers_test/Worm/worm.net +echo +cmp --silent \ + fichiers_test/Worm/worm_GH05.ord \ + fichiers_test/Worm/worm.ord \ + || echo "$(tput setaf 1)worm .ord files are different$(tput setaf 7)" +cmp --silent \ + fichiers_test/Worm/worm_GH05.p \ + fichiers_test/Worm/worm_P_6.p \ + || echo "$(tput setaf 1)worm .p files are different$(tput setaf 7)" +echo + +echo "$(tput setaf 2)command: build/pagerank -P fichiers_test/Brainlinks/brainlinks.net$(tput setaf 7)" +build/pagerank -P fichiers_test/Brainlinks/brainlinks.net +echo +cmp --silent \ + fichiers_test/Brainlinks/brainlinks_GH05.ord \ + fichiers_test/Brainlinks/brainlinks.ord \ + || echo "$(tput setaf 1)brainlinks .ord files are different$(tput setaf 7)" +cmp --silent \ + fichiers_test/Brainlinks/brainlinks_GH05.p \ + fichiers_test/Brainlinks/brainlinks_P_6.p \ + || echo "$(tput setaf 1)brainlinks .p files are different$(tput setaf 7)" +echo + +#build/pagerank fichiers_test/Exemple_sujet/exemple_sujet.net +#build/pagerank fichiers_test/Worm/worm.net +#build/pagerank fichiers_test/Brainlinks/brainlinks.net +#build/pagerank fichiers_test/Linux26/Linux26.net