|
Revision 186, 496 bytes
(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 |
# |
|---|
| 3 |
# Create a test set. |
|---|
| 4 |
# Param 1 is the directory containing the tests |
|---|
| 5 |
# Param 2 is the set file |
|---|
| 6 |
# |
|---|
| 7 |
|
|---|
| 8 |
if [[ ! -d $1 ]]; then |
|---|
| 9 |
echo "Could not open dir!" |
|---|
| 10 |
exit 1 |
|---|
| 11 |
fi |
|---|
| 12 |
|
|---|
| 13 |
if [[ -z $2 ]]; then |
|---|
| 14 |
echo "A target set file is needed." |
|---|
| 15 |
exit 1 |
|---|
| 16 |
fi |
|---|
| 17 |
|
|---|
| 18 |
echo "! eAccelerator test set" > $2 |
|---|
| 19 |
|
|---|
| 20 |
if [[ -f $1/.description ]]; then |
|---|
| 21 |
DESC=`cat $1/.description` |
|---|
| 22 |
echo "! description: $DESC" >> $2 |
|---|
| 23 |
else |
|---|
| 24 |
echo "A description file is required!" |
|---|
| 25 |
exit 1 |
|---|
| 26 |
fi |
|---|
| 27 |
|
|---|
| 28 |
for file in $1/*.txt |
|---|
| 29 |
do |
|---|
| 30 |
md5sum $file >> $2 |
|---|
| 31 |
done |
|---|