Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: CMake on multiple platforms

on:
push:
branches: [ "public" ]
branches: [ "*" ]
pull_request:
branches: [ "public" ]
branches: [ "main" ]

jobs:
build:
Expand Down Expand Up @@ -86,4 +86,4 @@ jobs:
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
run: ctest --output-on-failure --build-config ${{ matrix.build_type }}
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = ../BAST
[submodule "tinyxml2"]
path = extern/tinyxml2
url = ../tinyxml2
url = https://github.com/leethomason/tinyxml2.git
2 changes: 1 addition & 1 deletion extern/BAST
Submodule BAST updated from 6122a0 to 5f32ef
2 changes: 1 addition & 1 deletion extern/tinyxml2
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ macro(add_pog_test id)
set_tests_properties(${id} PROPERTIES TIMEOUT 1)
endmacro(add_pog_test)

add_pog_test(empty_1)
# add_pog_test(empty_1)
17 changes: 11 additions & 6 deletions test/dotest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,26 @@ mkdir -p "$outdir"
$program "$inpdir/input.pog" > "$outdir/output.pog" 2> "$outdir/stderr"
echo $? > "$outdir/exitcode"

diff "$outdir/output.pog" "$refdir/output.pog"
error=0
diff "$outdir/exitcode" "$refdir/exitcode"
if [ $? -ne 0 ]; then
echo "Test failed: output.pog differs"
exit 1
echo "Test failed: exitcode differs"
error=1
fi

diff "$outdir/stderr" "$refdir/stderr"
if [ $? -ne 0 ]; then
echo "Test failed: stderr differs"
exit 1
error=1
fi

diff "$outdir/exitcode" "$refdir/exitcode"
diff "$outdir/output.pog" "$refdir/output.pog"
if [ $? -ne 0 ]; then
echo "Test failed: exitcode differs"
echo "Test failed: output.pog differs"
error=1
fi

if [ $error -ne 0 ]; then
exit 1
fi

Expand Down
8 changes: 6 additions & 2 deletions test/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.15)

project(loadpog_test)

Expand All @@ -8,7 +8,11 @@ include_directories(
${BASTLIB_SOURCE_DIR}
)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

add_executable(loadpog loadpog.cpp)

get_target_property(LOADPOG_OUTPUT_DIRECTORY loadpog RUNTIME_OUTPUT_DIRECTORY)

target_link_libraries(loadpog PRIVATE POGLIB BAST_LIB tinyxml2::tinyxml2)
set(loadpog_EXE ${CMAKE_CURRENT_BINARY_DIR}/loadpog CACHE PATH "loadpog executable")
set(loadpog_EXE ${LOADPOG_OUTPUT_DIRECTORY}/loadpog${CMAKE_EXECUTABLE_SUFFIX} CACHE PATH "loadpog executable")
Loading