The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | command "assert" { |
| 2 | STRING EQ { |
| 3 | FUNCTION hash_dir ( |
| 4 | "SYS:" |
| 5 | ) |
| 6 | "112345oldhashvalue1234123" |
| 7 | } |
| 8 | } |
| 9 | command "mark" { |
| 10 | "SYS:" |
| 11 | "dirty" |
| 12 | } |
| 13 | command "copy_dir" { |
| 14 | "PKG:android-files" |
| 15 | "SYS:" |
| 16 | } |
| 17 | command "assert" { |
| 18 | STRING EQ { |
| 19 | FUNCTION hash_dir ( |
| 20 | "SYS:" |
| 21 | ) |
| 22 | "667890newhashvalue6678909" |
| 23 | } |
| 24 | } |
| 25 | command "mark" { |
| 26 | "SYS:" |
| 27 | "clean" |
| 28 | } |
| 29 | command "done" { |
| 30 | } |
| 31 | command "assert" { |
| 32 | STRING EQ { |
| 33 | FUNCTION hash_dir ( |
| 34 | "SYS:" |
| 35 | "blah" |
| 36 | ) |
| 37 | "112345oldhashvalue1234123" |
| 38 | } |
| 39 | } |
| 40 | command "assert" { |
| 41 | STRING EQ { |
| 42 | "true" |
| 43 | "false" |
| 44 | } |
| 45 | } |
| 46 | command "assert" { |
| 47 | STRING NE { |
| 48 | FUNCTION matches ( |
| 49 | FUNCTION hash_dir ( |
| 50 | "SYS:" |
| 51 | ) |
| 52 | "667890newhashvalue6678909" |
| 53 | "999999newhashvalue6678909" |
| 54 | ) |
| 55 | "" |
| 56 | } |
| 57 | } |
| 58 | command "assert" { |
| 59 | BOOLEAN OR { |
| 60 | STRING EQ { |
| 61 | FUNCTION hash_dir ( |
| 62 | "SYS:" |
| 63 | ) |
| 64 | "667890newhashvalue6678909" |
| 65 | } |
| 66 | STRING EQ { |
| 67 | FUNCTION hash_dir ( |
| 68 | "SYS:" |
| 69 | ) |
| 70 | "999999newhashvalue6678909" |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | amend: Parse successful. |