#  Test the function Rising_Factorial() and xRising_Factorial() in the 
#  file rising_factorial.c.                 
#
#  Dependent on:
#     factorial.c, ln_factorial.c
#
#  After downloading change permissions: chmod 744 testrisingfactorial.sh 
#  Execute as ./testrisingfactorial.sh (unless your profile has a PATH set to
#                                       this directory)

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

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

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

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

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

