Skip to content

Commit

Permalink
[ADD] : add CTest steps in github actions
Browse files Browse the repository at this point in the history
[UPD] : Update var names in tests
  • Loading branch information
aiekick committed Nov 4, 2023
1 parent 63ef08f commit 9431254
Show file tree
Hide file tree
Showing 8 changed files with 245 additions and 314 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ jobs:
- name: Install OpenGL lib / Requirement for Glfw3
run : sudo apt-get update && sudo apt-get install libgl1-mesa-dev libx11-dev libxi-dev libxrandr-dev libxinerama-dev libxcursor-dev
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_TEST=ON
- name: build
run: cmake --build build
- name: CTest
run: ctest --test-dir build --output-on-failure
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: ImGuiFileDialog
path: build/ImGuiFileDialog

4 changes: 3 additions & 1 deletion .github/workflows/Osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ jobs:
- name: Install OpenGL lib / Requirement for Glfw3
run : brew update
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_TEST=ON
- name: build
run: cmake --build build
- name: CTest
run: ctest --test-dir build --output-on-failure
- name: upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/Win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
- name: checkout submodules
run : git submodule update --init --recursive
- name: configure
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_TEST=ON
- name: build
run: cmake --build build --config Release
- name: CTest
run: ctest --test-dir build --output-on-failure
- name: upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
76 changes: 0 additions & 76 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ImGuiFileDialog
Submodule ImGuiFileDialog updated 2 files
+1,151 −1,180 ImGuiFileDialog.cpp
+327 −344 ImGuiFileDialog.h
12 changes: 6 additions & 6 deletions tests/ImGuiFileDialog/Test_FileManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FileManagerTestHelper {

private:
void compute_name_array() {
for (const auto& file_ptr : fd.puFileManager.prFileList) {
for (const auto& file_ptr : fd.fileManager.m_FileList) {
if (file_ptr) {
arr.emplace(file_ptr->fileNameExt);
}
Expand All @@ -22,12 +22,12 @@ class FileManagerTestHelper {

public:
void addFilter(const std::string& vFilter) {
fd.puFilterManager.ParseFilters(vFilter.c_str());
fd.puFilterManager.SetSelectedFilterWithExt(vFilter);
fd.filterManager.ParseFilters(vFilter.c_str());
fd.filterManager.SetSelectedFilterWithExt(vFilter);
}

void addFile(const std::string& vFile) {
fd.puFileManager.AddFile(fd, ".", vFile, IGFD::FileType(IGFD::FileType::ContentType::File, false));
fd.fileManager.m_AddFile(fd, ".", vFile, IGFD::FileType(IGFD::FileType::ContentType::File, false));
};

void addFiles(const std::vector<std::string>& vFiles) {
Expand All @@ -44,11 +44,11 @@ class FileManagerTestHelper {
}

void useFlags(ImGuiFileDialogFlags vFlags) {
fd.puDLGflags = vFlags;
fd.dLGflags = vFlags;
}

IGFD::FilterInfos getSelectedFilter() const {
return fd.puFilterManager.GetSelectedFilter();
return fd.filterManager.GetSelectedFilter();
}

IGFD::FileDialogInternal& getFileDialogInternal() {
Expand Down
4 changes: 2 additions & 2 deletions tests/ImGuiFileDialog/Test_FileStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
public:
void addFilter(const std::string& vFilter) {
fd.puFilterManager.ParseFilters(vFilter.c_str());
fd.puFilterManager.SetSelectedFilterWithExt(vFilter);
fd.filterManager.ParseFilters(vFilter.c_str());
fd.filterManager.SetSelectedFilterWithExt(vFilter);
}
void addFile(const std::string& vFile) {
Expand Down
Loading

0 comments on commit 9431254

Please sign in to comment.