QA checking for shell scripts


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users QA checking for shell scripts
# 1  
Old 10-18-2006
Java QA checking for shell scripts

Hi all
Does the notion of QA make sense when talking about shell script development?
I would like to put in place such a QA procedure to ensure the code we provide is full compliant with certain norms we think are right. I just thought it would be a good idea to ask the community about the following things:

- Are there any QA tools for shell scripts on the market?
- If you think an internal QA procedure implementation is more adapted, which criterions would you suggest to base the checks on?

Cheers
# 2  
Old 10-19-2006
Java Hmmm

Doesn't seem this thread has got so much success so far... so let's boost it a little bit.

I had a look on the net to check for QA tools and I can tell my search wasn't that successful. I simply wonder if QA even exists for shell programming, but could it be also that QA only makes sense when internally defined as well as maintained, which would explain why there is so poor reference about it on the web?

Or, could it be that shell script pays the price to only be seen as a "support" programming language at a OS level to applications coded in more evaluated languages (where you really find QA procedures).

What do you think about it?
# 3  
Old 10-19-2006
Hi Indalecio.
First of all, I'm not an expert in QA as long as developing is not related to my actual job. Now, back to answering your question about QA in shell scripts, I haven't heard about it before, at least in shell script terms, of course. I' more close to:
Quote:
Or, could it be that shell script pays the price to only be seen as a "support" programming language at a OS level to applications coded in more evaluated languages (where you really find QA procedures).
Though, I'd say that shell scripts are meant to help sysadmins to automate their tasks, not to make "real & complex" apps. This, in my modest opinion, could be the reason why there's nothing related to QA in this field. Smilie

Regards.
# 4  
Old 10-19-2006
Java Hola!

Thanks for your response, grial.

I think you're pointing to something right: it has definitely something to do with the way people use shell scripts.
Apart from performing quickly one-time tasks as you supposed in your reply, I heavily use shell scripts to maintain a system interface as well as a bunch of utilities securing the data input/output from the system I'm responsible for.

Now, not many people will actually look deeper into these interface scripts apart from me and a few team members. However, I just wonder if this would justify the fact we have no quality assurance on these scripts, as they almost are as important as the code used behind the interface.

I think I will implement some kind of a basic qa-script to secure at least documentation, backup and version control. The rest is more or less pointless as long as the code's visibility and a few more things like the usage specification and the code comments look fine.
# 5  
Old 10-19-2006
Quote:
Originally Posted by Indalecio
I think you're pointing to something right: it has definitely something to do with the way people use shell scripts.
Apart from performing quickly one-time tasks as you supposed in your reply, I heavily use shell scripts to maintain a system interface as well as a bunch of utilities securing the data input/output from the system I'm responsible for.
Yes, I also use scripting in some more complex tasks and, of course, I try to assure a minimum quality in terms, mainly, of documentation, comments, version control, etc. But in this world of sysadmins, this task is up to you. In some way it's a matter of making your life easy. Specially when you mantain a great amount of machines and you work in a huge team. But again, no matter how complicated your scripts are, they're not considered as apps. However, that does not mean that those QA techniques or procedures are not suitable for scripting "apps". Even more, in some cases it could be useful.

Quote:
Now, not many people will actually look deeper into these interface scripts apart from me and a few team members. However, I just wonder if this would justify the fact we have no quality assurance on these scripts, as they almost are as important as the code used behind the interface.
That's what I say above: QA It's up to you. Smilie

Quote:
I think I will implement some kind of a basic qa-script to secure at least documentation, backup and version control. The rest is more or less pointless as long as the code's visibility and a few more things like the usage specification and the code comments look fine.
Very interesting. I've never thought of implementing that... I just practice my own "QA" just to help myself (and partners) beacuse, nobody's gonna check my scripts. Perhaps, only, their functionality but that's all. Smilie

Regards.
# 6  
Old 10-19-2006
Quote:
Originally Posted by grial
But again, no matter how complicated your scripts are, they're not considered as apps. However, that does not mean that those QA techniques or procedures are not suitable for scripting "apps". Even more, in some cases it could be useful.
if your scripts affect the business or your company's bottom line, it would be best to treat them as apps --- regardless of what developers think --- and QA them to make sure that whoever needs to support their upkeep can easily do it and to make sure that they adhere to certain standards (i.e., not emailing server error reports to management, not using plain FTP to transfer financial data files, etc.) ...

in this highly audited world we now operate under, all scripts that affect production will eventually be looked at with more than a passing glance and could possibly affect your job situation if found to be non-compliant ...
# 7  
Old 10-20-2006
Quote:
Originally Posted by Just Ice
if your scripts affect the business or your company's bottom line, it would be best to treat them as apps --- regardless of what developers think ---
I agree. That's what it should be, but in my experience it's not. I mean, there is no control but when something fails. Smilie

Quote:
and QA them to make sure that whoever needs to support their upkeep can easily do it and to make sure that they adhere to certain standards (i.e., not emailing server error reports to management, not using plain FTP to transfer financial data files, etc.) ...

in this highly audited world we now operate under, all scripts that affect production will eventually be looked at with more than a passing glance and could possibly affect your job situation if found to be non-compliant ...
Exactly. They all will eventually be looked at. But most scripts are no controlled untill they "affect" your job situation, don't you think? Smilie
Of course there are places where everithing is taken into account, and must fulfil a bunch of rules and requirements. I think that's a matter of money.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help me with C-shell Script: Disk checking

Hi, i am new in shell script. i have given a task to make a C-shell script. I have list of ip address and device name respectively. For example; cal 1 : 100.21.25.10 cal 2 : 100.21.25.11 cal 3 : 100.21.25.12 cal 4 : 100.21.25.14 and so on... Right now, i have this. #! /bin/csh -f ... (0 Replies)
Discussion started by: lattey
0 Replies

2. Shell Programming and Scripting

Service checking through shell script

I want to check the postgres service for client PC which is remotely placed through shell script , whether the Postgres service is working or not.I don't have an idea to develop this script.Please give me a code. Client PC IP Address: 10.66.1.133 (2 Replies)
Discussion started by: kannansoft1985
2 Replies

3. Shell Programming and Scripting

Checking status of engines using C-shell

I am relatively new to scripting. I am trying to develop a script that will 1. Source an executable file as an argument to the script that sets up the environment 2. Run a command "stat" that gives the status of 5 Engines running on the system 3. Check the status of the 5 Engines as either... (0 Replies)
Discussion started by: paslas
0 Replies

4. HP-UX

Scripts to move files via FTP with error checking

Hi Members, Can members please advise or suggest how to write UNIX script which move all zip files in source directory and when done delete zip files from source directory? We want to delete only on successful transfer to the destination. secondly want to add some error checking if the FTP... (1 Reply)
Discussion started by: dxj0815
1 Replies

5. Shell Programming and Scripting

calling 'n' number of shell scripts based on dependency in one shell script.

Hello gurus, I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script. i m looking for something like this call 3.1; If 3.1 = "complete" then call 3.2; if 3.2 = ''COMPlete" then call 3.3; else exit The... (1 Reply)
Discussion started by: shashi369
1 Replies

6. Shell Programming and Scripting

Error Checking in Shell scripts.

What i need to do is when the database connection is not successful , the script should move to next list i.e skip the current. But when i do this - if ; then break; fi The script break but it goes to the condition - if ; then for LIST in $LISTS do for TABLE in $TABLES do... (2 Replies)
Discussion started by: dinjo_jo
2 Replies

7. Shell Programming and Scripting

Regularly checking with shell script

Hi, I am new in scripting and also in Linux. I wrote my first script recently. I have an external hdd connected to my debian machine. I am spinning it down using a spindown code (code.google.com/p/spindown/)when I am not using it ( automatically after 1 hour). The problem was I wanted to know when... (2 Replies)
Discussion started by: aspedisca
2 Replies

8. Shell Programming and Scripting

Checking Files with a Shell Script

Hey everyone, I'm writing a shell script that needs to loop thru a directory and check a defined type of files(.df). I use "checkfile.x" which is a compiled program to check those files. Sintaxis : checkfile.x DatefileName.df The program displays something like this: File: kanswer.df -... (1 Reply)
Discussion started by: Testing_Yorsh
1 Replies

9. Shell Programming and Scripting

Checking passwords - scripts

Hi Unix experts.... I am in the process checking user and root password of more than 1000 servers manulay. I am very pissed of checking these many servers manualy. Could some one of you help me how can i check the passwords just by runing some scripts..! Need Help Guys..! :confused: (5 Replies)
Discussion started by: bullz26
5 Replies

10. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
Login or Register to Ask a Question