Hi! I’m very new to Mongoose OS development and was hoping to get my feet wet by compiling the source and running/making my own tests. In particular, I want to investigate how Mongoose’s implementation of cron works (to debug some issues we have with our application that uses it). But I’m unsure how to make a minimal environment to be able to compile and run these tests.
- My goal is: to debug a problem in an application by cloning the mongoose-os-libs/cron repository and running tests.
- My actions are: I cloned the repository at this address: https://github.com/mongoose-os-libs/cron and was hoping to compile and run the tests located in the
test
folder. - The result I see is: When I run
make
on the Makefile in thetest
folder, I get a bunch of errors related to the fact that there are../../..
directories leading well outside the repository’s root folder. This is what powershell shows:
PS C:\repos\cron\test> make test gcc --std=c99 -D_POSIX_SOURCE -I../src -I../include -I../../.. -I../../../frozen -I../../../mongoose -I. -g3 -m32 ../src/mgos_cron.c ../src/ccronexpr.c ../src/sunriset.c ../../../common/cs_time.c ../../../common/str_util.c ../../../common/mg_str.c cs_dbg.c mgos_hal.c mgos_location.c mgos_timers.c mgos_sys_config.c mgos_utils.c ../../../frozen/frozen.c cron_test.c -lm -o cron_test process_begin: CreateProcess(NULL, gcc --std=c99 -D_POSIX_SOURCE -I../src -I../include -I../../.. -I../../../frozen -I../../../mongoose -I. -g3 -m32 ../src/mgos_cron.c ../src/ccronexpr.c ../src/sunriset.c ../../../common/cs_time.c ../../../common/str_util.c ../../../common/mg_str.c cs_dbg.c mgos_hal.c mgos_location.c mgos_timers.c mgos_sys_config.c mgos_utils.c ../../../frozen/frozen.c cron_test.c -lm -o cron_test, ...) failed. make (e=2): The system cannot find the file specified. make: *** [test] Error 2
- I suppose that this cron repository isn’t meant to be compiled by itself and instead should be part of another project. Would someone be able to point me in the direction of that repository and perhaps give me a few pointers as to how one might get a working environment set up to begin testing functions? Thank you!