Lines Matching refs:TMPDIR
84 TMPDIR=/tmp
121 echo "user $USER, secret $SECRET. Will use mountpoint $MNTDIR, temporary dir $TMPDIR,"
136 check iscontrol -dt $TARGETIP > $TMPDIR/discovered
137 cat $TMPDIR/discovered
138 echo "TargetName=$TARGET1" > $TMPDIR/expected
139 echo "TargetName=$TARGET2" >> $TMPDIR/expected
140 check cmp $TMPDIR/expected $TMPDIR/discovered
141 rm -f $TMPDIR/expected $TMPDIR/discovered
148 iscsictl | awk '{ print $1 }' | sort > $TMPDIR/discovered
149 printf "Target\n$TARGET1\n$TARGET2\n" | sort > $TMPDIR/expected
150 check cmp $TMPDIR/expected $TMPDIR/discovered
151 rm -f $TMPDIR/expected $TMPDIR/discovered
164 check iscsiadm -m discovery -t sendtargets -p $TARGETIP > $TMPDIR/discovered
165 cat $TMPDIR/discovered
166 echo "$TARGETIP:3260,-1 $TARGET1" > $TMPDIR/expected
167 echo "$TARGETIP:3260,-1 $TARGET2" >> $TMPDIR/expected
168 check cmp $TMPDIR/expected $TMPDIR/discovered
169 rm -f $TMPDIR/expected $TMPDIR/discovered
177 check iscsiadm list target | awk '/^Target/ { print $2 }' | sort > $TMPDIR/discovered
179 cat $TMPDIR/discovered
180 echo "$TARGET1" > $TMPDIR/expected
181 echo "$TARGET2" >> $TMPDIR/expected
182 check cmp $TMPDIR/expected $TMPDIR/discovered
183 rm -f $TMPDIR/expected $TMPDIR/discovered
217 cat > $TMPDIR/iscsi.conf << END
233 check iscontrol -c $TMPDIR/iscsi.conf -n target1
234 check iscontrol -c $TMPDIR/iscsi.conf -n target2
244 rm $TMPDIR/iscsi.conf
253 cat > $TMPDIR/iscsi.conf << END
269 check iscsictl -Ac $TMPDIR/iscsi.conf -n target1
270 check iscsictl -Ac $TMPDIR/iscsi.conf -n target2
280 rm $TMPDIR/iscsi.conf