Run library examples in sitl

Hi, I just want to know the procedures to run example scripts in sitl. I have done the following steps
./waf configure --board=sitl
./waf build --target examples/AP_Motors_test
./build/sitl/examples/AP_Motors_test -M quad --master=tcp: --console

Even though mavproxy can able to connect to sitl, I could not able to see the console output. (hal->console->printf)

You don’t usually run the examples in SITL as such. They don’t typically
speak any mavlink, so SITL isn’t relevant.

Running under linux:

pbarker@bluebottle:~/rc/ardupilot(master)$ ./waf configure --board=linux
Setting top to : /home/pbarker/rc/ardupilot
Scripting runtime checks : enabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (1.212s)
pbarker@bluebottle:~/rc/ardupilot(master)$ ./waf examples
Waf: Entering directory `/home/pbarker/rc/ardupilot/build/linux’
Embedding file sandbox.lua:libraries/AP_Scripting/scripts/sandbox.lua
[4/4] Creating build/linux/ap_version.h
‘examples’ finished successfully (2m25.309s)
pbarker@bluebottle:~/rc/ardupilot(master)$ ./build/linux/examples/Printf
WARNING: not running as root. Will not use realtime scheduling
Starting Printf test
Starting Printf floats test
Running printf tests
0 failures