Adding a gitattributes and correcting line-endings

https://help.github.com/articles/dealing-with-line-endings/
This commit is contained in:
Rémy Léone 2015-09-03 13:45:48 +02:00
parent 8a7e2e5892
commit 7a5071dd30
37 changed files with 5865 additions and 5856 deletions

View file

@ -1,28 +1,28 @@
/*
* Example Contiki test script (JavaScript).
* A Contiki test script acts on mote output, such as via printf()'s.
* The script may operate on the following variables:
* Mote mote, int id, String msg
*/
/* Make test automatically fail (timeout) after 100 simulated seconds */
//TIMEOUT(100000); /* milliseconds. no action at timeout */
TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* milliseconds. print last msg at timeout */
log.log("first mote output: '" + msg + "'\n");
YIELD(); /* wait for another mote output */
log.log("second mote output: '" + msg + "'\n");
log.log("waiting for hello world output from mote 1\n");
WAIT_UNTIL(id == 1 && msg.equals("Hello, world"));
write(mote, "Hello, mote\n"); /* Write to mote serial port */
GENERATE_MSG(15000, "continue");
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
log.log("ok, reporting success now\n");
log.testOK(); /* Report test success and quit */
//log.testFailed(); /* Report test failure and quit */
/*
* Example Contiki test script (JavaScript).
* A Contiki test script acts on mote output, such as via printf()'s.
* The script may operate on the following variables:
* Mote mote, int id, String msg
*/
/* Make test automatically fail (timeout) after 100 simulated seconds */
//TIMEOUT(100000); /* milliseconds. no action at timeout */
TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* milliseconds. print last msg at timeout */
log.log("first mote output: '" + msg + "'\n");
YIELD(); /* wait for another mote output */
log.log("second mote output: '" + msg + "'\n");
log.log("waiting for hello world output from mote 1\n");
WAIT_UNTIL(id == 1 && msg.equals("Hello, world"));
write(mote, "Hello, mote\n"); /* Write to mote serial port */
GENERATE_MSG(15000, "continue");
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
log.log("ok, reporting success now\n");
log.testOK(); /* Report test success and quit */
//log.testFailed(); /* Report test failure and quit */