Skip to content

Commit

Permalink
tests: symlink basic tests to a single file that has the common code
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Jun 22, 2017
1 parent a363969 commit 73636c2
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 192 deletions.
12 changes: 0 additions & 12 deletions tests/test4.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test4.test
12 changes: 0 additions & 12 deletions tests/testReplaceExisting.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/testReplaceExisting.test
15 changes: 15 additions & 0 deletions tests/test_basic.test
Original file line number Diff line number Diff line change
@@ -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 $?
12 changes: 0 additions & 12 deletions tests/test_cast.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_cast.test
12 changes: 0 additions & 12 deletions tests/test_charcase.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_charcase.test
12 changes: 0 additions & 12 deletions tests/test_compare.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_compare.test
12 changes: 0 additions & 12 deletions tests/test_double_serializer.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_double_serializer.test
12 changes: 0 additions & 12 deletions tests/test_float.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_float.test
12 changes: 0 additions & 12 deletions tests/test_json_pointer.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_json_pointer.test
12 changes: 0 additions & 12 deletions tests/test_locale.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_locale.test
12 changes: 0 additions & 12 deletions tests/test_null.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_null.test
12 changes: 0 additions & 12 deletions tests/test_parse.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_parse.test
12 changes: 0 additions & 12 deletions tests/test_parse_int64.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_parse_int64.test
12 changes: 0 additions & 12 deletions tests/test_printbuf.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_printbuf.test
12 changes: 0 additions & 12 deletions tests/test_set_serializer.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_set_serializer.test
12 changes: 0 additions & 12 deletions tests/test_set_value.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_set_value.test
12 changes: 0 additions & 12 deletions tests/test_visit.test

This file was deleted.

1 change: 1 addition & 0 deletions tests/test_visit.test

0 comments on commit 73636c2

Please sign in to comment.