mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-19 19:27:45 -04:00
Use CI-CD-Github-Actions for spelling and formatting, add in the bot formatting action, update the CI-CD workflow files. Fix incorrect spelling and formatting on files. (#1083)
* Use new version of CI-CD Actions, checkout@v3 instead of checkout@v2 on all jobs * Use cSpell spell check, and use ubuntu-20.04 for formatting check * Add in bot formatting action * Update freertos_demo.yml and freertos_plus_demo.yml files to increase github log readability * Add in a Qemu demo onto the workflows.
This commit is contained in:
parent
537007d96c
commit
3a2f6646f0
1036 changed files with 134568 additions and 127281 deletions
38
.github/scripts/qemu_reader.c
vendored
Normal file
38
.github/scripts/qemu_reader.c
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main( int argc, char * argv[] )
|
||||
{
|
||||
setvbuf( stdout, NULL, _IONBF, 0 );
|
||||
FILE * fp;
|
||||
char path[ 256 ];
|
||||
char cmd[ 256 ];
|
||||
|
||||
/* Open the command for reading. */
|
||||
fp = popen("find . -name RTOSDemo.out", "r");
|
||||
/* Read the output a line at a time - output it. */
|
||||
while( fgets( path, sizeof( path ), fp ) != NULL )
|
||||
{
|
||||
printf( "Path: %s\n", path );
|
||||
}
|
||||
|
||||
sprintf(cmd, "qemu-system-arm -machine mps2-an385 -monitor null -semihosting --semihosting-config enable=on,target=native -serial stdio -nographic -kernel %s", path);
|
||||
printf("cmd= %s\n", cmd);
|
||||
fp = popen( cmd, "r" );
|
||||
if( fp == NULL )
|
||||
{
|
||||
printf( "Failed to run command\n" );
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
/* Read the output a line at a time - output it. */
|
||||
while( fgets( path, sizeof( path ), fp ) != NULL )
|
||||
{
|
||||
printf( "%s", path );
|
||||
}
|
||||
|
||||
/* close */
|
||||
pclose( fp );
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue