Skip to content

Commit

Permalink
[WIP]Tests: try to find issue on armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Feb 27, 2024
1 parent 4010d8f commit bb153ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci_linux_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
- arch: armv7
distro: archarm_latest


runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -94,21 +93,21 @@ jobs:
-DMayo_BuildTests=ON \
-DMayo_BuildPluginAssimp=ON
cmake --build . \
--config Release \
--config Debug \
--parallel `nproc`
#
# Execute Unit Tests
# Note: for some unknown reason unit tests are crashing for armv7(on very first test)
# so just execute them for aarch64
#
if [ $RUN_ARCH_NAME = 'aarch64' ]; then
#if [ $RUN_ARCH_NAME = 'aarch64' ]; then
# Start X11 display server
Xvfb $DISPLAY -screen 0 1280x1024x24 &
sleep 5s
./mayo --runtests
else
echo "NOTE: unit tests skipped, they need to be fixed for this architecture"
fi
#else
# echo "NOTE: unit tests skipped, they need to be fixed for this architecture"
#fi
4 changes: 2 additions & 2 deletions tests/test_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ void TestBase::Application_test()
DocumentPtr doc = app->newDocument();
auto _ = gsl::finally([=]{ app->closeDocument(doc); });
bool okImport = true;
okImport = fnImportInDocument(doc, "tests/inputs/cube.stlb");
//okImport = fnImportInDocument(doc, "tests/inputs/cube.stlb");
okImport = fnImportInDocument(doc, "tests/inputs/cube.off");
QVERIFY(okImport);
QCOMPARE(doc->entityCount(), 1);

Expand All @@ -249,7 +250,6 @@ void TestBase::Application_test()
}

QCOMPARE(app->documentCount(), 0);

}

void TestBase::DocumentRefCount_test()
Expand Down

0 comments on commit bb153ff

Please sign in to comment.