spack/var/spack/repos/builtin/packages/n2p2/test/result-check.sh
kuramoto-fj d65002a676
n2p2: Add new package (#21709)
* n2p2: Add new package

* remove ,

* Resurrection of , and changed " to single

* changed example.command to example.co

* n2p2: Added v2.1.1

* n2p2: Changed the type of depends_on.
2021-02-24 10:35:27 -06:00

13 lines
242 B
Bash
Executable File

#!/bin/bash
grep -e "No errors detected" "$1" > test-result.txt
grep -e "PASSED" "$2" >> test-result.txt
if cmp -s $3 test-result.txt; then
echo "Test of n2p2 PASSED !"
else
echo "Test of n2p2 Failed !"
fi
rm $1 $2 test-result.txt