Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: utils/tests/template/run

Issue 9728009: Template bug fixes and new features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undid css.status change Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/template/realviews.tmpl ('k') | utils/tests/template/test_nested.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # get the number of command-line arguments given 3 # get the number of command-line arguments given
4 ARGC=$# 4 ARGC=$#
5 5
6 if [[ $ARGC -eq 1 ]]; 6 if [[ $ARGC -eq 1 ]];
7 then 7 then
8 if [[ $1 = "simple1" ]]; 8 if [[ $1 = "simple1" ]];
9 then 9 then
10 ./../../template/template name_entry.tmpl name_entry.dart 10 ./../../template/template name_entry.tmpl name_entry.dart
11 cd ../../../frog 11 cd ../../../frog
12 ./frog.py --html -- ../utils/tests/template/test_simple.dart 12 ./frog.py --html -- ../utils/tests/template/test_simple.dart
13 elif [[ $1 == "simple2" ]]; 13 elif [[ $1 == "simple2" ]];
14 then 14 then
15 ./../../template/template name_entry2.tmpl name_entry.dart 15 ./../../template/template name_entry2.tmpl name_entry.dart
16 cd ../../../frog 16 cd ../../../frog
17 ./frog.py --html -- ../utils/tests/template/test_simple.dart 17 ./frog.py --html -- ../utils/tests/template/test_simple.dart
18 elif [[ $1 == "simple3" ]]; 18 elif [[ $1 == "simple3" ]];
19 then 19 then
20 ./../../template/template name_entry_css.tmpl name_entry.dart 20 ./../../template/template name_entry_css.tmpl name_entry.dart
21 cd ../../../frog 21 cd ../../../frog
22 ./frog.py --html -- ../utils/tests/template/test_simple.dart 22 ./frog.py --html -- ../utils/tests/template/test_simple.dart
23 elif [[ $1 == "simple4" ]];
24 then
25 ./../../template/template name_entry_text.tmpl name_entry.dart
26 cd ../../../frog
27 ./frog.py --html -- ../utils/tests/template/test_simple.dart
28 elif [[ $1 == "simplecall" ]];
29 then
30 ./../../template/template callview.tmpl name_entry.dart
31 cd ../../../frog
32 ./frog.py --html -- ../utils/tests/template/test_simple.dart
23 elif [[ $1 == "with1" ]]; 33 elif [[ $1 == "with1" ]];
24 then 34 then
25 ./../../template/template productview.tmpl productview.dart 35 ./../../template/template productview.tmpl productview.dart
26 cd ../../../frog 36 cd ../../../frog
27 ./frog.py --html -- ../utils/tests/template/test_with.dart 37 ./frog.py --html -- ../utils/tests/template/test_with.dart
28 elif [[ $1 == "with2" ]]; 38 elif [[ $1 == "with2" ]];
29 then 39 then
30 ./../../template/template productview2.tmpl productview.dart 40 ./../../template/template productview2.tmpl productview.dart
31 cd ../../../frog 41 cd ../../../frog
32 ./frog.py --html -- ../utils/tests/template/test_with.dart 42 ./frog.py --html -- ../utils/tests/template/test_with.dart
43 elif [[ $1 == "with3" ]];
44 then
45 ./../../template/template productview_localname.tmpl productview.dart
46 cd ../../../frog
47 ./frog.py --html -- ../utils/tests/template/test_with.dart
48 elif [[ $1 == "nested" ]];
49 then
50 ./../../template/template nestedview.tmpl nestedview.dart
51 cd ../../../frog
52 ./frog.py --html -- ../utils/tests/template/test_nested.dart
33 elif [[ $1 == "list" ]]; 53 elif [[ $1 == "list" ]];
34 then 54 then
35 ./../../template/template applications.tmpl applications.dart 55 ./../../template/template applications.tmpl applications.dart
36 cd ../../../frog 56 cd ../../../frog
37 ./frog.py --html -- ../utils/tests/template/test_list.dart 57 ./frog.py --html -- ../utils/tests/template/test_list.dart
38 elif [[ $1 == "complex" ]]; 58 elif [[ $1 == "complex" ]];
39 then 59 then
40 ./../../template/template top_searches.tmpl top_searches.dart 60 ./../../template/template top_searches.tmpl top_searches.dart
41 cd ../../../frog 61 cd ../../../frog
42 ./frog.py --html -- ../utils/tests/template/test_complex.dart 62 ./frog.py --html -- ../utils/tests/template/test_complex.dart
(...skipping 12 matching lines...) Expand all
55 ./../../template/template realviews.tmpl realviews.dart 75 ./../../template/template realviews.tmpl realviews.dart
56 cd ../../../frog 76 cd ../../../frog
57 ./frog.py --html -- ../utils/tests/template/real_app.dart 77 ./frog.py --html -- ../utils/tests/template/real_app.dart
58 elif [[ $1 == "clean" ]]; 78 elif [[ $1 == "clean" ]];
59 then 79 then
60 # remove all generated templates 80 # remove all generated templates
61 echo "rm name_entry.dart" 81 echo "rm name_entry.dart"
62 rm -f name_entry.dart 82 rm -f name_entry.dart
63 echo "rm productview.dart" 83 echo "rm productview.dart"
64 rm -f productview.dart 84 rm -f productview.dart
85 echo "rm nestedview.dart"
86 rm -f nestedview.dart
65 echo "rm applications.dart" 87 echo "rm applications.dart"
66 rm -f applications.dart 88 rm -f applications.dart
67 echo "rm top_searches.dart" 89 echo "rm top_searches.dart"
68 rm -f top_searches.dart 90 rm -f top_searches.dart
69 echo "rm top_searches2.dart" 91 echo "rm top_searches2.dart"
70 rm -f top_searches2.dart 92 rm -f top_searches2.dart
71 echo "rm realviews.dart" 93 echo "rm realviews.dart"
72 rm -f realviews.dart 94 rm -f realviews.dart
73 fi 95 fi
74 else 96 else
75 echo -e "\033[31mUnknown test\033[0m" 97 echo -e "\033[31mUnknown test\033[0m"
76 echo -e "" 98 echo -e ""
77 echo -e "Known tests are:" 99 echo -e "Known tests are:"
78 echo -e " simple1" 100 echo -e " simple1"
79 echo -e " simple2" 101 echo -e " simple2"
80 echo -e " simple3" 102 echo -e " simple3"
103 echo -e " simple4"
104 echo -e " simplecall"
81 echo -e " with1" 105 echo -e " with1"
82 echo -e " with2" 106 echo -e " with2"
107 echo -e " with3"
108 echo -e " nested"
83 echo -e " list" 109 echo -e " list"
84 echo -e " complex" 110 echo -e " complex"
85 echo -e " complexcss" 111 echo -e " complexcss"
86 echo -e " complex2" 112 echo -e " complex2"
87 echo -e " real" 113 echo -e " real"
88 echo -e "" 114 echo -e ""
89 echo -e "clean - removes all template generated Dart classes" 115 echo -e "clean - removes all template generated Dart classes"
90 fi 116 fi
91 117
OLDNEW
« no previous file with comments | « utils/tests/template/realviews.tmpl ('k') | utils/tests/template/test_nested.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698