File indexing completed on 2024-04-06 12:12:40
0001
0002
0003 LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
0004
0005
0006 function die { echo $1: status $2 ; echo === Log file === ; cat ${3:-/dev/null} ; echo === End log file === ; exit $2; }
0007
0008 cat <<EOF > finalpath_expected_empty.log
0009 EOF
0010
0011 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py >& finalpath.log || die "failed test_finalpath_cfg.py" $?
0012 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_empty.log - || die "differences for test_finalpath_cfg.py" $?
0013
0014
0015 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --schedule >& finalpath.log || die "failed test_finalpath_cfg.py --schedule" $?
0016 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_empty.log - || die "differences for test_finalpath_cfg.py" $?
0017
0018
0019 cat <<EOF > finalpath_expected_not_found.log
0020 did not find thing '' TEST
0021 did not find thing '' TEST
0022 did not find thing '' TEST
0023 found thing 'beginLumi' TEST
0024 found thing 'endLumi' TEST
0025 found thing 'beginRun' TEST
0026 found thing 'endRun' TEST
0027 EOF
0028 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --schedule --task >& finalpath.log || die "failed test_finalpath_cfg.py --schedule --task" $?
0029 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_not_found.log - || die "differences for test_finalpath_cfg.py --schedule --task" $?
0030
0031
0032 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --endpath >& finalpath.log || die "failed test_finalpath_cfg.py --endpath" $?
0033 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_empty.log - || die "differences for test_finalpath_cfg.py --endpath" $?
0034
0035 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --schedule --endpath >& finalpath.log || die "failed test_finalpath_cfg.py --schedule --endpath" $?
0036 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_empty.log - || die "differences for test_finalpath_cfg.py --schedule --endpath" $?
0037
0038
0039 cat <<EOF > finalpath_expected_found.log
0040 found thing '' TEST
0041 found thing '' TEST
0042 found thing '' TEST
0043 found thing 'beginLumi' TEST
0044 found thing 'endLumi' TEST
0045 found thing 'beginRun' TEST
0046 found thing 'endRun' TEST
0047 EOF
0048 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --endpath --task >& finalpath.log || die "failed test_finalpath_cfg.py --endpath --task" $?
0049 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_found.log - || die "differences for test_finalpath_cfg.py --endpath --task" $?
0050
0051 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --endpath --task --schedule >& finalpath.log || die "failed test_finalpath_cfg.py --endpath --task --schedule" $?
0052 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_found.log - || die "differences for test_finalpath_cfg.py --endpath --task --schedule" $?
0053
0054 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --path --task >& finalpath.log || die "failed test_finalpath_cfg.py --path --task" $?
0055 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_found.log - || die "differences for test_finalpath_cfg.py --path --task" $?
0056
0057 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --path --task --schedule >& finalpath.log || die "failed test_finalpath_cfg.py --path --task --schedule" $?
0058 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_found.log - || die "differences for test_finalpath_cfg.py --path --task --schedule" $?
0059
0060
0061 cat <<EOF > finalpath_expected_filter.log
0062 did not find thing '' TEST
0063 found thing '' TEST
0064 did not find thing '' TEST
0065 found thing 'beginLumi' TEST
0066 found thing 'endLumi' TEST
0067 found thing 'beginRun' TEST
0068 found thing 'endRun' TEST
0069 EOF
0070
0071 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --path --filter >& finalpath.log || die "failed test_finalpath_cfg.py --path --filter" $?
0072 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_filter.log - || die "differences for test_finalpath_cfg.py --path --filter" $?
0073
0074
0075 cmsRun ${LOCAL_TEST_DIR}/test_finalpath_cfg.py --path --filter --task >& finalpath.log || die "failed test_finalpath_cfg.py --path --filter --task" $?
0076 grep "thing '.*' TEST" finalpath.log | diff finalpath_expected_filter.log - || die "differences for test_finalpath_cfg.py --path --filter --task" $?