Add c++ compiler test for stat.h
This commit is contained in:
parent
3098556919
commit
240156d895
2 changed files with 13 additions and 0 deletions
6
tests/c++-compiler/stat_h.cpp
Normal file
6
tests/c++-compiler/stat_h.cpp
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#define _GNU_SOURCE 1
|
||||||
|
#include <sys/stat.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -23,6 +23,12 @@ compiler_version_cmd() {
|
||||||
$cmd
|
$cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compiler_check_stat_h() {
|
||||||
|
cmd="CC stat_h.cpp"
|
||||||
|
echo $cmd
|
||||||
|
$cmd
|
||||||
|
}
|
||||||
|
|
||||||
compiler_check_stdexcept() {
|
compiler_check_stdexcept() {
|
||||||
cmd="CC stdexcept.cpp"
|
cmd="CC stdexcept.cpp"
|
||||||
echo $cmd
|
echo $cmd
|
||||||
|
@ -59,6 +65,7 @@ for compiler in $compilers; do
|
||||||
compiler_version_cmd $compiler 2>>$logfile >>$logfile || error=1
|
compiler_version_cmd $compiler 2>>$logfile >>$logfile || error=1
|
||||||
compiler_check_helloworld $compiler 2>>$logfile >>$logfile || error=1
|
compiler_check_helloworld $compiler 2>>$logfile >>$logfile || error=1
|
||||||
compiler_check_stdexcept $compiler 2>> $logfile >>$logfile || error=1
|
compiler_check_stdexcept $compiler 2>> $logfile >>$logfile || error=1
|
||||||
|
compiler_check_stat_H $compiler 2>> $logfile >>$logfile || error=1
|
||||||
if [ $error != 0 ] ; then
|
if [ $error != 0 ] ; then
|
||||||
echo "failed :-("
|
echo "failed :-("
|
||||||
echo "Error msg:"
|
echo "Error msg:"
|
||||||
|
|
Loading…
Reference in a new issue