Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'JS_compile_test_progs' into 'internal-dev'
Test Program Compilation See merge request github/killerbeez!62
- Loading branch information
Showing
12 changed files
with
70 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cmake_minimum_required (VERSION 2.8.8) | ||
project (corpus) | ||
|
||
# All of the Windows test programs have precompiled versions, as the DynamoRIO | ||
# instrumentation needs exact offsets into the program to know where to hook. | ||
# As such, we've included precompiled versions with and listed the offsets, | ||
# rather than having the user compile them. | ||
if (UNIX) | ||
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BUILD_DIRECTORY}/killerbeez/corpus/ ) | ||
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BUILD_DIRECTORY}/killerbeez/corpus/ ) | ||
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BUILD_DIRECTORY}/killerbeez/corpus/ ) | ||
|
||
add_subdirectory(hang) | ||
add_subdirectory(libtest) | ||
add_subdirectory(persist) | ||
add_subdirectory(test) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake_minimum_required (VERSION 2.8.8) | ||
project (hang-linux) | ||
|
||
add_executable(hang-linux ${PROJECT_SOURCE_DIR}/hang.c) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cmake_minimum_required (VERSION 2.8.8) | ||
project (libtest) | ||
|
||
add_executable(libtest ${PROJECT_SOURCE_DIR}/test.c) | ||
add_executable(libtest_pie ${PROJECT_SOURCE_DIR}/test.c) | ||
add_library(test1 SHARED ${PROJECT_SOURCE_DIR}/lib1.c) | ||
add_library(test2 SHARED ${PROJECT_SOURCE_DIR}/lib2.c) | ||
|
||
set_target_properties(libtest PROPERTIES LINK_FLAGS "-no-pie") | ||
|
||
target_link_libraries(libtest test1 test2) | ||
target_link_libraries(libtest_pie test1 test2) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required (VERSION 2.8.8) | ||
project (persist) | ||
|
||
set(PERSIST_SRC ${PROJECT_SOURCE_DIR}/test.c) | ||
|
||
add_executable(nopersist ${PERSIST_SRC}) | ||
add_executable(persist ${PERSIST_SRC}) | ||
add_executable(persist_hang ${PERSIST_SRC}) | ||
add_executable(deferred ${PERSIST_SRC}) | ||
add_executable(deferred_nohook ${PERSIST_SRC}) | ||
|
||
target_compile_definitions(persist PUBLIC PERSIST) | ||
target_compile_definitions(persist_hang PUBLIC PERSIST PUBLIC HANG) | ||
target_compile_definitions(deferred PUBLIC SLOW_STARTUP) | ||
target_compile_definitions(deferred_nohook PUBLIC SLOW_STARTUP PUBLIC DEFERRED_NOHOOK) | ||
|
||
target_link_libraries(persist forkserver) | ||
target_link_libraries(persist_hang forkserver) | ||
target_link_libraries(deferred forkserver) | ||
target_link_libraries(deferred_nohook forkserver) | ||
|
||
include_directories(${PROJECT_SOURCE_DIR}/../../instrumentation/) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake_minimum_required (VERSION 2.8.8) | ||
project (test-linux) | ||
|
||
add_executable(test-linux ${PROJECT_SOURCE_DIR}/test.c) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters