| Index: utils/tests/template/run
|
| diff --git a/utils/tests/template/run b/utils/tests/template/run
|
| deleted file mode 100755
|
| index c4658b003d28360f573bdc72012ddb2e3f1f1039..0000000000000000000000000000000000000000
|
| --- a/utils/tests/template/run
|
| +++ /dev/null
|
| @@ -1,135 +0,0 @@
|
| -#!/bin/bash
|
| -
|
| -# get the number of command-line arguments given
|
| -ARGC=$#
|
| -
|
| -if [[ $ARGC -eq 1 ]];
|
| -then
|
| - if [[ $1 = "simple" ]];
|
| - then
|
| - ./../../template/template name_entry_simple.tmpl name_entry.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_simple.dart
|
| - elif [[ $1 = "simple1" ]];
|
| - then
|
| - ./../../template/template name_entry.tmpl name_entry.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_simple.dart
|
| - elif [[ $1 == "simple2" ]];
|
| - then
|
| - ./../../template/template name_entry2.tmpl name_entry.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_simple.dart
|
| - elif [[ $1 == "simple3" ]];
|
| - then
|
| - ./../../template/template name_entry_css.tmpl name_entry.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_simple.dart
|
| - elif [[ $1 == "simple4" ]];
|
| - then
|
| - ./../../template/template name_entry_text.tmpl name_entry.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_simple.dart
|
| - elif [[ $1 == "simplecall" ]];
|
| - then
|
| - ./../../template/template callview.tmpl name_entry.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_simple.dart
|
| - elif [[ $1 == "with1" ]];
|
| - then
|
| - ./../../template/template productview.tmpl productview.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_with.dart
|
| - elif [[ $1 == "with2" ]];
|
| - then
|
| - ./../../template/template productview2.tmpl productview.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_with.dart
|
| - elif [[ $1 == "with3" ]];
|
| - then
|
| - ./../../template/template productview_localname.tmpl productview.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_with.dart
|
| - elif [[ $1 == "with4" ]];
|
| - then
|
| - ./../../template/template productview3.tmpl productview.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_with.dart
|
| - elif [[ $1 == "nested" ]];
|
| - then
|
| - ./../../template/template nestedview.tmpl nestedview.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_nested.dart
|
| - elif [[ $1 == "list1" ]];
|
| - then
|
| - ./../../template/template applications.tmpl applications.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_list.dart
|
| - elif [[ $1 == "list2" ]];
|
| - then
|
| - ./../../template/template applications2.tmpl applications.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_list.dart
|
| - elif [[ $1 == "complex" ]];
|
| - then
|
| - ./../../template/template top_searches.tmpl top_searches.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_complex.dart
|
| - elif [[ $1 == "complexcss" ]];
|
| - then
|
| - ./../../template/template top_searches_css.tmpl top_searches.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_complex.dart
|
| - elif [[ $1 == "complex2" ]];
|
| - then
|
| - ./../../template/template top_searches2.tmpl top_searches2.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/test_complex2.dart
|
| - elif [[ $1 == "real" ]];
|
| - then
|
| - ./../../template/template realviews.tmpl realviews.dart
|
| - cd ../../../frog
|
| - ./frog.py --html -- ../utils/tests/template/real_app.dart
|
| - elif [[ $1 == "clean" ]];
|
| - then
|
| - # remove all generated templates
|
| - echo "rm name_entry.dart"
|
| - rm -f name_entry.dart
|
| - echo "rm productview.dart"
|
| - rm -f productview.dart
|
| - echo "rm nestedview.dart"
|
| - rm -f nestedview.dart
|
| - echo "rm applications.dart"
|
| - rm -f applications.dart
|
| - echo "rm top_searches.dart"
|
| - rm -f top_searches.dart
|
| - echo "rm top_searches2.dart"
|
| - rm -f top_searches2.dart
|
| - echo "rm realviews.dart"
|
| - rm -f realviews.dart
|
| - fi
|
| -else
|
| - echo -e "\033[31mUnknown test\033[0m"
|
| - echo -e ""
|
| - echo -e "Known tests are:"
|
| - echo -e " simple"
|
| - echo -e " simple1"
|
| - echo -e " simple2"
|
| - echo -e " simple3"
|
| - echo -e " simple4"
|
| - echo -e " simplecall"
|
| - echo -e " with1"
|
| - echo -e " with2"
|
| - echo -e " with3"
|
| - echo -e " with4"
|
| - echo -e " nested"
|
| - echo -e " list1"
|
| - echo -e " list2"
|
| - echo -e " complex"
|
| - echo -e " complexcss"
|
| - echo -e " complex2"
|
| - echo -e " real"
|
| - echo -e ""
|
| - echo -e "clean - removes all template generated Dart classes"
|
| -fi
|
| -
|
|
|