#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
unset LD_LIBRARY_PATH
unset LD_LIBRARY_PATH_32
unset LD_LIBRARY_PATH_64
unset LD_PRELOAD
unset LD_PRELOAD_32
unset LD_PRELOAD_64
export TOPDIR="../../"
export DO_CLEANUP="no"
export INDEX_HTML="index.html"
export LD_LIBRARY_PATH="../lib"
export LD_LIBRARY_PATH_32="../lib"
export LD_LIBRARY_PATH_64="../lib"
--topdir=*)
;;
--cleanup)
;;
--help)
;;
*)
;;
esac
if [ "${UNKNOWN_ARG}" = "yes" ] ; then
echo "$1: Invalid argument"
shift
continue
fi
shift
done
export TOPDIR DO_CLEANUP
exit 1
fi
}
cat /dev/null > ${INDEX_HTML}
}
if [ "${DO_CLEANUP}" = "yes" ] ; then
return
fi
"accumulate" \
"adj_diff" \
"advance" \
"alg1" \
"alg2" \
"alg3" \
"alg4" \
"alg5" \
"alg6" \
"alg7" \
"auto_ptr" \
"binary_search" \
"binders" \
"bitset" \
"codecvt" \
"codecvt1" \
"collate" \
"complex" \
"complx" \
"copyex" \
"count" \
"ctype" \
"deque" \
"distance" \
"dynatype" \
"equal" \
"equal_range" \
"failure" \
"filebuf" \
"fill" \
"find" \
"find_end" \
"find_first_of" \
"fmtflags_manip" \
"for_each" \
"fstream" \
"funct_ob" \
"generate" \
"graph" \
"gslice" \
"gslice_array" \
"has_facet" \
"heap_ops" \
"icecream" \
"ifstream" \
"includes" \
"indirect_array" \
"inner_product" \
"insert_iterator" \
"insert_wchar" \
"isalnum" \
"istream1" \
"istreambuf_iterator" \
"istringstream" \
"istrstream" \
"lex_compare" \
"limits" \
"list" \
"locale" \
"map" \
"mask_array" \
"max" \
"max_elem" \
"mbsrtowcs" \
"memfunc" \
"memfunref" \
"merge" \
"messages" \
"mismatch" \
"money_get" \
"moneypunct" \
"moneyput" \
"multimap" \
"multiset" \
"mutex" \
"negator" \
"nthelem" \
"num_get" \
"numpunct" \
"num_put" \
"ostream" \
"ostreambuf_iterator" \
"partial_sort" \
"partial_sum" \
"partition" \
"permutation" \
"pnt2fnct" \
"priority_queue" \
"queue" \
"radix" \
"random_shuffle" \
"remove" \
"replace" \
"reverse" \
"reverse_iterator" \
"rotate" \
"rwexcept" \
"search" \
"set_diff" \
"setex" \
"set_intr" \
"set_sym_diff" \
"set_union" \
"sieve" \
"slice" \
"slice_array" \
"sort" \
"stack" \
"stdexcept" \
"stringbuf" \
"strstream" \
"strstreambuf" \
"swap" \
"tele" \
"teller" \
"time_get" \
"time_put" \
"toupper" \
"transform" \
"ul_bound" \
"unique" \
"use_facet" \
"valarray" \
"vector" \
"widwork" \
"wostream" \
"wstringstream"
do
echo "------------------------------------------------------------"
if [ -f ${file} ] ; then
echo -n "Running example program ${file} ..."
logfile="${file}.out"
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
else
echo "Example program ${file} not found. Skipping."
fi
echo "------------------------------------------------------------"
done
}
if [ "${DO_CLEANUP}" = "yes" ] ; then
return
fi
echo "------------------------------------------------------------"
echo -n "Running example program spell ... "
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
echo "------------------------------------------------------------"
echo -n "Running example program stocks ... "
echo y y q | ./stocks >> ./stocks.out 2>&1
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
echo "------------------------------------------------------------"
echo -n "Running example program calc ... "
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
echo "------------------------------------------------------------"
echo -n "Running example program concord ... "
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
echo "------------------------------------------------------------"
echo -n "Running example program money_manip ... "
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
echo "------------------------------------------------------------"
echo -n "Running example program string ... "
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
echo "------------------------------------------------------------"
echo -n "Running example program time_manip ... "
ret=$?
echo "SUCCESS."
else
echo "FAIL."
fi
echo "------------------------------------------------------------"
}
if [ "${DO_CLEANUP}" = "no" ] ; then
return
fi
"accumulate" \
"adj_diff" \
"advance" \
"alg1" \
"alg2" \
"alg3" \
"alg4" \
"alg5" \
"alg6" \
"alg7" \
"auto_ptr" \
"binary_search" \
"binders" \
"bitset" \
"calc" \
"codecvt" \
"codecvt1" \
"collate" \
"complex" \
"complx" \
"concord" \
"copyex" \
"count" \
"ctype" \
"deque" \
"distance" \
"dynatype" \
"equal" \
"equal_range" \
"failure" \
"filebuf" \
"fill" \
"find" \
"find_end" \
"find_first_of" \
"fmtflags_manip" \
"for_each" \
"fstream" \
"funct_ob" \
"generate" \
"graph" \
"gslice" \
"gslice_array" \
"has_facet" \
"heap_ops" \
"icecream" \
"ifstream" \
"includes" \
"indirect_array" \
"inner_product" \
"insert_iterator" \
"insert_wchar" \
"isalnum" \
"istream1" \
"istreambuf_iterator" \
"istringstream" \
"istrstream" \
"lex_compare" \
"limits" \
"list" \
"locale" \
"map" \
"mask_array" \
"max" \
"max_elem" \
"mbsrtowcs" \
"memfunc" \
"memfunref" \
"merge" \
"messages" \
"mismatch" \
"money_get" \
"moneypunct" \
"moneyput" \
"money_manip" \
"multimap" \
"multiset" \
"mutex" \
"negator" \
"nthelem" \
"num_get" \
"numpunct" \
"num_put" \
"ostream" \
"ostreambuf_iterator" \
"partial_sort" \
"partial_sum" \
"partition" \
"permutation" \
"pnt2fnct" \
"priority_queue" \
"queue" \
"radix" \
"random_shuffle" \
"remove" \
"replace" \
"reverse" \
"reverse_iterator" \
"rotate" \
"rwexcept" \
"search" \
"set_diff" \
"setex" \
"set_intr" \
"set_sym_diff" \
"set_union" \
"sieve" \
"slice" \
"slice_array" \
"sort" \
"spell" \
"stack" \
"stdexcept" \
"stocks" \
"string" \
"stringbuf" \
"strstream" \
"strstreambuf" \
"swap" \
"tele" \
"teller" \
"time_get" \
"time_manip" \
"time_put" \
"toupper" \
"transform" \
"ul_bound" \
"unique" \
"use_facet" \
"valarray" \
"vector" \
"widwork" \
"wostream" \
"wstringstream"
do
rm -f "${file}.out"
done
}
check_args $@
exit 0