-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added xmldiff (library) and xml-diff (binary).
- Loading branch information
Showing
4 changed files
with
42 additions
and
7 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 |
---|---|---|
@@ -1,6 +1,19 @@ | ||
add_executable(xml_patch_main xml_patch_main.c) | ||
target_link_libraries(xml_patch_main PRIVATE xmlpatch) | ||
target_compile_definitions(xml_patch_main PRIVATE VERSION="0.4.x") | ||
add_test(NAME xml_patch | ||
COMMAND xml_patch_main -f ${CMAKE_CURRENT_SOURCE_DIR}/test.xml -p | ||
add_executable(xml-patch xml_patch_main.c) | ||
target_link_libraries(xml-patch PRIVATE xmlpatch) | ||
install(TARGETS xml-patch) | ||
add_test(NAME xml-patch | ||
COMMAND xml-patch -f ${CMAKE_CURRENT_SOURCE_DIR}/test.xml -p | ||
${CMAKE_CURRENT_SOURCE_DIR}/patch.xml) | ||
|
||
if(TARGET xmldiff) | ||
add_executable(xml-diff xml_diff_main.c) | ||
target_link_libraries(xml-diff PRIVATE xmlpatch xmldiff) | ||
install(TARGETS xml-diff) | ||
add_test(NAME xml-diff | ||
COMMAND xml-diff -f ${CMAKE_CURRENT_SOURCE_DIR}/test.xml -t | ||
${CMAKE_CURRENT_SOURCE_DIR}/diff.xml) | ||
set_property(TEST xml-diff PROPERTY WILL_FAIL true) | ||
add_test(NAME xml-diff_equal | ||
COMMAND xml-diff -f ${CMAKE_CURRENT_SOURCE_DIR}/test.xml -t | ||
${CMAKE_CURRENT_SOURCE_DIR}/test.xml) | ||
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,5 @@ | ||
<root> | ||
<foo a="1"/> | ||
<foo a="2"/> | ||
<bar a="3"/> | ||
</root> |
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 |
---|---|---|
|
@@ -21,6 +21,8 @@ | |
* | ||
*/ | ||
|
||
#include "config.h" | ||
|
||
#include <stddef.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|