#!/bin/bash

CFILES=`find . -name "*.c"`

set -e

for F in $CFILES
do
    echo "Running test in $F"
    gcc -DUNIT_TEST -Wall -Wextra -Werror -g $F
    valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 ./a.out
done

echo "All done!"

#!/bin/bash

CFILES=`find . -name "*.c"`

set -e

for F in $CFILES
do
    echo
    echo "*** Running test in $F ***"
    echo
    gcc -DUNIT_TEST -Wall -Wextra -Werror -g $F
    valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 ./a.out
done

echo "All done!"

Test name should stand out.
Test name should stand out.
