Skip to content

Commit

Permalink
Improved the test scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
guiquanz committed Apr 14, 2016
1 parent 016d55f commit def557f
Show file tree
Hide file tree
Showing 59 changed files with 127 additions and 68 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ tcc-doc.info: tcc-doc.texi
# in tests subdir
export LIBTCC1

%est:
%est: all
$(MAKE) -C tests $@
prove -v

clean:
rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.so* *.out *.exe libtcc_test$(EXESUF)
Expand Down
2 changes: 1 addition & 1 deletion t/00_assignment.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/01_comment.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
3 changes: 2 additions & 1 deletion t/02_printf.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down Expand Up @@ -49,3 +49,4 @@ String 'hello', 'there' is 'hello', 'there'
Character 'A' is 'A'
Character 'a' is 'a'
--- err
2 changes: 1 addition & 1 deletion t/03_struct.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/04_for.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/05_array.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/06_case.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/07_function.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/08_while.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/09_do_while.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/10_pointer.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/11_precedence.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/12_hashdefine.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/13_integer_literals.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/14_if.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/15_recursion.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/16_nesting.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/17_enum.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/18_include.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/19_pointer_arithmetic.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/20_pointer_comparison.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/21_char_array.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/22_floating_point.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/23_type_coercion.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/24_math_library.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/25_quicksort.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/26_character_constants.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/27_sizeof.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/28_strings.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/29_array_address.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/30_hanoi.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/31_args.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/32_led.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/33_ternary_op.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/34_array_assignment.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/35_sizeof.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/36_array_initialisers.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/37_sprintf.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
4 changes: 2 additions & 2 deletions t/38_multiple_array_index.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down Expand Up @@ -48,6 +48,6 @@ int main()
x=0: 1 2 3 4
x=1: 5 6 7 8
x=2: 9 10 11 12
x=3: 13 14 15 16
x=3: 13 14 15 16
--- err
2 changes: 1 addition & 1 deletion t/39_typedef.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
2 changes: 1 addition & 1 deletion t/40_stdio.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: ft= et tw=4 sw=4

use lib 't/lib';
use Test::sakura 'no_plan';
use Test::Sakura 'no_plan';

run_tests();

Expand Down
Loading

0 comments on commit def557f

Please sign in to comment.