|
| 1 | +"The following script is used for the automating the |
| 2 | +"following tasks. |
| 3 | +" |
| 4 | +" Develop |
| 5 | +" |
| 6 | +"The following commands can be used in whatever directory you are to generate the final rpm. |
| 7 | +" |
| 8 | +" build 'make rpm' |
| 9 | +" release_build 'make release_rpm' |
| 10 | +" clean 'make clean' |
| 11 | +" clean_all 'make clean all' |
| 12 | +" |
| 13 | +"We can set target machines and based on that current compilation mode will be set. |
| 14 | +"The frame must deduce the compilation type for the current subsystem based on the target machine. |
| 15 | +" There can be different variants available based on the SLN and NLN type available in the system. |
| 16 | +" |
| 17 | +" :set target <target-machine> |
| 18 | +" |
| 19 | +"The above command will set the current compilation mode of the subsystem to mips. It should able to extract the |
| 20 | +" current builds available in the target machine and show error if current build type of the subsystem is not supported. |
| 21 | +" The framework should able to remember the credentials given by the user at the beginning. |
| 22 | +" |
| 23 | +" |
| 24 | +"Patch |
| 25 | +" |
| 26 | +" :patch |
| 27 | +" |
| 28 | +" |
| 29 | +"Generated rpms will be will transferred to target machine in specific path (default path is /mnt/backup can |
| 30 | +"be changed through other commands) and patch through “fsswcli” command. Validation will be existing to any specific |
| 31 | +"machine can be used by a one specific user at a time. We can also validate whether after patching the application is |
| 32 | +" running correctly or not. |
| 33 | +" |
| 34 | +" |
| 35 | +" |
| 36 | +"Test |
| 37 | +" |
| 38 | +" :test |
| 39 | +" |
| 40 | +"There will be a file maintained in each subsystem consisting of test cases need to be executed for any changes. |
| 41 | +"The target taf machine can be set by the user. Mail will be sent when regression is initiated with the diff file |
| 42 | +"attached, so that user will know for what changes the job is initiated. |
| 43 | +" |
| 44 | +" |
| 45 | +"Through the gcov integration we can check whether code changed executed as part of the testcases. |
| 46 | + |
| 47 | +" This function is used for invoking the |
| 48 | +" building the rpm |
| 49 | +" |
| 50 | +function Build_rpm() |
| 51 | + echom "rpm building is initiated" |
| 52 | + make release_rpm |
| 53 | +endfunction |
| 54 | + |
| 55 | +" This function is used for invoking the |
| 56 | +" cleaning all the rpms |
| 57 | +function Clean_rpm() |
| 58 | + echom "rpm building is initiated" |
| 59 | + make clean_all |
| 60 | +endfunction |
0 commit comments