mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-20 21:30:43 +00:00
Add test programs for feature testing
This commit is contained in:
parent
087e26b846
commit
d75bce40ec
@ -589,8 +589,10 @@ TestPrograms/test_arm_sha512.cxx
|
|||||||
TestPrograms/test_arm_sha3.cxx
|
TestPrograms/test_arm_sha3.cxx
|
||||||
TestPrograms/test_arm_sm3.cxx
|
TestPrograms/test_arm_sm3.cxx
|
||||||
TestPrograms/test_arm_sm4.cxx
|
TestPrograms/test_arm_sm4.cxx
|
||||||
|
TestPrograms/test_asm_mixed.cxx
|
||||||
TestPrograms/test_cxx.cxx
|
TestPrograms/test_cxx.cxx
|
||||||
TestPrograms/test_mixed_asm.cxx
|
TestPrograms/test_cxx11.cxx
|
||||||
|
TestPrograms/test_glibc.cxx
|
||||||
TestPrograms/test_newlib.cxx
|
TestPrograms/test_newlib.cxx
|
||||||
TestPrograms/test_ppc_aes.cxx
|
TestPrograms/test_ppc_aes.cxx
|
||||||
TestPrograms/test_ppc_altivec.cxx
|
TestPrograms/test_ppc_altivec.cxx
|
||||||
|
@ -411,7 +411,7 @@ ifeq ($(DETECT_FEATURES),1)
|
|||||||
|
|
||||||
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
|
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
|
||||||
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
|
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
|
||||||
#TPROG = TestPrograms/test_mixed_asm.cxx
|
#TPROG = TestPrograms/test_asm_mixed.cxx
|
||||||
#HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
#HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||||
#ifneq ($(strip $(HAVE_OPT)),0)
|
#ifneq ($(strip $(HAVE_OPT)),0)
|
||||||
# CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
# CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
||||||
|
@ -365,7 +365,7 @@ ifeq ($(DETECT_FEATURES),1)
|
|||||||
|
|
||||||
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
|
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
|
||||||
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
|
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
|
||||||
#TPROG = TestPrograms/test_mixed_asm.cxx
|
#TPROG = TestPrograms/test_asm_mixed.cxx
|
||||||
#HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
#HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ZOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||||
#ifneq ($(strip $(HAVE_OPT)),0)
|
#ifneq ($(strip $(HAVE_OPT)),0)
|
||||||
# CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
# CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
|
||||||
|
6
TestPrograms/test_cxx11.cxx
Normal file
6
TestPrograms/test_cxx11.cxx
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Real C++11 libraries provide <forward_list>
|
||||||
|
#include <forward_list>
|
||||||
|
int main(int argc, char* argv[])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
8
TestPrograms/test_glibc.cxx
Normal file
8
TestPrograms/test_glibc.cxx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <string>
|
||||||
|
int main(int argc, char* argv[])
|
||||||
|
{
|
||||||
|
#ifndef __GLIBCXX__
|
||||||
|
int x[-1];
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
@ -2,7 +2,7 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
#ifndef __NEWLIB__
|
#ifndef __NEWLIB__
|
||||||
XXX
|
int x[-1];
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user