Browse Source

tests: symlink basic tests to a single file that has the common code

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
tags/json-c-0.13-20171207
Alexandru Ardelean 8 years ago
parent
commit
73636c2ed0
33 changed files with 31 additions and 192 deletions
  1. +0
    -12
      tests/test4.test
  2. +1
    -0
      tests/test4.test
  3. +0
    -12
      tests/testReplaceExisting.test
  4. +1
    -0
      tests/testReplaceExisting.test
  5. +15
    -0
      tests/test_basic.test
  6. +0
    -12
      tests/test_cast.test
  7. +1
    -0
      tests/test_cast.test
  8. +0
    -12
      tests/test_charcase.test
  9. +1
    -0
      tests/test_charcase.test
  10. +0
    -12
      tests/test_compare.test
  11. +1
    -0
      tests/test_compare.test
  12. +0
    -12
      tests/test_double_serializer.test
  13. +1
    -0
      tests/test_double_serializer.test
  14. +0
    -12
      tests/test_float.test
  15. +1
    -0
      tests/test_float.test
  16. +0
    -12
      tests/test_json_pointer.test
  17. +1
    -0
      tests/test_json_pointer.test
  18. +0
    -12
      tests/test_locale.test
  19. +1
    -0
      tests/test_locale.test
  20. +0
    -12
      tests/test_null.test
  21. +1
    -0
      tests/test_null.test
  22. +0
    -12
      tests/test_parse.test
  23. +1
    -0
      tests/test_parse.test
  24. +0
    -12
      tests/test_parse_int64.test
  25. +1
    -0
      tests/test_parse_int64.test
  26. +0
    -12
      tests/test_printbuf.test
  27. +1
    -0
      tests/test_printbuf.test
  28. +0
    -12
      tests/test_set_serializer.test
  29. +1
    -0
      tests/test_set_serializer.test
  30. +0
    -12
      tests/test_set_value.test
  31. +1
    -0
      tests/test_set_value.test
  32. +0
    -12
      tests/test_visit.test
  33. +1
    -0
      tests/test_visit.test

+ 0
- 12
tests/test4.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test4
exit $?

+ 1
- 0
tests/test4.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/testReplaceExisting.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test testReplaceExisting
exit $?

+ 1
- 0
tests/testReplaceExisting.test View File

@@ -0,0 +1 @@
test_basic.test

+ 15
- 0
tests/test_basic.test View File

@@ -0,0 +1,15 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

filename=$(basename "$0")
filename="${filename%.*}"

run_output_test $filename
exit $?

+ 0
- 12
tests/test_cast.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_cast
exit $?

+ 1
- 0
tests/test_cast.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_charcase.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_charcase
exit $?

+ 1
- 0
tests/test_charcase.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_compare.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_compare
exit $?

+ 1
- 0
tests/test_compare.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_double_serializer.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_double_serializer
exit $?

+ 1
- 0
tests/test_double_serializer.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_float.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_float
exit $?

+ 1
- 0
tests/test_float.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_json_pointer.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_json_pointer
exit $?

+ 1
- 0
tests/test_json_pointer.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_locale.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_locale
exit $?

+ 1
- 0
tests/test_locale.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_null.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_null
exit $?

+ 1
- 0
tests/test_null.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_parse.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_parse
exit $?

+ 1
- 0
tests/test_parse.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_parse_int64.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_parse_int64
exit $?

+ 1
- 0
tests/test_parse_int64.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_printbuf.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_printbuf
exit $?

+ 1
- 0
tests/test_printbuf.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_set_serializer.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_set_serializer
exit $?

+ 1
- 0
tests/test_set_serializer.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_set_value.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_set_value
exit $?

+ 1
- 0
tests/test_set_value.test View File

@@ -0,0 +1 @@
test_basic.test

+ 0
- 12
tests/test_visit.test View File

@@ -1,12 +0,0 @@
#!/bin/sh

# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"

run_output_test test_visit
exit $?

+ 1
- 0
tests/test_visit.test View File

@@ -0,0 +1 @@
test_basic.test

Loading…
Cancel
Save