Lines Matching refs:output_dir
32 output_dir=$(mktemp -d)
39 rm -rf ${output_dir}
75 output_file=${output_dir}/test.apex
91 unzip ${output_file} apex_payload.img -d ${output_dir}
92 size=$(avbtool info_image --image ${output_dir}/apex_payload.img | awk '/Image size:/{print $3}')
96 mkdir ${output_dir}/mnt
98 sudo mount -o ro /dev/loop10 ${output_dir}/mnt
99 unzip ${output_file} apex_manifest.json -d ${output_dir}
102 avbtool verify_image --image ${output_dir}/apex_payload.img \
106 sudo diff ${manifest_file} ${output_dir}/mnt/apex_manifest.json
107 sudo diff ${manifest_file} ${output_dir}/apex_manifest.json
108 sudo diff ${input_dir}/file1 ${output_dir}/mnt/file1
109 sudo diff ${input_dir}/file2 ${output_dir}/mnt/file2
110 sudo diff ${input_dir}/sub/file3 ${output_dir}/mnt/sub/file3
111 [ `sudo readlink ${output_dir}/mnt/sym1` = "file1" ]
114 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file1` = "1001,1001,-rw-r--r--" ]
115 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/file2` = "1001,1001,-rw-r--r--" ]
116 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sub` = "1002,1002,drw-r--r--" ]
117 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sub/file3` = "1003,1003,-rw-r--r--" ]
118 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/sym1` = "1001,1001,lrw-r--r--" ]
119 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/apex_manifest.json` = "1000,1000,-rw-r--r--" ]
122 [ `sudo ls -Z ${output_dir}/mnt/file1 | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
123 [ `sudo ls -Z ${output_dir}/mnt/file2 | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
124 [ `sudo ls -d -Z ${output_dir}/mnt/sub/ | cut -d ' ' -f 1` = "u:object_r:sub_file:s0" ]
125 [ `sudo ls -Z ${output_dir}/mnt/sub/file3 | cut -d ' ' -f 1` = "u:object_r:file3_file:s0" ]
126 [ `sudo ls -Z ${output_dir}/mnt/apex_manifest.json | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
127 [ `sudo ls -Z ${output_dir}/mnt/sym1 | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]