root/test_suite/trunk/create_setlist

Revision 186, 0.5 kB (checked in by bart, 3 years ago)

Import of first version of the test suite. Only scripts are available,
no docs and the tests can be obtained here: http://bart.eaccelerator.net/tests

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2 # Create a list of all test sets
3 # Author: Bart Vanbrabant <bart.vanbrabant at zoeloelip.be>
4
5 if [[ $1 = "--help" || -z $1 ]]; then
6     echo "Usage: create_setlist set_directory"
7     exit 0
8 fi
9
10 if [[ ! -d $1 ]]; then
11         echo "Could not open dir!"
12         exit 1
13 fi
14
15 for file in $1/*
16 do
17     if [[ ! -d $file ]]; then
18         SET=`basename $file`
19         # can prolly faster with awk
20         DESC=`grep -e '^! description: ' $file | cut -f 3- -d ' '`
21         echo "$SET:$DESC" >> SETLIST
22         echo "Added $file"
23     fi
24 done
25
26 echo "Created SETLIST"
Note: See TracBrowser for help on using the browser.