1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- AT_SETUP([test-label option])
- AT_KEYWORDS([label label03 test-label])
- AT_TAR_CHECK([
- exec <&-
- genfile --file file
- tar -c --label='iamalabel' --file iamanarchive file
- tar -c --file unlabeled.tar file
- decho "# Display label"
- tar --test-label --file=iamanarchive; echo $?
- decho "# Display label: unlabeled"
- tar --test-label --file=unlabeled.tar; echo $?
- decho "# Test label: success"
- tar --test-label --file=iamanarchive 'iamalabel'; echo $?
- decho "# Test label: failure"
- tar --test-label --file=iamanarchive 'amalabel'; echo $?
- decho "# Test label: unlabeled"
- tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
- decho "# Test label, verbose: success"
- tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
- decho "# Test label, verbose: failure"
- tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
- decho "# Test label: multiple arguments"
- tar --test-label --file=iamanarchive a iamalabel b; echo $?
- decho "# Test label: wildcards"
- tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
- ],
- [0],
- [
- iamalabel
- 0
- 0
- 0
- 1
- 1
- iamalabel
- 0
- iamalabel
- 1
- 0
- 0
- ],
- [
- tar: Archive label mismatch
- ],[],[],[gnu,oldgnu,posix])
- AT_CLEANUP
|