Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.
123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/bin/bash
- # Use example .kll files to check basic kll processing
- # Does a diff comparison with a pre-generated file for validation
- # Jacob Alexander 2016
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-
- # Common functions
- source ${SCRIPT_DIR}/common.bash
-
- # Start in kll top-level directory
- cd ${SCRIPT_DIR}/..
-
- # Cleanup previously generated files
- rm -rf ${SCRIPT_DIR}/generated
-
-
- # Args used for each of the tests
- ARGS="--emitter kll --target-dir ${SCRIPT_DIR}/generated"
- FAIL_ARGS="--emitter kll --target-dir ${SCRIPT_DIR}/generated --token-debug --parser-token-debug --operation-organization-display --data-organization-display --data-finalization-display"
-
- # Files to check syntax on
- FILES=(
- examples/assignment.kll
- )
-
-
- ## Tests
-
-
- cmds "./kll" "${ARGS}" "${FAIL_ARGS}" ${FILES[@]}
- cmd diff --color=always ${SCRIPT_DIR}/cmp_assignment/final.kll ${SCRIPT_DIR}/generated/final.kll
-
-
- ## Tests complete
-
-
- result
- exit $?
|