#  Test the function Ln_Factorial() and xLn_Factorial()
#  in the file ln_factorial.c                 
#
#  Dependent on: 
#     ln_factorial.c has no dependencies.
#     testlnfactorial.c requires factorial.c
#
#  After downloading change permissions: chmod 744 testlnfactorial.sh 
#  Execute as ./testlnfactorial.sh (unless your profile has a PATH set to
#                                 this directory)

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

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

# Change! if testlnfactorial.c is in a different directory.
gcc -o cvers testlnfactorial.c a.o x.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 > LnFactorialTest.txt

# Delete temporary files.
rm cvers
rm a.o
rm x.o

