1. Sebastian Freundt
  2. dateutils

Commits

Sebastian Freundt  committed 75b671b Merge

Merge branch 'next'

* next:
minor, polish dconv-test.sh shell part for use with dt-test tool
minor, extend dt-test by --shell-bits option to specify the shell-part of the tester
chore, avoid $(...) clauses in all regression test files
chore, free test suite script from $(...) clauses and use portable backticks instead
minor, migrate to C-based (getopt-long based) test compiler, dt-test
cosmetics, rearrange the inclusion of the log compilers in test suite

  • Participants
  • Parent commits f61601c, 0a37d6a
  • Branches master

Comments (0)

Files changed (478)

File test/Makefile.am

View file
  • Ignore whitespace
 AM_CPPFLAGS += -DTEST -I$(libdir) -I$(abs_top_builddir)/lib
 
 EXTRA_DIST =
-EXTRA_DIST += $(dt_tests) $(DT_LOG_COMPILER)
-EXTRA_DIST += $(convt_tests) $(CONVT_LOG_COMPILER)
+EXTRA_DIST += $(dt_tests)
+EXTRA_DIST += $(convt_tests)
 EXTRA_DIST += $(batch_tests)
+EXTRA_DIST += $(BUILT_SOURCES)
 TESTS = $(bin_tests) $(dt_tests) $(convt_tests) $(batch_tests)
 TESTS_ENVIRONMENT =
 TEST_EXTENSIONS =
+BUILT_SOURCES =
 dt_tests =
 bin_tests =
 batch_tests =
 CLEANFILES = $(check_PROGRAMS)
 
 TEST_EXTENSIONS += .dt
-DT_LOG_COMPILER = $(srcdir)/dt-test.sh
+check_PROGRAMS += dt-test
+DT_LOG_COMPILER = $(builddir)/dt-test
 AM_DT_LOG_FLAGS = --builddir $(top_builddir)/src --hash sha1sum
+EXTRA_DIST += $(srcdir)/dt-test.sh
 
 TEST_EXTENSIONS += .convt
-CONVT_LOG_COMPILER = $(srcdir)/dconv-test.sh
-AM_CONVT_LOG_FLAGS = --builddir $(top_builddir)/src --hash sha1sum
+CONVT_LOG_COMPILER = $(builddir)/dt-test
+AM_CONVT_LOG_FLAGS = --shell-bits $(srcdir)/dconv-test.sh \
+	--builddir $(top_builddir)/src --hash sha1sum
+EXTRA_DIST += $(srcdir)/dconv-test.sh
 
 TESTS_ENVIRONMENT += GPERF=$(GPERF)
 TESTS_ENVIRONMENT += GDATE=$(GDATE)
 convt_tests += ymcw-ymd.convt
 convt_tests += ymcw-ywd.convt
 
+
+check_PROGRAMS += dt-test
+BUILT_SOURCES += dt-test-clo.c dt-test-clo.h
+EXTRA_DIST += dt-test.sh
+
+## ggo rule
+%.c %.h: %.ggo
+	$(AM_V_GEN) gengetopt -F $* -i $<
+
 ## Makefile.am ends here

File test/dadd.1.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-03-02
 EOF

File test/dadd.10.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2011-01-25
 EOF

File test/dadd.11.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-01-02-04
 EOF

File test/dadd.12.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-01-02-02
 EOF

File test/dadd.13.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-01-03-03
 EOF

File test/dadd.14.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-01-01-03
 EOF

File test/dadd.15.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-02-03
 EOF

File test/dadd.16.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2011-12-02-03
 EOF

File test/dadd.17.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-05-03
 EOF

File test/dadd.18.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-01-02-03
 EOF

File test/dadd.19.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-27
 EOF

File test/dadd.2.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-01
 EOF

File test/dadd.20.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2011-11-07
 EOF

File test/dadd.21.dt

View file
  • Ignore whitespace
 CMDLINE="+1mo"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2012-03-01
 2012-03-02
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-01
 2012-04-02

File test/dadd.22.dt

View file
  • Ignore whitespace
 CMDLINE="+1d"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2012-03-01
 2012-03-02
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-03-02
 2012-03-03

File test/dadd.23.dt

View file
  • Ignore whitespace
 CMDLINE="-1d"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2012-03-01
 2012-03-02
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-29
 2012-03-01

File test/dadd.24.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2010-02-06
 EOF

File test/dadd.25.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2010-02-09
 EOF

File test/dadd.26.dt

View file
  • Ignore whitespace
 CMDLINE="-1d"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2001-01-05
 2001-01-01
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2001-01-04
 2000-12-31

File test/dadd.27.dt

View file
  • Ignore whitespace
 COMMENT="mass adding of durations"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 1
 2
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2001-01-06
 2001-01-07

File test/dadd.28.dt

View file
  • Ignore whitespace
 COMMENT="mass adding of durations"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 -1
 -2
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2001-01-04
 2001-01-03

File test/dadd.29.dt

View file
  • Ignore whitespace
 COMMENT="mass adding of durations, time to date"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 1s
 2h
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2001-01-05
 2001-01-05
 EOF
 
 ## STDERR
-stderr=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stderr=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stderr}" <<EOF
 dadd: cannot make sense of \`test' using the given input formats
 EOF

File test/dadd.3.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-30
 EOF

File test/dadd.30.dt

View file
  • Ignore whitespace
 COMMENT="mass adding of durations, time to date"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 1s
 2h
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2001-01-05
 2001-01-05
 EOF
 
 ## STDERR
-stderr=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stderr=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 
 ## dadd.30.dt ends here

File test/dadd.31.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-05-00
 EOF

File test/dadd.32.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-04-06
 EOF

File test/dadd.33.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-04-06
 EOF

File test/dadd.34.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-04-04
 EOF

File test/dadd.35.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2001-02-03-05
 EOF

File test/dadd.36.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2000-12-03-05
 EOF

File test/dadd.37.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-W36-02
 EOF

File test/dadd.38.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-W35-07
 EOF

File test/dadd.39.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-W35-07
 EOF

File test/dadd.4.dt

View file
  • Ignore whitespace
 CMDLINE="2w2d"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2012-03-01
 2012-03-02
 EOF
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-03-17
 2012-03-18

File test/dadd.40.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-W36-02
 EOF

File test/dadd.41.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-W37-01
 EOF

File test/dadd.42.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-W35-01
 EOF

File test/dadd.43.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-W36-01
 EOF

File test/dadd.44.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2011-W36-01
 EOF

File test/dadd.45.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-01-01
 EOF

File test/dadd.46.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-02-03
 EOF

File test/dadd.47.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-01-00
 EOF

File test/dadd.48.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-02-04
 EOF

File test/dadd.49.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-01-06
 EOF

File test/dadd.5.dt

View file
  • Ignore whitespace
 CMDLINE="1b"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2000-01-01
 2000-01-02
 EOF
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2000-01-03
 2000-01-03

File test/dadd.50.dt

View file
  • Ignore whitespace
 ## STDIN
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-02-05
 EOF

File test/dadd.51.dt

View file
  • Ignore whitespace
 CMDLINE="2009-W52-06"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 0d
 1d
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2009-W52-06
 2009-W52-07

File test/dadd.52.dt

View file
  • Ignore whitespace
 CMDLINE="2010-W01-02"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 0d
 -1d
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2010-W01-02
 2010-W01-01

File test/dadd.53.dt

View file
  • Ignore whitespace
 CMDLINE="2010-W51-06"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 0d
 1d
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2010-W51-06
 2010-W51-07

File test/dadd.54.dt

View file
  • Ignore whitespace
 CMDLINE="2011-W01-02"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 0d
 -1d
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2011-W01-02
 2011-W01-01

File test/dadd.55.dt

View file
  • Ignore whitespace
 CMDLINE="2012-09-01b"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 0b
 1b
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-09-01b
 2012-09-02b

File test/dadd.56.dt

View file
  • Ignore whitespace
 CMDLINE="2012-10-01b"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 -0b
 -1b
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-10-01b
 2012-09-20b

File test/dadd.57.dt

View file
  • Ignore whitespace
 CMDLINE="2012-09-01b"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 0
 1
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-09-01b
 2012-09-02b

File test/dadd.58.dt

View file
  • Ignore whitespace
 CMDLINE="2012-10-01b"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 -0
 -1
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-10-01b
 2012-10-01b

File test/dadd.59.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-02-28
 EOF

File test/dadd.6.dt

View file
  • Ignore whitespace
 CMDLINE="-1b"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2000-01-01
 2000-01-02
 EOF
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1999-12-31
 1999-12-31

File test/dadd.60.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-04-30
 EOF

File test/dadd.61.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-02-29
 EOF

File test/dadd.62.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2011-02-28
 EOF

File test/dadd.63.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2000-02-29
 EOF

File test/dadd.64.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2016-02-29
 EOF

File test/dadd.65.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-02-20b
 EOF

File test/dadd.66.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-09-21b
 EOF

File test/dadd.67.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-10-04-06
 EOF

File test/dadd.68.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-09-04-06
 EOF

File test/dadd.69.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-08-04-01
 EOF

File test/dadd.7.dt

View file
  • Ignore whitespace
 CMDLINE="-1"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2000-01-01
 2000-01-02
 EOF
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1999-12-31
 2000-01-01

File test/dadd.70.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-09-04-01
 EOF

File test/dadd.71.dt

View file
  • Ignore whitespace
 CMDLINE="2012-09-01-04"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 +0b
 +1b
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-09-01-04
 2012-09-01-05

File test/dadd.72.dt

View file
  • Ignore whitespace
 CMDLINE="2012-09-01-04"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 +0b
 -1b
 EOF
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2012-09-01-04
 2012-09-01-03

File test/dadd.73.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2013-W01-01
 EOF

File test/dadd.74.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2009-W53-07
 EOF

File test/dadd.75.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2010-W52-07
 EOF

File test/dadd.76.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 2008-W52-07
 EOF

File test/dadd.77.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1920-W01-01
 EOF

File test/dadd.78.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1919-12-29
 EOF

File test/dadd.79.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1920-W53-07
 EOF

File test/dadd.8.dt

View file
  • Ignore whitespace
 CMDLINE="-1m1d"
 
 ## STDIN
-stdin=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdin=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdin}" <<EOF
 2000-01-01
 2000-01-02
 EOF
  
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1999-11-30
 1999-12-01

File test/dadd.80.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1921-01-02
 EOF

File test/dadd.81.dt

View file
  • Ignore whitespace
 ## STDIN
 
 ## STDOUT
-stdout=$(mktemp "/tmp/tmp.XXXXXXXXXX")
+stdout=`mktemp "/tmp/tmp.XXXXXXXXXX"`
 cat > "${stdout}" <<EOF
 1920-W52-07