WellDone / MoMo-Firmware

Embedded PIC Firmware and hardware designs for the WellDone Mobile Monitor (MoMo).
welldone.org
Other
8 stars 6 forks source link

Automate gpsim installation #174

Closed amcgee closed 9 years ago

amcgee commented 9 years ago

This automates the installation of a patched GPSIM in infrastructure-as-code environments such as Vagrant boxes and continuous integration VMs. The installation is not quick (perhaps we should create a GPSIM fork and which exposes a pre-compiled executable until such time as our changes are accepted upstream) but should facilitate automatic 8-bit unit test execution.

amcgee commented 9 years ago

(note: there may be something wrong with this installation method - it appears to work, but running momo build test for pic12_executive fails with the following error:

Building test script
gpsim -c build/test/12lf1822_exec/test_basic/test.stc -i > /dev/null
gpsim: symbol lookup error: gpsim: undefined symbol: _Z25AddModulePathFromFilePathPc
scons: *** [build/test/12lf1822_exec/test_basic/test_basic@12lf1822_exec.raw] Error 127
amcgee commented 9 years ago

(and some dependencies are still missing on Travis)

amcgee commented 9 years ago

GPSIM should be installed correctly on Travis now, though the xc8 pro requirement will prevent us from automatically running unit tests on gsm_module or pic12_executive there (for now)...