Tests: Drop tests that have not run for over 10 years

This commit is contained in:
Brad King
2017-09-15 07:49:05 -04:00
parent c0c5f924fe
commit f1f109e971
22 changed files with 0 additions and 209 deletions

View File

@@ -813,31 +813,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
)
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/CustomCommandWorkingDirectory")
#add_test(SimpleExclude ${CMAKE_CTEST_COMMAND}
# --build-and-test
# "${CMake_SOURCE_DIR}/Tests/SimpleExclude"
# "${CMake_BINARY_DIR}/Tests/SimpleExclude"
# ${build_generator_args}
# --build-project SimpleExclude
# --build-two-config
# --build-options ${build_options}
# --test-command t4
#--test-command "${CMAKE_COMMAND}"
#"-DCONFIGURATION=\${CTEST_CONFIGURATION_TYPE}"
#-P "${CMake_BINARY_DIR}/Tests/SimpleExclude/run.cmake"
#)
# add_test(SameName ${CMAKE_CTEST_COMMAND}
# --build-and-test
# "${CMake_SOURCE_DIR}/Tests/SameName"
# "${CMake_BINARY_DIR}/Tests/SameName"
# ${build_generator_args}
# --build-project SameName
# --build-two-config
# --build-options ${build_options}
# --test-command
# "${CMake_BINARY_DIR}/Tests/SameName/Exe1/mytest2")
add_test(OutOfSource ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/OutOfSource"

View File

@@ -1,7 +0,0 @@
cmake_minimum_required (VERSION 2.6)
project(SameName C)
add_subdirectory(Lib1)
include_directories(${PROJECT_SOURCE_DIR}/Lib1)
add_subdirectory(Exe1)

View File

@@ -1,11 +0,0 @@
# a target with the same name as a target in a different dir
add_executable(mytest_exe conly.c)
set_target_properties(mytest_exe PROPERTIES OUTPUT_NAME mytest)
target_link_libraries(mytest_exe mytest)
# and two targets in the same dir with the same name
add_library(mytest2 ../Lib1/libc1.c)
add_executable(mytest2_exe conly.c)
set_target_properties(mytest2_exe PROPERTIES OUTPUT_NAME mytest2)
target_link_libraries(mytest2_exe mytest2)

View File

@@ -1,11 +0,0 @@
#include "libc1.h"
#include <stdio.h>
int main()
{
if (LibC1Func() != 2.0) {
printf("Problem with libc1\n");
return 1;
}
return 0;
}

View File

@@ -1 +0,0 @@
add_library(mytest libc1.c)

View File

@@ -1,4 +0,0 @@
float LibC1Func()
{
return 2.0;
}

View File

@@ -1 +0,0 @@
extern float LibC1Func();

View File

@@ -1,11 +0,0 @@
cmake_minimum_required (VERSION 2.6)
project(SimpleExclude C)
set(EXECUTABLE_OUTPUT_PATH "${SimpleExclude_BINARY_DIR}" CACHE INTERNAL "" FORCE)
set(LIBRARY_OUTPUT_PATH "${SimpleExclude_BINARY_DIR}" CACHE INTERNAL "" FORCE)
add_subdirectory(dirC EXCLUDE_FROM_ALL)
add_subdirectory(dirD)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/run.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/run.cmake" @ONLY)

View File

@@ -1,3 +0,0 @@
add_subdirectory(dirA EXCLUDE_FROM_ALL)
add_subdirectory(dirB)

View File

@@ -1,10 +0,0 @@
add_library(t1 STATIC t1.c)
add_library(t2 STATIC t2.c)
add_executable(t3 t3.c)
add_executable(t4 t4.c)
add_executable(t5 t5.c)
target_link_libraries(t5 t1)

View File

@@ -1,8 +0,0 @@
#include <stdio.h>
int tlib1func()
{
Should not be build unless target directory A, B, or C are build;
printf("This is T1\n");
return 5;
}

View File

@@ -1,7 +0,0 @@
#include <stdio.h>
int tlib2func()
{
printf("This is T2\n");
return 2;
}

View File

@@ -1,7 +0,0 @@
#include <stdio.h>
int main(int argc, char* argv[])
{
Should not be build unless target directory A, B, or C are build;
return 0;
}

View File

@@ -1,17 +0,0 @@
#include <stdio.h>
#ifdef __CLASSIC_C__
int main()
{
int ac;
char* av[];
#else
int main(int ac, char* av[])
{
#endif
if (ac > 1000) {
return *av[0];
}
printf("This is T4. This one should work.\n");
return 0;
}

View File

@@ -1,7 +0,0 @@
#include <stdio.h>
int main(int argc, char* argv[])
{
Should not be build unless target directory A, B, or C are build;
return 5;
}

View File

@@ -1,5 +0,0 @@
add_library(t6 STATIC t6.c)
add_library(t7 STATIC t7.c)
target_link_libraries(t7 t2)

View File

@@ -1,8 +0,0 @@
#include <stdio.h>
int tlib6func()
{
Should not be build unless target directory B, or C are build;
printf("This is T6\n");
return 6;
}

View File

@@ -1,15 +0,0 @@
#include <stdio.h>
extern int tlib2func();
int tlib7func()
{
printf("This is T7\n");
if (tlib2func() != 2) {
fprintf(stderr, "Something wrong with T2\n");
return 1;
}
return 7;
}

View File

@@ -1,7 +0,0 @@
add_library(t8 STATIC t8.c)
add_executable(t9 t9.c)
target_link_libraries(t9 t7)
add_custom_target(t4_custom ALL)
add_dependencies(t4_custom t4)

View File

@@ -1,7 +0,0 @@
#include <stdio.h>
int tlib8func()
{
printf("This is T8\n");
return 8;
}

View File

@@ -1,24 +0,0 @@
#include <stdio.h>
extern int tlib7func();
#ifdef __CLASSIC_C__
int main()
{
int ac;
char* av[];
#else
int main(int ac, char* av[])
{
#endif
if (ac > 1000) {
return *av[0];
}
printf("This is T9. This one should work.\n");
if (tlib7func() != 7) {
fprintf(stderr, "Something wrong with T7\n");
return 1;
}
return 0;
}

View File

@@ -1,13 +0,0 @@
set(t4_name "\"@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t4\"")
exec_program("${t4_name}" RETURN_VALUE "t4_var")
message("T4 ${t4_name} resulted ${t4_var}")
set(t9_name "\"@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t9\"")
exec_program("${t9_name}" RETURN_VALUE "t9_var")
message("T9 ${t9_name} resulted ${t9_var}")
if ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" )
message("Everything is good, Yoshimi won...")
else ()
message(FATAL_ERROR "Yoshimi lost... The evil pink robots will take over the world")
endif ()