Skip to content

Commit 4d18182

Browse files
authored
Merge pull request #4 from opensciencegrid/master
Have my fork up to date
2 parents 05bb22f + 5d6141b commit 4d18182

File tree

86 files changed

+1122
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1122
-596
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
sudo: required
22
env:
33
matrix:
4-
- OS_TYPE=centos OS_VERSION=6 PACKAGES=osg-ce-condor,vo-client-lcmaps-voms,llrun
5-
- OS_TYPE=centos OS_VERSION=6 PACKAGES=osg-gridftp,lcmaps,lcmaps-db-templates,vo-client-lcmaps-voms,rsv,llrun
6-
- OS_TYPE=centos OS_VERSION=7 PACKAGES=osg-ce-condor,vo-client-lcmaps-voms,llrun,singularity-runtime,osg-oasis
7-
- OS_TYPE=centos OS_VERSION=7 PACKAGES=osg-gridftp,lcmaps,lcmaps-db-templates,vo-client-lcmaps-voms,rsv,llrun,singularity-runtime,osg-oasis
4+
- OS_TYPE=centos OS_VERSION=6 PACKAGES=osg-ce-condor,rsv,vo-client-lcmaps-voms,llrun
5+
- OS_TYPE=centos OS_VERSION=6 PACKAGES=osg-gridftp,rsv,lcmaps,lcmaps-db-templates,vo-client-lcmaps-voms,rsv,llrun
6+
- OS_TYPE=centos OS_VERSION=7 PACKAGES=osg-ce-condor,rsv,vo-client-lcmaps-voms,llrun,singularity-runtime,osg-oasis
7+
- OS_TYPE=centos OS_VERSION=7 PACKAGES=osg-gridftp,rsv,lcmaps,lcmaps-db-templates,vo-client-lcmaps-voms,rsv,llrun,singularity-runtime,osg-oasis
88

99
services:
1010
- docker
@@ -18,5 +18,5 @@ before_install:
1818

1919
script:
2020
# Run tests in Container
21-
- travis-ci/setup_tests.sh ${OS_VERSION} ${PACKAGES}
21+
- travis-ci/setup_tests.sh
2222

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# ------------------------------------------------------------------------------
77

88
PACKAGE := osg-test
9-
VERSION := 2.0.0
9+
VERSION := 2.2.0
1010

1111

1212
# ------------------------------------------------------------------------------

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ All steps are performed as `root`:
3636

3737
1. Clone the git repository and `cd` into it:
3838

39-
[root@client ~ ] $ git clone https://github.com/brianhlin/osg-test.git
39+
[root@client ~ ] $ git clone https://github.com/opensciencegrid/osg-test.git
4040
[root@client ~ ] $ cd osg-test
4141

4242
2. Bootstrap the test system using the `osg-testing` yum repository. The `osg release` is required as the first argument and takes the form of `<major version>.<minor version>` e.g. `3.2`. To get `osg-test` from the `osg-development` Yum repository, replace the second argument with `development`; to get `osg-test` from the production repository, omit the second argument. This step makes sure that both the EPEL and OSG repositories are available, then installs and verifies the `osg-test` package itself.
@@ -55,7 +55,6 @@ Fundamentally, the `osg-test` script runs tests and reports on their results. Ho
5555
| Option | Description |
5656
|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5757
| `-a`, `--add-user` | Add and configure the test user account (see also `-u` below). By default, the script assumes that the test user account already exists and is configured with a valid X.509 certificate in its `.globus` directory. |
58-
| `--cilogon` | Generate CILogon-like certificates |
5958
| `-c`, `--config` FILE | Configuration file to use that specifies command-line options. See below for syntax |
6059
| `-d`, `--dump-output` | After all test output, print all commands and their output from the test run. Typically generates **a lot** of output. |
6160
| `--df`, `--dump-file` FILE | Like `--dump-output`, but prints the output to a file instead of the console |
@@ -85,7 +84,6 @@ Unfortunately, the names of the variables in the config file are not the same as
8584
| Command-Line | Config File | Default Value |
8685
|:---------------------|:--------------|:--------------|
8786
| --add-user | adduser | False |
88-
| --cilogon | cilogon | True |
8987
| --dump-output | dumpout | False |
9088
| --dump-file | dumpfile | None |
9189
| --extra-repo | extrarepos | [] |
@@ -388,7 +386,7 @@ Before you go and commit your changes, it's a good idea to make sure they don't
388386
```
389387
4. Run the tests and monitor their output:
390388
```
391-
[root@client ~]$ osg-test -vad > <OUTFILE>
389+
[root@client ~]$ osg-test -vad > <OUTFILE> 2>&1 &
392390
[root@client ~]$ tail -f <OUTFILE>
393391
```
394392

bootstrap-osg-test

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
UPSTREAM=https://github.com/opensciencegrid
4+
35
on_error_die()
46
{
57
if [ $? -ne 0 ]; then
@@ -11,32 +13,20 @@ on_error_die()
1113
fi
1214
}
1315

14-
if [ $# -lt 1 ]; then
16+
if [ $# -ne 1 ]; then
1517
echo "Requires the major version number, i.e. 3.2 for 3.2.0"
16-
echo "usage: $0 <major version> [testing|development]"
18+
echo "usage: $0 <major version>"
1719
exit 1
1820
fi
1921

2022
if [[ $1 =~ ^[0-9]+\.[0-9]+$ ]]; then
2123
version=$1
2224
else
2325
echo "Major version should be in the form of '<number>.<number>, i.e. 3.2"
24-
echo "usage: $0 <major version> [testing|development]"
26+
echo "usage: $0 <major version>"
2527
exit 1
2628
fi
2729

28-
extra_repo=
29-
case $2 in
30-
test|testing) extra_repo='--enablerepo=osg-testing';;
31-
dev|development) extra_repo='--enablerepo=osg-development';;
32-
'') ;;
33-
*)
34-
echo "$0: unknown option '$1'"
35-
echo "usage: $0 <major version> [testing|development]"
36-
exit 1
37-
;;
38-
esac
39-
4030
# Determine platform-specific details
4131
release=`cat /etc/redhat-release`
4232
case $release in
@@ -79,7 +69,8 @@ on_error_die "Could not enable epel"
7969
osg_rpm=`rpm -q osg-release 2>/dev/null`
8070
if [ $? -eq 1 ]; then
8171
echo -n "Downloading $osg_name... "
82-
curl --fail --location --output $osg_name --retry 10 --silent https://repo.grid.iu.edu/osg/$version/$osg_name
72+
curl --fail --location --output $osg_name --retry 10 --silent \
73+
https://repo.opensciencegrid.org/osg/$version/$osg_name
8374
on_error_die "Could not download $osg_name"
8475
echo -n 'Installing osg-release... '
8576
rpm --install --nosignature $osg_name
@@ -99,11 +90,13 @@ echo -n 'Verify yum-plugin-priorities... '
9990
rpm --verify yum-plugin-priorities
10091
on_error_die "Could not verify yum-plugin-priorities"
10192

102-
# Always erase and install, to get latest
103-
rpm -e osg-test >/dev/null 2>&1
104-
echo -n "Install osg-test... "
105-
yum -y --quiet $extra_repo install osg-test
106-
on_error_die "Could not install osg-test"
107-
echo -n 'Verify osg-test... '
108-
rpm --verify osg-test
109-
on_error_die "Could not verify osg-test"
93+
cd /tmp
94+
for repo in osg-test osg-ca-generator; do
95+
git clone --depth 1 $UPSTREAM/$repo
96+
on_error_die "Failed to clone $UPSTREAM/$repo"
97+
pushd $repo
98+
make install
99+
on_error_die "Failed to install $repo"
100+
popd
101+
done
102+

files/test_sequence

Lines changed: 65 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,66 @@
1-
test_03_haveged
2-
test_04_java
3-
test_05_mysqld
4-
test_06_fetch_crl
5-
test_07_munge
6-
test_09_jobs
7-
test_10_condor
8-
test_11_condor_cron
9-
test_13_gridftp
10-
test_14_lcmaps
11-
test_15_xrootd
12-
test_16_rsv
13-
test_17_pbs
14-
test_18_cvmfs
15-
test_19_condorce
16-
test_20_voms
17-
test_21_gums
18-
test_22_myproxy
19-
test_23_gratia
20-
test_24_tomcat
21-
test_25_voms_admin
22-
test_26_bestman
23-
test_28_gsiopenssh
24-
test_29_slurm
25-
test_30_misc
26-
test_35_osg_configure
27-
test_38_cvmfs
28-
test_40_proxy
29-
test_41_jobs
30-
test_42_gridftp
31-
test_43_uberftp
32-
test_44_glexec
33-
test_45_xrootd
34-
test_47_rsv
35-
test_48_myproxy
36-
test_49_jobs
37-
test_50_voms
38-
test_51_edgmkgridmap
39-
test_52_bestman
40-
test_53_gums
41-
test_54_gratia
42-
test_55_condorce
43-
test_58_gfal2util
44-
test_59_gsiopenssh
45-
test_74_slurm
46-
test_75_gums
47-
test_76_tomcat
48-
test_77_myproxy
49-
test_78_voms
50-
test_79_condorce
51-
test_80_gratia
52-
test_82_cvmfs
53-
test_83_rsv
54-
test_84_xrootd
55-
test_85_lcmaps
56-
test_86_gridftp
57-
test_88_condor_cron
58-
test_89_condor
59-
test_90_bestman
60-
test_91_pbs
61-
test_92_gsiopenssh
62-
test_94_munge
63-
test_95_mysqld
64-
test_96_proxy
65-
test_97_java
66-
test_98_haveged
1+
test_030_haveged
2+
test_040_java
3+
test_050_mysqld
4+
test_060_fetch_crl
5+
test_070_munge
6+
test_090_jobs
7+
test_100_condor
8+
test_110_condor_cron
9+
test_130_gridftp
10+
test_140_lcmaps
11+
test_150_xrootd
12+
test_160_rsv
13+
test_170_pbs
14+
test_180_cvmfs
15+
test_190_condorce
16+
test_200_voms
17+
test_210_gums
18+
test_220_myproxy
19+
test_230_gratia
20+
test_240_tomcat
21+
test_250_voms_admin
22+
test_260_bestman
23+
test_280_gsiopenssh
24+
test_290_slurm
25+
test_300_misc
26+
test_380_cvmfs
27+
test_400_proxy
28+
test_480_myproxy
29+
test_500_voms
30+
test_410_jobs
31+
test_420_gridftp
32+
test_430_uberftp
33+
test_440_glexec
34+
test_450_xrootd
35+
test_470_rsv
36+
test_490_jobs
37+
test_510_edgmkgridmap
38+
test_520_bestman
39+
test_530_gums
40+
test_540_gratia
41+
test_550_condorce
42+
test_580_gfal2util
43+
test_590_gsiopenssh
44+
test_740_slurm
45+
test_750_gums
46+
test_760_tomcat
47+
test_770_myproxy
48+
test_780_voms
49+
test_790_condorce
50+
test_800_gratia
51+
test_820_cvmfs
52+
test_830_rsv
53+
test_840_xrootd
54+
test_850_lcmaps
55+
test_860_gridftp
56+
test_880_condor_cron
57+
test_890_condor
58+
test_900_bestman
59+
test_910_pbs
60+
test_920_gsiopenssh
61+
test_940_munge
62+
test_950_mysqld
63+
test_960_proxy
64+
test_970_java
65+
test_980_haveged
6766

osg-test

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/python
22

3+
from __future__ import print_function
34
from distutils.sysconfig import get_python_lib
45
from optparse import OptionParser
56
import ConfigParser
@@ -21,7 +22,6 @@ from osgtest.library import osgunittest
2122
def parse_command_line():
2223
defaults = {"adduser": False,
2324
"backupmysql": False,
24-
"cilogon": False,
2525
"config": None,
2626
"dumpfile": None,
2727
"dumpout": False,
@@ -56,7 +56,7 @@ def parse_command_line():
5656
config_file = ConfigParser.RawConfigParser()
5757
try:
5858
config_file.read(opts.config)
59-
except ConfigParser.ParsingError, exc:
59+
except ConfigParser.ParsingError as exc:
6060
sys.stderr.write("Error while parsing: %s\n%s\n" % (opts.config, exc))
6161
sys.stderr.write("Lines with options should not start with a space\n")
6262
sys.exit(1)
@@ -96,9 +96,6 @@ def read_args():
9696
p.add_option('-a', '--add-user', action='store_true', dest='adduser',
9797
help='Add and configure the test user account (see -u below)')
9898

99-
p.add_option('--cilogon', action='store_true', dest='cilogon',
100-
help='Generate CILogon-like certificates')
101-
10299
p.add_option('-c', '--config', action='store', type='string', dest='config',
103100
help='Configuration file to use that specifies command-line options')
104101

@@ -172,7 +169,7 @@ def get_password():
172169
if core.options.securepass:
173170
# If the user also specifies password on the command line, we complain
174171
if core.options.password != 'vdttest':
175-
print 'Only specify one of --password and --securepass'
172+
print('Only specify one of --password and --securepass')
176173
sys.exit(1)
177174
core.options.password = getpass()
178175

@@ -256,6 +253,6 @@ if __name__ == '__main__':
256253
signal.alarm(0)
257254
signal.signal(signal.SIGALRM, signal.SIG_DFL)
258255
else:
259-
print 'No tests to run.'
256+
print('No tests to run.')
260257
wrap_up()
261258
sys.exit(EXIT_CODE)

0 commit comments

Comments
 (0)