Automated Result Compare Script

Automated Result Compare Script

Hey there,

EDIT: because of fisihing mails from a company named "Caffelli" (that asked for my address, phone number and some orther information) and referenced this forum, I removed my email adresses from the script.

while developing, my program sometimes produces wrong output (probably like any other program under development). Since I didn't want to execute everey scenario over and over again to test for differences I wrote a little scirpt with colored output for errors during execution, runtimes, and comarison of the output files. This script will remove the ../tmp relative to your working directory, so make sure to read the comment carefully:

# Written by Heye Vöcking
#
# This script compiles, runs, and compares your and the reference
# solutions output.
# You need to use the following folder structure:
# /path/to/your/directory/original (the extracted reference solution
# from Intel)
# /path/to/your/directory/{folder name} (e.g. a copy of the intel
# folder, but with your sources (it needs to have the same structure
# as the Intel folder))
#
# The runtime is recorded using the "time" command. There might be a
# build-in shell command, that produces output that cannot be reformatted.
# If you want to see formatted output (stderr will be colored red) install
# the binary time. Depending on your distribution you might need to alter
# the path in lines 72 and 73.
#
# The diffs of the play_hard output files is colored magenta, the output
# of the work_hard files is colored blue.
#
# This script will create a folder: "path/to/your/directory/tmp" in
# which the results of the two solutions are copied and then compared
# using the diff command.
#
# WARNING: The tmp folder will be deleted and recreated on execution!!!!
#
# Execute this script from "/path/to/your/directory/{folder name}", so
# it "knows" where your sourcecode is located ;)
#
# Note: This script might contain bugs, so there is a possibility that
# (despite all testing) delete or overwrite files. So use it with care
# and at your own risk!

I hope it helps you debugging your code.

Let me know about any bugs you encounter.

Cheers!

Note: The forum does not allow to upload *.sh files. So remove the .txt extension and do $ chmod +x script.sh.

Fichier attachéTaille
Télécharger run-all.sh.txt3.32 Ko
Rock the bits!
8 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

>> EDIT: because of fisihing mails from a company named "Caffelli" (that asked for my address, phone number and some orther information) and referenced this forum, I removed my email adresses from the script.

It's not fishing. Look at this thread: http://software.intel.com/en-us/forums/topic/349661 and especially at the post from Dmitry Oganezov.

Such a nice work but too late :(

Heye posted it 18/11/2012, just in time. Now he just corrected it.

I wonder if someone actually used the script ^^

Hmm, even Cédric thought it was a phishing mail.

Anyways, I'm happy that my email address was not added to some phishing list. :)

Rock the bits!

Today courier is going to deliver my present =) (I answered that email in December)

Hi,

It's not phishing, I also answered the e-mail in november or december and received the package about a week ago.

Best regards,
Nenad

Indeed, I thought it was pishing too.

It seems it is not tool late to answer to the email because they resent me the same email tw days ago.

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui