#  Test the function Factorial(), Factorial_Max_Arg(), and xFactorial()
#  in the file factorial.c                 
#
#  Dependent on: (none)
#
#  After downloading change permissions: chmod 744 testfactorial.sh 
#  Execute as ./testfactorial.sh (unless your profile has a PATH set to
#                                 this directory)

# Change! if factorial.c is in a different directory.
gcc -c -o a.o factorial.c

# Change! if testfactorial.c is in a different directory.
gcc -o cvers testfactorial.c a.o -lm

# Change! if you profile has a PATH set to this directory or you
# want to change the name of the output file.

./cvers > FactorialTest.txt

# Delete temporary files.
rm cvers
rm a.o

