From e158dd454205990918941ae3b7b3fb1cad128c9f Mon Sep 17 00:00:00 2001 From: "martin.holmer@gmail.com" Date: Mon, 8 Apr 2024 10:09:54 -0400 Subject: [PATCH] Update examination/taxcalculator/runs.sh script --- .../examination/taxcalculator/runs.sh | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/tax_microdata_benchmarking/examination/taxcalculator/runs.sh b/tax_microdata_benchmarking/examination/taxcalculator/runs.sh index aebed6f8..d844b8fc 100755 --- a/tax_microdata_benchmarking/examination/taxcalculator/runs.sh +++ b/tax_microdata_benchmarking/examination/taxcalculator/runs.sh @@ -2,7 +2,11 @@ # Execute several Tax-Calculator runs using the execute.sh script. # USAGE: # ./runs.sh DATAFILE(without_trailing_.csv) YEAR(tailing_two_digits) -# DATAFILES: puf|pe23 (where puf is from the taxdata repository) +# DATAFILES: puf|pe23|xb23|xb26|xc23|xc26 +# (where puf is from the taxdata repository) +# (where pe23 is the Phase 1 work product) +# (where xb23 and xb26 are Phase 2 work products) +# (where xc23 and xc26 are Phase 3 work products) D="DATAFILE(without_trailing_.csv)" Y="YEAR(tailing_two_digits)" @@ -24,6 +28,42 @@ if [[ "$1" == "pe23" ]]; then fi OK=1 fi +if [[ "$1" == "xb23" ]]; then + unzip -oq xb23.csv.zip + if [[ "$2" != "23" ]]; then + echo "ERROR: YEAR not equal to 23" >&2 + echo "USAGE: ./runs.sh xb23 23" >&2 + exit 1 + fi + OK=1 +fi +if [[ "$1" == "xb26" ]]; then + unzip -oq xb26.csv.zip + if [[ "$2" != "26" ]]; then + echo "ERROR: YEAR not equal to 26" >&2 + echo "USAGE: ./runs.sh xb26 26" >&2 + exit 1 + fi + OK=1 +fi +if [[ "$1" == "xc23" ]]; then + unzip -oq xc23.csv.zip + if [[ "$2" != "23" ]]; then + echo "ERROR: YEAR not equal to 23" >&2 + echo "USAGE: ./runs.sh xc23 23" >&2 + exit 1 + fi + OK=1 +fi +if [[ "$1" == "xc26" ]]; then + unzip -oq xc26.csv.zip + if [[ "$2" != "26" ]]; then + echo "ERROR: YEAR not equal to 26" >&2 + echo "USAGE: ./runs.sh xc26 26" >&2 + exit 1 + fi + OK=1 +fi if [[ "$OK" -ne 1 ]]; then echo "ERROR: DATAFILE is neither 'puf' nor 'pe23'" >&2 echo "USAGE: ./runs.sh $D $Y" >&2