Automating build and test process


 
Thread Tools Search this Thread
Operating Systems Linux Automating build and test process
# 1  
Old 01-17-2008
Automating build and test process

Hey ppl,

I've been asked to automate the build and test process for my team at office.we work on Linux and use Perforce for SCM. I've just joined this company and dont have much knowledge on unix scripts. Could someone tell me how to go about doing this?Smilie
# 2  
Old 01-17-2008
You can post the steps that you need to carry out there...,then we got lot of helping hands who would help us. (list what you would be doing manually to accomplish your tasks.)

Beleive me, i really learn many things from there posts; they really deserve a *million* thanks!!

-ilan
# 3  
Old 01-17-2008
You can use makefiles, ant scripts or shell scripts for your build process. You haven't told us about the source files. Are they c/c++, java or something else ?

If they are java source files, then you are better off with ant scripts. The same ant script can be in used in Windows and Linux. If the source files are c/c++, then makefiles are the best. But the makefiles would differ for Windows and Linux.

Shell scripts work well on Linux. But to make them work on Windows you would need the MKS Toolkit or Cygwin.


For automating your test process, I believe you would have some existing test cases. If it is a testsuite, then you can use a framework similiar to JUnit. If they are unit test cases, then shell scripts or makefiles would be good.
# 4  
Old 01-17-2008
Thanks for the reply ilan and vino.. Smilie

The source files are in C and each user runs unit test cases..
# 5  
Old 01-17-2008
How will i be able to schedule the builds for each user?? and could u tell me how exactly to automate the test process?
# 6  
Old 01-17-2008
These are some of the requirements...

- Automatically start build process and it's tests at desired time.
- Option for manual build invocation
- One build process at a time (The build process shall not be started for the second time before it is over).
- Write log file with all console messages.
- email notifications
# 7  
Old 01-17-2008
Quote:
- One build process at a time (The build process shall not be started for the second time before it is over).
- Write log file with all console messages.
- email notifications
For all these 3 requirements, there had been numerous number of posts discussing the same in different context

for ex:
1 build at a time -> process control. check for previous instance before instantiating a new instance
log file -> log file naming and redirecting output / debug / error messages to log file
email notifications -> sending email using mail / mailx. Sending file as inline attachment. Sending attachment with body

Please use the search facility, am sure you would find many such threads.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

RHEL GUI Build process.

Hi Folks, I've recently upgraded (RHEL 6.5 to 7.5) a couple of servers and have noticed a peculiarity during the GUI build of the boxes. This can be best explained as follows; There were four Oracle ASM disks on each of these servers, these were selected in the GUI for reformat as XFS file... (2 Replies)
Discussion started by: gull04
2 Replies

2. Shell Programming and Scripting

Automating an interactive process with EOF string

Hello, I'm running Stockfish chess engine ( Home - Stockfish - Open Source Chess Engine ) CLI on Linux in interactive mode which is working fine. root@ubuntu1950x:~# ./stockfish Stockfish 080218 64 POPCNT by T. Romstad, M. Costalba, J. Kiiski, G. Linscott setoption name Debug Log File... (2 Replies)
Discussion started by: prvnrk
2 Replies

3. Shell Programming and Scripting

Automating Mail Process

Hi i had written one script,it sends email from terminal and mine script is as: #!/bin/bash SUBJECT="linux mail send attachment example" BODY_FILE="/home/sreenivasa/Desktop/Testing.txt" #ATTACHMENT_FILE="/home/sreenivasa/Desktop/Dataset.zip"... (23 Replies)
Discussion started by: rajnikant
23 Replies

4. UNIX for Dummies Questions & Answers

Image build process

What are the requirements to build an image in solaris ? Could you please some one explain this.. (1 Reply)
Discussion started by: ramagore85
1 Replies

5. UNIX for Dummies Questions & Answers

Automating a process

Could any one tell me , how to start a thread here, i just searching for so long. sorry to post in irrelavent here ---------- Post updated at 08:19 AM ---------- Previous update was at 08:00 AM ---------- Hi, I got a requirement to automate the process. We have SLA files, there are... (1 Reply)
Discussion started by: afahmed
1 Replies

6. Solaris

I want to test max process on my system

Hi,everybody Please someone suggest me for test max process on system my system is Solaris 10/9 installed on HP DL380G6 . My point of project is test max process ,max user untill systemdown .however i have batch script telnet from pc to host about 500 window per pc ( i have pc 9 unit ... (2 Replies)
Discussion started by: infjustice
2 Replies

7. Shell Programming and Scripting

Automating The process

Hi Guru's, I am trying to write a scripts that will automate my image provisoining process. Scenario: I have Linux Image Hosted on cloud which needs to be provisoned before it can be used. Currently we log onto the image through the putty on windows and connect to linux instance. I... (3 Replies)
Discussion started by: taqvia
3 Replies

8. Shell Programming and Scripting

automating daily monitoring process

Hi there, I have to automate daily monitoring process and then the result of these process should be sent to a log file, then this log file should be mailed . ps -ef | grep aa In this atleast one process should run. If the process is running it should mention Success in the log file... (3 Replies)
Discussion started by: NehaKrish
3 Replies

9. Shell Programming and Scripting

Perl - automating if statement test

Hello all, I'm trying to automate an if statement in my Perl script. The script opens an input file for reading, checks each line in the file for a particular substring, and if it finds the substring, writes it to an output file. There are approximately 200 different input files. Each has... (3 Replies)
Discussion started by: Galt
3 Replies

10. Shell Programming and Scripting

Automating build and test process

Hey ppl, I've been asked to automate the build and test process for my team at office.we work on Linux and use Perforce for SCM. I've just joined this company and dont have much knowledge on unix scripts. Could someone tell me how to go about doing this? (0 Replies)
Discussion started by: laxmi
0 Replies
Login or Register to Ask a Question