Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
local/bin/configure && local/bin/build && ctest -R ctest -R PyQgsAttributeTableModel -V > TEST_OUTPUT.txt
#!/usr/bin/env bash
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SRC_ROOT="${BIN_DIR}/../.."
cd "${SRC_ROOT}"
cd build
make -j8 -i -k && make install
#!/usr/bin/env bash
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SRC_ROOT="${BIN_DIR}/../.."
cd "${SRC_ROOT}"
mkdir -p build
cd build
# QT5
# Didn't get qt5 to build, but here are some QT5 flags that were insufficient...
# -DWITH_BINDINGS=OFF -DENABLE_QT5=ON
cmake .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/Users/mkirk/Applications \
-DCMAKE_PREFIX_PATH="/usr/local/opt/libxml2;/usr/local/opt/expat;/usr/local/opt/gettext;/usr/local/opt/sqlite;/usr/local" \
-DCMAKE_FRAMEWORK_PATH="/usr/local/opt/qwt/lib;/usr/local/opt/qwtpolar/lib" \
-DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_CXX_FLAGS="-I/usr/local/opt/gettext/include" \
-DCMAKE_EXE_LINKER_FLAGS="-F/usr/local/Frameworks" \
-DCMAKE_MODULE_LINKER_FLAGS="-F/usr/local/Frameworks" \
-DCMAKE_SHARED_LINKER_FLAGS="-F/usr/local/Frameworks" \
-DCXX_EXTRA_FLAGS="-Wno-unused-private-field -Wno-deprecated-register" \
-DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison \
-DQT_QMAKE_EXECUTABLE=/usr/local/bin/qmake \
-DGITCOMMAND=/usr/local/bin/git \
-DENABLE_TESTS=ON \
-DWITH_ASTYLE=ON \
-DWITH_PYSPATIALITE=OFF \
-DWITH_INTERNAL_QWTPOLAR=OFF \
-DWITH_SERVER=ON \
-DWITH_STAGED_PLUGINS=ON \
-DWITH_PY_COMPILE=ON \
-DWITH_APIDOC=OFF \
-DWITH_QSCIAPI=OFF \
-DQSCI_SIP_DIR=/usr/local/opt/qscintilla2/share/sip \
-DPOSTGRES_CONFIG=/usr/local/bin/pg_config \
-DWITH_GRASS=ON \
-DGRASS_PREFIX=/usr/local/opt/grass-64/grass-6.4.4 \
-DWITH_GRASS7=ON \
-DGRASS_PREFIX7=/usr/local/opt/grass-70/grass-7.0.1 \
-DWITH_GLOBE=OFF \
-DOSG_DIR=/usr/local \
-DOSGEARTH_DIR=/usr/local \
-DOSG_PLUGINS_PATH=/usr/local/lib/osgPlugins-3.4.0 \
-DWITH_ORACLE=OFF \
-DQGIS_MACAPP_BUNDLE=0 \
-DPYTHON_EXECUTABLE=/usr/local/bin/python \
-DPYTHON_CUSTOM_FRAMEWORK=/usr/local/Frameworks/Python.framework/Versions/2.7
v123: ======================================================================
123: FAIL: testAdd (__main__.TestQgsAttributeTableModel)
123: ----------------------------------------------------------------------
123: Traceback (most recent call last):
123: File "/Users/mkirk/src/qgis/qgis-app/tests/src/python/test_qgsattributetablemodel.py", line 93, in testAdd
123: assert self.am.rowCount() == 11, self.am.rowCount()
123: AssertionError: 1
123:
123: ======================================================================
123: FAIL: testLoad (__main__.TestQgsAttApplication state:
123: QGIS_PREFIX_PATH env var: /Users/mkirk/src/qgis/qgis-app/build/output
123: Prefix:
123: Plugin Path: /Users/mkirk/src/qgis/qgis-app/build/output/../PlugIns/qgis
123: Package Data Path: /Users/mkirk/src/qgis/qgis-app
123: Active Theme Name:
123: Active Theme Path: /Users/mkirk/.qgis2///themes//icons/
123: Default Theme Path: :/images/themes/default/
123: SVG Search Paths: /Users/mkirk/src/qgis/qgis-app/images/svg/
123: /Users/mkirk/.qgis2//svg/
123: User DB Path: /Users/mkirk/src/qgis/qgis-app/resources/qgis.db
123: Auth DB Path: /Users/mkirk/.qgis2//qgis-auth.db
123:
123: ributeTableModel)
123: ----------------------------------------------------------------------
123: Traceback (most recent call last):
123: File "/Users/mkirk/src/qgis/qgis-app/tests/src/python/test_qgsattributetablemodel.py", line 71, in testLoad
123: assert self.am.rowCount() == 10, self.am.rowCount()
123: AssertionError: 0
123:
123: ======================================================================
123: FAIL: testRemove (__main__.TestQgsAttributeTableModel)
123: ----------------------------------------------------------------------
123: Traceback (most recent call last):
123: File "/Users/mkirk/src/qgis/qgis-app/tests/src/python/test_qgsattributetablemodel.py", line 79, in testRemove
123: self.__test_rowToid_and_return()
123: File "/Users/mkirk/src/qgis/qgis-app/tests/src/python/test_qgsattributetablemodel.py", line 41, in __test_rowToid_and_return
123: [self.assertEqual(self.am.rowToId(self.am.idToRow(f.id())), f.id()) for f in self.am.layer().getFeatures()]
123: AssertionError: -2147483648L != 1L
123:
123: ----------------------------------------------------------------------
123: Ran 4 tests in 0.026s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.