
# This is a dummy test harness.  A real test harness would run the 
# tests and check correctness of the results.  This just runs the tests
# and ignores correctness.

run_one ()
{
  lc $* > /dev/null 2>&1
}

test_clean()
{
   /bin/rm -f *LOG no-exist no-read
}

# Setup
test_clean
touch no-read
chmod a-r no-read

# Run tests

run_one lc2
run_one lc2 no-exist
run_one no-exist
run_one lc1 no-exist lc2
run_one lc1 no-exist no-read
/bin/rm -f no-read
run_one -} -1 lc3 lc4 lc5
run_one -} -2 lc6 lc7 lc8
run_one -0 lc9
run_one -x lc1
run_one - lc1
run_one lc9
run_one lc10
run_one -2 lc11 lc12 lc13
run_one -2 lc14
run_one lc15 lc16 lc17 lc18 
run_one lc19 
run_one lc20
run_one lc21
run_one lc22 lc23 lc24
run_one -2 lc22 lc23 lc24
run_one lc25
run_one lc34567 lc345678
run_one lc3456789
run_one lc26
run_one lc27
run_one -4 -} -3 lc28
run_one -4-} lc3
run_one lc29
run_one lc30
