File: test_arguments_main.sp

package info (click to toggle)
sitplus 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,636 kB
  • sloc: cpp: 34,437; ansic: 7,957; xml: 1,141; yacc: 326; lisp: 235; lex: 167; makefile: 107; sh: 5
file content (43 lines) | stat: -rwxr-xr-x 969 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# Test and sample on how to use arguments
#

type test_arguments_main
name "test_arguments_main"

import test_arguments.sps

#
# Simple argument passing
#
create test_arguments test_arguments1 -a aa -b bb -c cc

#
# Void argument value. Will expand into nothing
#
create test_arguments test_arguments2 -a -b bb -c cc

#
# Substitution of the same variable twice
#
create test_arguments test_arguments3 -a $SP_DATA_DIR$#$SP_DATA_DIR$ -b bb -c cc

#
# -a argument will expand into two new tokens "-sub" and "aa", note the
# leading whitespace after "
#
create test_arguments test_arguments4 -a " -sub aa" -b bb -c cc

#
# The same as above but passing a list of arguments
#
create test_arguments test_arguments6 -a " -sub a a" -b bb -c cc

#
# The same as above but passing a list of arguments packed
#
create test_arguments test_arguments7 -a " -sub \"a a\"" -b bb -c cc


#create test_arguments test_arguments4 -b bb -c cc